Viewing file: AtClients.php (9.98 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class AtClients extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(type="integer", length=11, nullable=false) */ protected $cid;
/** * * @var string * @Column(type="string", length=200, nullable=false) */ protected $pcd;
/** * * @var string * @Column(type="string", length=45, nullable=false) */ protected $name;
/** * * @var string * @Column(type="string", length=45, nullable=false) */ protected $last_name;
/** * * @var string * @Column(type="string", length=45, nullable=true) */ protected $second_name;
/** * * @var string * @Column(type="string", length=75, nullable=true) */ protected $email;
/** * * @var string * @Column(type="string", length=15, nullable=true) */ protected $tel;
/** * * @var string * @Column(type="string", length=1, nullable=false) */ protected $sex;
/** * * @var string * @Column(type="string", nullable=true) */ protected $birthdate;
/** * * @var integer * @Column(type="integer", length=2, nullable=true) */ protected $age;
/** * * @var string * @Column(type="string", length=45, nullable=true) */ protected $working;
/** * * @var string * @Column(type="string", nullable=true) */ protected $status;
/** * * @var string * @Column(type="string", nullable=false) */ protected $date_creation;
/** * * @var integer * @Column(type="integer", length=11, nullable=true) */ protected $scid;
/** * * @var integer * @Column(type="integer", length=11, nullable=false) */ protected $uid;
/** * * @var integer * @Column(type="integer", length=11, nullable=true) */ protected $uidUpdate;
/** * * @var integer * @Column(type="integer", length=11, nullable=true) */ protected $crid;
/** * Method to set the value of field cid * * @param integer $cid * @return $this */ public function setCid($cid) { $this->cid = $cid;
return $this; }
/** * Method to set the value of field pcd * * @param string $pcd * @return $this */ public function setPcd($pcd) { $this->pcd = $pcd;
return $this; }
/** * Method to set the value of field name * * @param string $name * @return $this */ public function setName($name) { $this->name = $name;
return $this; }
/** * Method to set the value of field last_name * * @param string $last_name * @return $this */ public function setLastName($last_name) { $this->last_name = $last_name;
return $this; }
/** * Method to set the value of field second_name * * @param string $second_name * @return $this */ public function setSecondName($second_name) { $this->second_name = $second_name;
return $this; }
/** * Method to set the value of field email * * @param string $email * @return $this */ public function setEmail($email) { $this->email = $email;
return $this; }
/** * Method to set the value of field tel * * @param string $tel * @return $this */ public function setTel($tel) { $this->tel = $tel;
return $this; }
/** * Method to set the value of field sex * * @param string $sex * @return $this */ public function setSex($sex) { $this->sex = $sex;
return $this; }
/** * Method to set the value of field birthdate * * @param string $birthdate * @return $this */ public function setBirthdate($birthdate) { $this->birthdate = $birthdate;
return $this; }
/** * Method to set the value of field age * * @param integer $age * @return $this */ public function setAge($age) { $this->age = $age;
return $this; }
/** * Method to set the value of field working * * @param string $working * @return $this */ public function setWorking($working) { $this->working = $working;
return $this; }
/** * Method to set the value of field status * * @param string $status * @return $this */ public function setStatus($status) { $this->status = $status;
return $this; }
/** * Method to set the value of field date_creation * * @param string $date_creation * @return $this */ public function setDateCreation($date_creation) { $this->date_creation = $date_creation;
return $this; }
/** * Method to set the value of field scid * * @param integer $scid * @return $this */ public function setScid($scid) { $this->scid = $scid;
return $this; }
/** * Method to set the value of field uid * * @param integer $uid * @return $this */ public function setUid($uid) { $this->uid = $uid;
return $this; }
/** * Method to set the value of field uidUpdate * * @param integer $uidUpdate * @return $this */ public function setUidUpdate($uidUpdate) { $this->uidUpdate = $uidUpdate;
return $this; }
/** * Method to set the value of field crid * * @param integer $crid * @return $this */ public function setCrid($crid) { $this->crid = $crid;
return $this; }
/** * Returns the value of field cid * * @return integer */ public function getCid() { return $this->cid; }
/** * Returns the value of field pcd * * @return string */ public function getPcd() { return $this->pcd; }
/** * Returns the value of field name * * @return string */ public function getName() { return $this->name; }
/** * Returns the value of field last_name * * @return string */ public function getLastName() { return $this->last_name; }
/** * Returns the value of field second_name * * @return string */ public function getSecondName() { return $this->second_name; }
/** * Returns the value of field email * * @return string */ public function getEmail() { return $this->email; }
/** * Returns the value of field tel * * @return string */ public function getTel() { return $this->tel; }
/** * Returns the value of field sex * * @return string */ public function getSex() { return $this->sex; }
/** * Returns the value of field birthdate * * @return string */ public function getBirthdate() { return $this->birthdate; }
/** * Returns the value of field age * * @return integer */ public function getAge() { return $this->age; }
/** * Returns the value of field working * * @return string */ public function getWorking() { return $this->working; }
/** * Returns the value of field status * * @return string */ public function getStatus() { return $this->status; }
/** * Returns the value of field date_creation * * @return string */ public function getDateCreation() { return $this->date_creation; }
/** * Returns the value of field scid * * @return integer */ public function getScid() { return $this->scid; }
/** * Returns the value of field uid * * @return integer */ public function getUid() { return $this->uid; }
/** * Returns the value of field uidUpdate * * @return integer */ public function getUidUpdate() { return $this->uidUpdate; }
/** * Returns the value of field crid * * @return integer */ public function getCrid() { return $this->crid; }
/** * Validations and business logic * * @return boolean */
/** * Initialize method for model. */ public function initialize() { $this->hasMany('cid', 'AtDirection', 'cid', ['alias' => 'AtDirection']); $this->hasMany('cid', 'AtFollowUp', 'cid', ['alias' => 'AtFollowUp']); $this->hasMany('cid', 'AtOtherInformation', 'cid', ['alias' => 'AtOtherInformation']); $this->hasMany('cid', 'AtScholarship', 'cid', ['alias' => 'AtScholarship']); $this->belongsTo('crid', 'AtCareers', 'crid', ['alias' => 'AtCareers']); $this->belongsTo('uid', 'AtUser', 'uid', ['alias' => 'AtUser']); $this->belongsTo('scid', 'AtSchool', 'scid', ['alias' => 'AtSchool']); }
/** * Returns table name mapped in the model. * * @return string */ public function getSource() { return 'at_clients'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return AtClients[] */ 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 AtClients */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|