/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param string $field user table filed name * @param array $options select options * @param mixed $default option */ public function __construct($name, $label, $advanced, $field, $options, $default = null) { parent::__construct($name, $label, $advanced); $this->_field = $field; $this->_options = $options; $this->_default = $default; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param string $field user table filed name * @param array $options select options * @param mixed $default option */ public function user_filter_select($name, $label, $advanced, $field, $options, $default = null) { parent::user_filter_type($name, $label, $advanced); $this->_field = $field; $this->_options = $options; $this->_default = $default; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param array $options associative array used to generate the radio buttons * @param boolean $offoption true if a "don't care" option should be generated * @param int $value the value used for filtering data */ function user_filter_radios($name, $label, $field, $options, $offoption = true, $value = null) { parent::user_filter_type($name, $label, $field, $value); $this->_options = $options; if ($offoption) { $this->_offoption = @min(array_keys($options)) - 1; } else { $this->_offoption = null; } }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param mixed $field user table field/fields name for comparison * @param array $disableelements name of fields which should be disabled if this checkbox is checked. */ public function __construct($name, $label, $advanced, $field, $disableelements=null) { parent::__construct($name, $label, $advanced); $this->field = $field; if (!empty($disableelements)) { if (!is_array($disableelements)) { $this->disableelements = array($disableelements); } else { $this->disableelements = $disableelements; } } }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param string $field user table filed name * @param array $options select options */ function user_filter_simpleselect($name, $label, $advanced, $field, $options) { parent::user_filter_type($name, $label, $advanced); $this->_field = $field; $this->_options = $options; }
function cm_custom_field_filter($name, $label, $advanced, $field) { parent::user_filter_type($name, $label, $advanced); $this->_field = $field; }
/** * Constructor * @param boolean $advanced advanced form element flag */ public function __construct($advanced) { parent::__construct('cohort', get_string('idnumber', 'core_cohort'), $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param string $field user table filed name */ public function __construct($name, $label, $advanced, $field) { parent::__construct($name, $label, $advanced); $this->_field = $field; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ function user_filter_courserole($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ function semester_filter($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param int $start the start Unix timestamp (0 if disabled) * @param int $end the end Unix timestamp (0 if disabled) */ function user_filter_date($name, $label, $field, $fields = null, $start = 0, $end = 0) { parent::user_filter_type($name, $label, $field, $start); $this->_value2 = $end; $this->_fields = $fields; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ function user_filter_school($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param string $value the value used for filtering data * @param int $operator code of the comparison operator */ function user_filter_text($name, $label, $field, $value = null, $operator = 0) { parent::user_filter_type($name, $label, $field, $value); $this->_operator = $operator; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param int $value id of the role (used for filtering data); 0 = any role */ function user_filter_globalrole($name, $label, $field = 'id', $value = 0) { parent::user_filter_type($name, $label, $field, $value); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param string $field user table filed name * @param array $options select options */ function no_moodle_user_filter($name, $label, $advanced, $field) { parent::user_filter_type($name, $label, $advanced); $this->_field = $field; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param string $value the value of the profile field (used for filtering data) * @param int $profile_field id of the profile field to look in * @param int $operator code of the comparison operator */ function user_filter_profilefield($name, $label, $field = 'id', $value = null, $profile_field = 0, $operator = 0) { parent::user_filter_type($name, $label, $field, $value); $this->_operator = $operator; $this->_profile_field = $profile_field; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ public function __construct($name, $label, $advanced) { parent::__construct($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ public function user_filter_globalrole($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ function user_filter_costcenter($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param string $value the shortname of the course (used for filtering data) * @param int $categoryid id of the category * @param int $roleid id of the role */ function user_filter_courserole($name, $label, $field = 'id', $value = null, $categoryid = 0, $roleid = 0) { parent::user_filter_type($name, $label, $field, $value); $this->_roleid = $roleid; $this->_categoryid = $categoryid; }
/** * Constructor * @param boolean $advanced advanced form element flag */ public function user_filter_cohort($advanced) { parent::user_filter_type('cohort', get_string('idnumber', 'core_cohort'), $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag */ function user_filter_profilefield($name, $label, $advanced) { parent::user_filter_type($name, $label, $advanced); }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param boolean $advanced advanced form element flag * @param string $field user table filed name */ function user_filter_text($name, $label, $advanced, $field) { parent::user_filter_type($name, $label, $advanced); $this->_field = $field; }
/** * Constructor * @param string $name the name of the filter instance * @param string $label the label of the filter instance * @param string $field the field used for filtering data * @param string $value the value used for filtering data * @param int $operator code of the comparison operator */ function user_filter_select($name, $label, $field, $options, $value = null, $operator = null) { parent::user_filter_type($name, $label, $field, $value); $this->_operator = $operator; $this->_options = $options; }