コード例 #1
0
ファイル: Button.php プロジェクト: moiseh/codegen
 public function proccessField(Form $form)
 {
     if ($this->isClicked()) {
         $this->onClick();
     }
     parent::proccessField($form);
 }
コード例 #2
0
ファイル: File.php プロジェクト: moiseh/codegen
 public function hasPostValue()
 {
     if ($this->uploadedFile()) {
         return true;
     }
     return parent::hasPostValue();
 }
コード例 #3
0
ファイル: PrimaryKey.php プロジェクト: moiseh/codegen
 public function render()
 {
     // render only if has the ID value on the URL
     if ($this->hasPostValue()) {
         return parent::render();
     }
     return null;
 }
コード例 #4
0
ファイル: Password.php プロジェクト: moiseh/codegen
 public function __construct($properties = array())
 {
     parent::__construct($properties);
     $this->validations[] = new \Meta\Validation\MinLength(array('length' => 3));
 }
コード例 #5
0
ファイル: Choice.php プロジェクト: moiseh/codegen
 public function getTemplateVars()
 {
     $vars = parent::getTemplateVars();
     $vars['options'] = $this->buildOptions();
     return $vars;
 }