コード例 #1
0
ファイル: Password.php プロジェクト: pansot2/PadCMS-backend
 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();
 }
コード例 #2
0
ファイル: File.php プロジェクト: pansot2/PadCMS-backend
 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;
 }
コード例 #3
0
ファイル: Static.php プロジェクト: pansot2/PadCMS-backend
 /**
  * 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;
 }
コード例 #4
0
ファイル: Checkbox.php プロジェクト: pansot2/PadCMS-backend
 /**
  * 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;
 }
コード例 #5
0
ファイル: ReadOnly.php プロジェクト: pansot2/PadCMS-backend
 /**
  * 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);
 }