コード例 #1
0
ファイル: Employee.php プロジェクト: vikash124/atk4-web
 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
ファイル: Employee.php プロジェクト: nkkromhof/atk4-codepad
 function init()
 {
     parent::init();
     $this->addField('days_worked')->system(true)->datatype('int');
     $this->addField('salary')->mandatory('Salary is required')->datatype('money');
 }