コード例 #1
0
ファイル: NumericArgument.php プロジェクト: nstielau/drops-8
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['break_phrase'] = array('default' => FALSE);
     $options['not'] = array('default' => FALSE);
     return $options;
 }
コード例 #2
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['depth'] = array('default' => 0);
     $options['break_phrase'] = array('default' => FALSE);
     $options['use_taxonomy_term_path'] = array('default' => FALSE);
     return $options;
 }
コード例 #3
0
ファイル: StringArgument.php プロジェクト: nstielau/drops-8
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['glossary'] = array('default' => FALSE);
     $options['limit'] = array('default' => 0);
     $options['case'] = array('default' => 'none');
     $options['path_case'] = array('default' => 'none');
     $options['transform_dash'] = array('default' => FALSE);
     $options['break_phrase'] = array('default' => FALSE);
     if (!empty($this->definition['many to one'])) {
         $options['add_table'] = array('default' => FALSE);
         $options['require_value'] = array('default' => FALSE);
     }
     return $options;
 }
コード例 #4
0
ファイル: ManyToOne.php プロジェクト: HakS/drupal8_training
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     if (!empty($this->definition['numeric'])) {
         $options['break_phrase'] = array('default' => FALSE);
     }
     $options['add_table'] = array('default' => FALSE);
     $options['require_value'] = array('default' => FALSE);
     if (isset($this->helper)) {
         $this->helper->defineOptions($options);
     } else {
         $helper = new ManyToOneHelper($this);
         $helper->defineOptions($options);
     }
     return $options;
 }
コード例 #5
0
ファイル: Null.php プロジェクト: anatalsceo/en-classe
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['must_not_be'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
コード例 #6
0
ファイル: Uid.php プロジェクト: bonrita/moodle
 /**
  * Information about options for all kinds of purposes will be held here.
  * @code
  * 'option_name' => array(
  *  - 'default' => default value,
  *  - 'contains' => (optional) array of items this contains, with its own
  *      defaults, etc. If contains is set, the default will be ignored and
  *      assumed to be array().
  *  ),
  * @endcode
  *
  * @return array
  *   Returns the options of this handler/plugin.
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['contextlevel'] = array('default' => 50);
     return $options;
 }