コード例 #1
0
ファイル: Set.php プロジェクト: NicolasSchmutz/cm
 protected function _initialize()
 {
     $this->_values = $this->_params->getArray('values', array());
     $this->_labelsInValues = $this->_params->getBoolean('labelsInValues', false);
     $this->_translate = $this->_params->getBoolean('translate', false);
     parent::_initialize();
 }
コード例 #2
0
ファイル: Integer.php プロジェクト: aladin1394/CM
 protected function _initialize()
 {
     $this->_options['min'] = $this->_params->getInt('min', 0);
     $this->_options['max'] = $this->_params->getInt('max', 100);
     $this->_options['step'] = $this->_params->getInt('step', 1);
     parent::_initialize();
 }
コード例 #3
0
ファイル: Text.php プロジェクト: NicolasSchmutz/cm
 protected function _initialize()
 {
     $this->_options['lengthMin'] = $this->_params->has('lengthMin') ? $this->_params->getInt('lengthMin') : null;
     $this->_options['lengthMax'] = $this->_params->has('lengthMax') ? $this->_params->getInt('lengthMax') : null;
     $this->_options['forbidBadwords'] = $this->_params->getBoolean('forbidBadwords', false);
     parent::_initialize();
 }
コード例 #4
0
ファイル: Date.php プロジェクト: cargomedia/cm
 protected function _initialize()
 {
     $this->_timeZone = $this->_params->has('timeZone') ? $this->_params->getDateTimeZone('timeZone') : null;
     $this->_yearFirst = $this->_params->getInt('yearFirst', date('Y') - 100);
     $this->_yearLast = $this->_params->getInt('yearLast', date('Y'));
     parent::_initialize();
 }
コード例 #5
0
ファイル: Suggest.php プロジェクト: aladin1394/CM
 protected function _initialize()
 {
     $this->_options['cardinality'] = $this->_params->has('cardinality') ? $this->_params->getInt('cardinality') : null;
     $this->_options['enableChoiceCreate'] = $this->_params->getBoolean('enableChoiceCreate', false);
     parent::_initialize();
 }
コード例 #6
0
ファイル: File.php プロジェクト: NicolasSchmutz/cm
 protected function _initialize()
 {
     $this->_options['cardinality'] = $this->_params->getInt('cardinality', 1);
     $this->_options['allowedExtensions'] = $this->_getAllowedExtensions();
     parent::_initialize();
 }
コード例 #7
0
ファイル: Date.php プロジェクト: NicolasSchmutz/cm
 protected function _initialize()
 {
     $this->_yearFirst = $this->_params->getInt('yearFirst', date('Y') - 100);
     $this->_yearLast = $this->_params->getInt('yearLast', date('Y'));
     parent::_initialize();
 }
コード例 #8
0
ファイル: TreeSelect.php プロジェクト: cargomedia/cm
 protected function _initialize()
 {
     $this->_tree = $this->_params->getObject('tree', 'CM_Tree_Abstract');
     parent::_initialize();
 }