mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
phpdocs and var initialization
This commit is contained in:
parent
497e2fe27e
commit
a8ff9488fd
@ -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
|
||||
|
@ -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.' />';
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user