Example #1
0
 /**
  * @param string $label
  * @param string $name
  * @param bool $checked
  * @param int|string $checkedValue
  * @param int|string $uncheckedValue
  * @param string $desc
  * @param bool $required
  * @param int $width
  * @param int $length
  */
 public function __construct($label = null, $name = null, $checked = false, $checkedValue = 1, $uncheckedValue = 0, $desc = null, $required = false, $width = 280, $length = 255)
 {
     parent::__construct($label, $name, $desc, $required, $width, $checked);
     $this->_checked = $checked;
     $this->_checkedValue = $checkedValue;
     $this->_uncheckedValue;
 }
Example #2
0
 /**
  * @param string $label
  * @param bool|string $name
  * @param string $startDate
  * @param string $endDate
  * @param string $format
  * @param string $description
  * @param bool $required
  * @param bool $notEdit
  */
 public function __construct($label = null, $name = null, $startDate = null, $endDate = null, $format = 'Y-m-d H:i:s', $description = null, $width = 280, $required = false, $default = null, $notEdit = false)
 {
     parent::__construct($label, $name, $description, $required, $width, $default);
     $this->_startDate = $startDate;
     $this->_endDate = $endDate;
     $this->_format = $format;
 }
Example #3
0
 /**
  * @param string $label
  * @param string $name
  * @param \Phalcon\Security $security
  * @param string $keyTemplate
  * @param int $length
  * @param string $description
  * @param string $cryptType
  * @param bool $required
  * @param bool $notEdit
  * @param int $width
  */
 public function __construct($label = null, $name = null, Security $security = null, $keyTemplate = '{name}', $length = 8, $description = null, $cryptType = 'blowfish', $required = true, $notEdit = false, $width = 280)
 {
     parent::__construct($label, $name, $description, $required, $notEdit, $width);
     $this->_security = $security;
     $this->_length = (int) $length;
     $this->_keyTemplate = $keyTemplate;
     $this->_cryptType = $cryptType;
 }
Example #4
0
 /**
  * Constructor
  *
  * @param string $label
  * @param string $name
  * @param string $uploadDirectory
  * @param string $template
  * @param string $desc
  * @param int $size
  * @param bool $required
  * @param int $width
  * @param string $extensions
  */
 public function __construct($label = null, $name = null, $uploadDirectory, $template = '{id}', $desc = null, $size = '1024000', $required = false, $width = 150, $extensions = null)
 {
     parent::__construct($label, $name, $desc, $required, $width, '');
     $this->_uploadDirectory = $uploadDirectory;
     $this->_template = $template;
     $this->_extensions = $extensions;
     $this->_size = $size;
 }
Example #5
0
 /**
  * Field constructor
  *
  * @param string $label
  * @param string $name
  * @param string $desc
  * @param string $criteria
  * @param int $width
  * @param int $lengthMax
  * @param int $lengthMin
  */
 public function __construct($label = null, $name = null, $desc = null, $required = false, $width = 280, $default = '', $lengthMax = 255, $lengthMin = false)
 {
     parent::__construct($label, $name, $desc, $required, $width, $default);
     $this->_lengthMax = (int) $lengthMax;
     $this->_lengthMin = (int) $lengthMin;
 }
Example #6
0
 /**
  * @param string $label
  * @param string $model
  * @param string $workingModel
  * @param string $optionName
  * @param string $name
  * @param string $desc
  * @param bool $required
  * @param int $width
  * @param array $default
  * @param bool $saveAllParents
  * @param string $modelParentField
  * @param array $additionalColumns
  * @param bool $loadOptions
  */
 public function __construct($label = null, $model, $workingModel, $optionName = null, $desc = null, $required = false, $width = 450, $default = [], $saveAllParents = false, $modelParentField = null, $additionalColumns = [], $loadOptions = false)
 {
     $this->_model = $model;
     $this->_workingModel = $workingModel;
     $this->_optionName = $optionName;
     $this->_saveAllParents = $saveAllParents;
     $this->_modelParentField = $modelParentField;
     $this->_additionalColumns = $additionalColumns;
     $this->_loadOptions = $loadOptions;
     if (!is_array($default)) {
         if (!$default) {
             $default = [$default];
         } else {
             $default = [];
         }
     }
     parent::__construct($label, false, $desc, $required, $width, $default);
 }
Example #7
0
 /**
  * Constructor 
  *
  * @param string $label
  * @param string $desc
  * @param int $width
  */
 public function __construct($label = null, $desc = null, $width = 280, $default = '')
 {
     parent::__construct($label, false, $desc, false, $width, $default);
 }
Example #8
0
 /**
  * Constructor 
  *
  * @param string $label
  * @param string $name
  * @param string $desc
  * @param bool $required
  * @param int $width
  * @param string|integer $default
  * @param int $min
  * @param int $max
  */
 public function __construct($label = null, $name = null, $desc = null, $required = false, $width = 280, $default = null, $min = 0, $max = 0x7fffffff)
 {
     parent::__construct($label, $name, $desc, $required, $width, $default);
     $this->_min = $min;
     $this->_max = $max;
 }
Example #9
0
 /**
  * @param string $label
  * @param string $confirmField
  * @param string $description
  * @param bool $required
  * @param bool $notEdit
  * @param int $width
  */
 public function __construct($label = null, $confirmField = 'password', $description = null, $required = true, $notEdit = false, $width = 280)
 {
     parent::__construct($label, null, $description, $required, $notEdit, $width);
     $this->_confirmField = $confirmField;
 }
Example #10
0
 /**
  * Constructor 
  *
  * @param string $label
  * @param string $desc
  * @param int $width
  */
 public function __construct($label = null, $desc = null, $width = 280)
 {
     parent::__construct($label, false, $desc, false, $width, null);
     $this->setAttrib('readonly');
 }
Example #11
0
 /**
  * Constructor
  *
  * @param string $label
  * @param string $name
  * @param array $options
  * @param string $label
  * @param string $desc
  * @param bool $required
  * @param string $width
  * @param string $default
  */
 public function __construct($label = null, $name = null, $options = [], $desc = null, $required = false, $width = 280, $default = null)
 {
     parent::__construct($label, $name, $desc, $required, $width, $default);
     $this->_options = $options;
 }