예제 #1
0
 function init()
 {
     parent::init();
     $this->addField('days_worked')->system(true)->datatype('int');
     $this->addField('salary')->mandatory(true)->datatype('money');
     $this->addField('money_owed')->caption('Owed')->calculated(true);
 }
예제 #2
0
파일: Model_Male.php 프로젝트: atk4/data
 public function init()
 {
     parent::init();
     $this->addCondition('gender', 'M');
 }
예제 #3
0
파일: mongo2.php 프로젝트: TigerBui/atk4
 function init()
 {
     parent::init();
     $this->hasOne('Mother');
     $this->hasMany('Books');
 }
예제 #4
0
 function init()
 {
     parent::init();
     $this->addField('days_worked')->system(true)->datatype('int');
     $this->addField('salary')->mandatory('Salary is required')->datatype('money');
 }