Viewing file: CdQuotation.php (6.2 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; use Phalcon\Validation; use Phalcon\Validation\Validator\Email as EmailValidator;
class CdQuotation extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(column="quoid", type="integer", length=11, nullable=false) */ protected $quoid;
/** * * @var string * @Column(column="info", type="string", length=75, nullable=true) */ protected $info_1;
/** * * @var string * @Column(column="info", type="string", length=75, nullable=true) */ protected $info_2;
/** * * @var string * @Column(column="info", type="string", length=75, nullable=true) */ protected $info_3;
/** * * @var string * @Column(column="info", type="string", length=75, nullable=true) */ protected $info_4;
/** * * @var string * @Column(column="info", type="string", length=75, nullable=true) */ protected $info_5;
/** * * @var string * @Column(column="info", type="string", length=75, nullable=true) */ protected $info_6;
/** * * @var string * @Column(column="type", type="string", length=75, nullable=true) */ protected $type;
/** * * @var integer * @Column(column="imid", type="integer", length=11, nullable=false) */ protected $imid;
/** * Method to set the value of field quoid * * @param integer $quoid * @return $this */ public function setQuoid($quoid) { $this->quoid = $quoid;
return $this; }
/** * Method to set the value of field info * * @param string $info * @return $this */ public function setInfo1($info_1) { $this->info_1 = $info_1;
return $this; }
/** * Method to set the value of field info * * @param string $info * @return $this */ public function setInfo2($info_2) { $this->info_2 = $info_2;
return $this; }
/** * Method to set the value of field info * * @param string $info * @return $this */ public function setInfo3($info_3) { $this->info_3 = $info_3;
return $this; }
/** * Method to set the value of field info * * @param string $info * @return $this */ public function setInfo4($info_4) { $this->info_4 = $info_4;
return $this; }
/** * Method to set the value of field info * * @param string $info * @return $this */ public function setInfo5($info_5) { $this->info_5 = $info_5;
return $this; }
/** * Method to set the value of field info * * @param string $info * @return $this */ public function setInfo6($info_6) { $this->info_6 = $info_6;
return $this; }
/** * Method to set the value of field type * * @param string $type * @return $this */ public function setType($type) { $this->type = $type;
return $this; }
/** * Method to set the value of field imid * * @param integer $imid * @return $this */ public function setImid($imid) { $this->imid = $imid;
return $this; }
/** * Returns the value of field quoid * * @return integer */ public function getQuoid() { return $this->quoid; }
/** * Returns the value of field info * * @return string */ public function getInfo1() { return $this->info_1; }
/** * Returns the value of field info * * @return string */ public function getInfo2() { return $this->info_2; }
/** * Returns the value of field info * * @return string */ public function getInfo3() { return $this->info_3; }
/** * Returns the value of field info * * @return string */ public function getInfo4() { return $this->info_4; }
/** * Returns the value of field info * * @return string */ public function getInfo5() { return $this->info_5; }
/** * Returns the value of field info * * @return string */ public function getInfo6() { return $this->info_6; }
/** * Returns the value of field type * * @return string */ public function getType() { return $this->type; }
/** * Returns the value of field imid * * @return integer */ public function getImid() { return $this->imid; }
/** * Validations and business logic * * @return boolean */ /* public function validation() { $validator = new Validation();
$validator->add( 'email', new EmailValidator( [ 'model' => $this, 'message' => 'Please enter a correct email address', ] ) );
return $this->validate($validator); } */
/** * Initialize method for model. */ public function initialize() {
$this->setSource("at_quotation"); $this->belongsTo('imid', '\CdInmueble', 'imid', ['alias' => 'CdInmueble']); }
/** * Returns table info mapped in the model. * * @return string */ public function getSource() { return 'at_quotation'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return CdQuotation[]|CdQuotation|\Phalcon\Mvc\Model\ResultSetInterface */ public static function find($parameters = null) { return parent::find($parameters); }
/** * Allows to query the first record that match the specified conditions * * @param mixed $parameters * @return CdQuotation|\Phalcon\Mvc\Model\ResultInterface */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|