Beispiel #1
0
 public function show()
 {
     $control = array("value" => null);
     if (isset($this->view->{$this->name})) {
         $this->view->{$this->name} = array_merge($control, $this->view->{$this->name});
     } else {
         $this->view->{$this->name} = $control;
     }
     return parent::show();
 }
Beispiel #2
0
 public function __construct(Zend_Controller_Action $actionController, $name, $title = null, $validationsRules = null, $dbField = null, $fileFolder, $autoCreateFolder = false)
 {
     parent::__construct($actionController, $name, $title, $validationsRules, $dbField);
     $this->fileFolder = $fileFolder;
     $this->autoCreateFolder = $autoCreateFolder;
 }
Beispiel #3
0
 /**
  * Constructor
  *
  * @param AM_Controller_Action $actionController Controller
  * @param string $dbField Name of binded field
  * @param mixed $value Value of control
  */
 public function __construct(AM_Controller_Action $actionController, $dbField, $value)
 {
     parent::__construct($actionController, $dbField, null, null, $dbField);
     $this->value = $value;
 }
Beispiel #4
0
 /**
  * Constructor
  *
  * @param AM_Controller_Action $actionController Controller
  * @param string $name Component name
  * @param string $title Title of control
  * @param array $validationRules Validation rules. Each rule is array :
  * 		[validationtype, param1, param2,...]
  *     type can be: require, integer, float, numeric, maximum value, minimum value,
  * 	 	maximum length, minimum length, range, range length, regexp, email, function
  * @param string $dbField Name of binded field
  * @param string $unCheckedDbValue Value for unchecked state
  * @param string $checkedDbValue Value for checked state
  */
 public function __construct(AM_Controller_Action $actionController, $name, $title = null, array $validationsRules = null, $dbField = null, $unCheckedDbValue = "n", $checkedDbValue = "y")
 {
     parent::__construct($actionController, $name, $title, $validationsRules, $dbField);
     $this->checkedDbValue = $checkedDbValue;
     $this->unCheckedDbValue = $unCheckedDbValue;
 }
Beispiel #5
0
 /**
  * Constructor
  *
  * @param AM_Controller_Action $actionController Controller
  * @param string $name Component name
  * @param string $title Title of control
  * @param string $dbField Name of binded field
  */
 public function __construct(AM_Controller_Action $actionController, $name, $title = null, $dbField = null)
 {
     parent::__construct($actionController, $name, $title, null, $dbField);
 }