示例#1
0
文件: List.php 项目: GruppoMeta/Movio
 /**
  * Init
  *
  * @return    void
  * @access    public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('bindTo', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClass', false, __Config::get('glizy.formElement.cssClass'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassLabel', false, __Config::get('glizy.formElement.cssClassLabel'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('dataProvider', false, NULL, COMPONENT_TYPE_OBJECT);
     $this->defineAttribute('disabled', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('emptyValue', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('jsAction', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('multiSelect', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('rows', false, 1, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('readOnly', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('required', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('size', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('wrapLabel', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('insertInto', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('target', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('title', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('checkValues', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('searchCondition', false, '=', COMPONENT_TYPE_STRING);
     $this->defineAttribute('adm:suggest', false, NULL, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('adm:suggestAdd', false, NULL, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('adm:suggestDelimiter', false, ' ', COMPONENT_TYPE_STRING);
     $this->defineAttribute('outputOnlyValue', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('linkedTo', false, NULL, COMPONENT_TYPE_OBJECT);
     $this->defineAttribute('flip', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('setFirstValue', false, true, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#2
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('defaultValue', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('bindTo', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('cols', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClass', false, __Config::get('glizy.formElement.cssClass'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassLabel', false, __Config::get('glizy.formElement.cssClassLabel'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('disabled', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('minLength', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('maxLength', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('rows', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('readOnly', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('size', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('wrapLabel', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('wrap', false, 'off', COMPONENT_TYPE_STRING);
     $this->defineAttribute('type', false, 'text', COMPONENT_TYPE_STRING);
     $this->defineAttribute('htmlEditor', false, false, COMPONENT_TYPE_BOOLEAN);
     // TODO
     $this->defineAttribute('required', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('title', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('placeholder', false, '', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#3
0
 /**
  * Init
  *
  * @return    void
  * @access    public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('cssClass', false, 'entities big ico-box span11', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassLabel', false, __Config::get('glizy.formElement.cssClassLabel'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#4
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     $this->_hiddenItem = true;
     // define the custom attributes
     $this->defineAttribute('bindTo', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('name', false, NULL, COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#5
0
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('emptyValue', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('title', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('rows', false, 1, COMPONENT_TYPE_INTEGER);
     $this->defineAttribute('required', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('requiredMessage', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('wrapLabel', false, false, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#6
0
 /**
  * Init
  *
  * @return    void
  * @access    public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('bindTo', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassLabel', false, __Config::get('glizy.formElement.cssClassLabel'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('showAllPageTypes', false, __Config::get('glizycms.content.showAllPageTypes'), COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('linked', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('onlyWithParent', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('hide', false, false, COMPONENT_TYPE_BOOLEAN);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#7
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('bindTo', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassLabel', false, __Config::get('glizy.formElement.cssClassLabel'), COMPONENT_TYPE_STRING);
     // $this->defineAttribute('defaultValue',	false, 	NULL,	COMPONENT_TYPE_STRING);
     // $this->defineAttribute('emptyValue',	false, 	NULL,	COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('modify', false, false, COMPONENT_TYPE_BOOLEAN);
     // $this->defineAttribute('required',			false, 	false,	COMPONENT_TYPE_BOOLEAN);
     // $this->defineAttribute('requiredMessage',	false, 	NULL,	COMPONENT_TYPE_STRING);
     // $this->defineAttribute('size',			false, 	'',		COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }
示例#8
0
 /**
  * Init
  *
  * @return	void
  * @access	public
  */
 function init()
 {
     // define the custom attributes
     $this->defineAttribute('bindTo', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClass', false, '', COMPONENT_TYPE_STRING);
     $this->defineAttribute('cssClassLabel', false, __Config::get('glizy.formElement.cssClassLabel'), COMPONENT_TYPE_STRING);
     $this->defineAttribute('label', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('required', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('value', false, NULL, COMPONENT_TYPE_STRING);
     $this->defineAttribute('defaultValue', false, '0', COMPONENT_TYPE_STRING);
     $this->defineAttribute('wrapLabel', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('title', false, false, COMPONENT_TYPE_BOOLEAN);
     $this->defineAttribute('checkedValue', false, '1', COMPONENT_TYPE_STRING);
     $this->defineAttribute('data', false, 'type=checkbox', COMPONENT_TYPE_STRING);
     // call the superclass for validate the attributes
     parent::init();
 }