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

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