Пример #1
0
 /**
  * Constructor.
  * @param moodle_database $DB The active database connection.
  * @param string $name The unique name of the action to use.
  * @param string $descsingle The description when the confirmation is for a single element.
  * @param string $descmultiple The description when the confirmation is for the bulk list.
  */
 public function __construct(moodle_database &$DB, $name, $descsingle = '', $descmultiple = '')
 {
     parent::__construct($DB, $name);
     $this->label = ucwords(get_string('assign', 'local_elisprogram'));
     $langelements = new stdClass();
     $langelements->baseelement = strtolower(get_string('curriculum', 'local_elisprogram'));
     $langelements->actionelement = strtolower(get_string('cluster', 'local_elisprogram'));
     $this->descsingle = !empty($descsingle) ? $descsingle : get_string('ds_action_assign_confirm', 'local_elisprogram', $langelements);
     $langelements = new stdClass();
     $langelements->baseelement = strtolower(get_string('curriculum', 'local_elisprogram'));
     $langelements->actionelement = strtolower(get_string('clusters', 'local_elisprogram'));
     $this->descmultiple = !empty($descmultiple) ? $descmultiple : get_string('ds_action_assign_confirm_multi', 'local_elisprogram', $langelements);
 }
Пример #2
0
 /**
  * Constructor.
  *
  * Sets internal data.
  *
  * @param moodle_database $DB            The active database connection.
  * @param string          $name          The unique name of the action to use.
  * @param string          $descsingle   The description when the confirmation is for a single element.
  * @param string          $descmultiple The description when the confirmation is for the bulk list.
  */
 public function __construct(moodle_database &$DB, $name, $descsingle = '', $descmultiple = '')
 {
     parent::__construct($DB, $name);
     $this->label = get_string('assign', 'local_elisprogram');
 }