Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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');
 }
Esempio n. 3
0
 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');
 }
Esempio n. 4
0
	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');
	}
Esempio n. 5
0
 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');
 }
Esempio n. 6
0
 function defineFields()
 {
     parent::defineFields();
     $this->newField('merchant_type')->datatype('list')->caption('Merchant')->system(true)->listData(array('creditcard' => 'CreditCard', 'paypal' => 'PayPal'));
 }
Esempio n. 7
0
	function defineFields(){
		parent::defineFields();

		$this->addField('name');
	}