function defineFields() { parent::defineFields(); $this->addField('suggestion')->mandatory(true)->datatype('text'); $this->addField('posted')->datatype('date')->defaultValue(date('Y-m-d')); $this->addField('deleted')->system(true)->datatype('boolean'); $this->addCondition('deleted', false); }
function defineFields() { parent::defineFields(); $this->newField('title')->mandatory(true); $this->newField('keywords'); $this->newField('inherit'); $this->newField('descr')->datatype('text'); $this->newField('example')->datatype('text'); $this->newField('approved')->datatype('boolean'); }
function defineFields() { parent::defineFields(); $this->addField('name')->mandatory(true); $this->addField('email')->mandatory(true); $this->addField('phone'); $this->addField('company'); $this->addField('moreinfo')->datatype('text')->mandatory(true); $this->addField('onsite')->datatype('int'); }
function defineFields(){ parent::defineFields(); $this->addField('employee_id') ->caption('Paid To') ->refModel('Model_Employee'); $this->addField('pay_date') ->datatype('date') ->defaultValue(date('Y-m-d')); $this->addField('amount') ->datatype('money'); }
function defineFields() { parent::defineFields(); // Each field can have a varietty of properties. Please // referr to FieldDefinition.php file for more information $this->newField('email')->mandatory(true); $this->newField('name'); $this->newField('surname'); $this->newfield('gender')->datatype('list')->listData(array('M' => 'Male', 'F' => 'Female')); // You can define related tables through // $this->addRelatedEntity() // see function comments inside Model/Table // You can also add relations between fileds $this->newField('manager_id')->datatype('reference')->refModel('Model_User'); }
function defineFields() { parent::defineFields(); $this->newField('merchant_type')->datatype('list')->caption('Merchant')->system(true)->listData(array('creditcard' => 'CreditCard', 'paypal' => 'PayPal')); }
function defineFields(){ parent::defineFields(); $this->addField('name'); }