phpdocs and var initialization

This commit is contained in:
Petr Skoda 2010-09-17 20:05:40 +00:00
parent 497e2fe27e
commit a8ff9488fd
3 changed files with 6 additions and 7 deletions

View File

@ -2193,7 +2193,7 @@ function print_collapsible_region_end($return = false) {
*
* @global object
* @uses CONTEXT_COURSE
* @param array $group A single {@link group} object OR array of groups.
* @param array|stdClass $group A single {@link group} object OR array of groups.
* @param int $courseid The course ID.
* @param boolean $large Default small picture, or large.
* @param boolean $return If false print picture, otherwise return the output as string

View File

@ -38,6 +38,7 @@ class profile_field_checkbox extends profile_field_base {
* Display the data for this field
*/
function display_data() {
$options = new object();
$options->para = false;
$checked = intval($this->data) === 1 ? 'checked="checked"' : '';
return '<input disabled="disabled" type="checkbox" name="'.$this->inputname.'" '.$checked.' />';

View File

@ -203,12 +203,10 @@ function profile_category_icons($category) {
function profile_field_icons($field) {
global $CFG, $USER, $DB, $OUTPUT;
if (empty($str)) {
$strdelete = get_string('delete');
$strmoveup = get_string('moveup');
$strmovedown = get_string('movedown');
$stredit = get_string('edit');
}
$strdelete = get_string('delete');
$strmoveup = get_string('moveup');
$strmovedown = get_string('movedown');
$stredit = get_string('edit');
$fieldcount = $DB->count_records('user_info_field', array('categoryid'=>$field->categoryid));
$datacount = $DB->count_records('user_info_data', array('fieldid'=>$field->id));