Viewing file: CdInmueble.php (17.97 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace Modules\Models; class CdInmueble extends \Phalcon\Mvc\Model {
/** * * @var integer * @Primary * @Identity * @Column(column="imid", type="integer", length=11, nullable=false) */ protected $imid;
/** * * @var string * @Column(column="date_add", type="string", nullable=true) */ protected $date_add;
/** * * @var string * @Column(column="type", type="string", length=75, nullable=true) */ protected $type;
/** * * @var integer * @Column(column="uid", type="integer", length=11, nullable=true) */ protected $uid;
/** * * @var integer * @Column(column="mpid", type="integer", length=11, nullable=true) */ protected $mpid;
/** * * @var integer * @Column(column="uid_update", type="integer", length=11, nullable=true) */ protected $uid_update;
/** * * @var string * @Column(column="name_fraccionamiento", type="string", length=75, nullable=true) */ protected $name_fraccionamiento;
protected $cluster;
/** * * @var string * @Column(column="street", type="string", length=150, nullable=true) */ protected $street;
/** * * @var string * @Column(column="neighborhood", type="string", length=150, nullable=true) */ protected $neighborhood;
/** * * @var string * @Column(column="operation", type="string", nullable=true) */ protected $operation;
/** * * @var string * @Column(column="main_image", type="string", length=200, nullable=true) */ protected $main_image;
/** * * @var string * @Column(column="address", type="string", length=200, nullable=true) */ protected $address;
/** * * @var string * @Column(column="url_video", type="string", length=300, nullable=true) */ protected $url_video;
/** * * @var string * @Column(column="url_video", type="string", length=300, nullable=true) */ protected $url_video_movil;
/** * * @var string * @Column(column="url_video", type="string", length=300, nullable=true) */ protected $url_video_vimeo;
/** * * @var string * @Column(column="url_video", type="string", length=300, nullable=true) */ protected $url_video_vimeo_movil;
/** * * @var string * @Column(column="postal_code", type="string", length=15, nullable=true) */ protected $postal_code;
/** * * @var string * @Column(column="origin", type="string", length=45, nullable=true) */ protected $origin;
/** * * @var string * @Column(column="validity", type="string", nullable=true) */ protected $validity;
/** * * @var integer * @Column(column="comid", type="integer", length=11, nullable=true) */ protected $comid;
/** * * @var string * @Column(column="lat", type="string", nullable=true) */ protected $lat;
/** * * @var double * @Column(column="latitud", type="double", nullable=true) */ protected $latitud;
/** * * @var double * @Column(column="lon", type="double", nullable=true) */ protected $lon;
/** * * @var string * @Column(column="description", type="string", nullable=true) */ protected $description;
/** * * @var string * @Column(column="fast_description", type="string", nullable=true) */ protected $fast_description;
/** * * @var integer * @Column(column="folio", type="integer", length=11, nullable=true) */ protected $folio;
/** * * @var string * @Column(column="panoramic_image", type="string", length=120, nullable=true) */ protected $panoramic_image;
/** * * @var string * @Column(column="google_image", type="string", length=120, nullable=true) */ protected $google_image;
/** * * @var string * @Column(column="featured", type="string", nullable=true) */ protected $featured;
/** * Method to set the value of field imid * * @param integer $imid * @return $this */ public function setImid($imid) { $this->imid = $imid;
return $this; }
/** * Method to set the value of field date_add * * @param string $date_add * @return $this */ public function setDateAdd($date_add) { $this->date_add = $date_add;
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 uid * * @param integer $uid * @return $this */ public function setUid($uid) { $this->uid = $uid;
return $this; }
/** * Method to set the value of field mpid * * @param integer $mpid * @return $this */ public function setMpid($mpid) { $this->mpid = $mpid;
return $this; }
/** * Method to set the value of field uid_update * * @param integer $uid_update * @return $this */ public function setUidUpdate($uid_update) { $this->uid_update = $uid_update;
return $this; }
/** * Method to set the value of field name_fraccionamiento * * @param string $name_fraccionamiento * @return $this */ public function setNameFraccionamiento($name_fraccionamiento) { $this->name_fraccionamiento = $name_fraccionamiento;
return $this; }
public function setCluster($cluster) { $this->cluster = $cluster;
return $this; }
/** * Method to set the value of field street * * @param string $street * @return $this */ public function setStreet($street) { $this->street = $street;
return $this; }
/** * Method to set the value of field neighborhood * * @param string $neighborhood * @return $this */ public function setNeighborhood($neighborhood) { $this->neighborhood = $neighborhood;
return $this; }
/** * Method to set the value of field operation * * @param string $operation * @return $this */ public function setOperation($operation) { $this->operation = $operation;
return $this; }
/** * Method to set the value of field main_image * * @param string $main_image * @return $this */ public function setMainImage($main_image) { $this->main_image = $main_image;
return $this; }
/** * Method to set the value of field address * * @param string $address * @return $this */ public function setAddress($address) { $this->address = $address;
return $this; }
/** * Method to set the value of field url_video * * @param string $url_video * @return $this */ public function setUrlVideo($url_video) { $this->url_video = $url_video;
return $this; }
/** * Method to set the value of field url_video * * @param string $url_video * @return $this */ public function setUrlVideoVimeo($url_video_vimeo) { $this->url_video_vimeo = $url_video_vimeo;
return $this; }
/** * Method to set the value of field url_video * * @param string $url_video * @return $this */ public function setUrlVideoVimeoMovil($url_video_vimeo_movil) { $this->url_video_vimeo_movil = $url_video_vimeo_movil;
return $this; }
/** * Method to set the value of field url_video * * @param string $url_video * @return $this */ public function setUrlVideoMovil($url_video_movil) { $this->url_video_movil = $url_video_movil;
return $this; }
/** * Method to set the value of field postal_code * * @param string $postal_code * @return $this */ public function setPostalCode($postal_code) { $this->postal_code = $postal_code;
return $this; }
/** * Method to set the value of field origin * * @param string $origin * @return $this */ public function setOrigin($origin) { $this->origin = $origin;
return $this; }
/** * Method to set the value of field validity * * @param string $validity * @return $this */ public function setValidity($validity) { $this->validity = $validity;
return $this; }
/** * Method to set the value of field comid * * @param integer $comid * @return $this */ public function setComid($comid) { $this->comid = $comid;
return $this; }
/** * Method to set the value of field lat * * @param string $lat * @return $this */ public function setLat($lat) { $this->lat = $lat;
return $this; }
/** * Method to set the value of field latitud * * @param double $latitud * @return $this */ public function setLatitud($latitud) { $this->latitud = $latitud;
return $this; }
/** * Method to set the value of field lon * * @param double $lon * @return $this */ public function setLon($lon) { $this->lon = $lon;
return $this; }
/** * Method to set the value of field description * * @param string $description * @return $this */ public function setDescription($description) { $this->description = $description;
return $this; }
/** * Method to set the value of field fast_description * * @param string $fast_description * @return $this */ public function setFastDescription($fast_description) { $this->fast_description = $fast_description;
return $this; }
/** * Method to set the value of field folio * * @param integer $folio * @return $this */ public function setFolio($folio) { $this->folio = $folio;
return $this; }
/** * Method to set the value of field panoramic_image * * @param string $panoramic_image * @return $this */ public function setPanoramicImage($panoramic_image) { $this->panoramic_image = $panoramic_image;
return $this; }
/** * Method to set the value of field google_image * * @param string $google_image * @return $this */ public function setGoogleImage($google_image) { $this->google_image = $google_image;
return $this; }
/** * Method to set the value of field featured * * @param string $featured * @return $this */ public function setFeatured($featured) { $this->featured = $featured;
return $this; }
/** * Returns the value of field imid * * @return integer */ public function getImid() { return $this->imid; }
/** * Returns the value of field date_add * * @return string */ public function getDateAdd() { return $this->date_add; }
/** * Returns the value of field type * * @return string */ public function getType() { return $this->type; }
/** * Returns the value of field uid * * @return integer */ public function getUid() { return $this->uid; }
/** * Returns the value of field mpid * * @return integer */ public function getMpid() { return $this->mpid; }
/** * Returns the value of field uid_update * * @return integer */ public function getUidUpdate() { return $this->uid_update; }
/** * Returns the value of field name_fraccionamiento * * @return string */ public function getNameFraccionamiento() { return $this->name_fraccionamiento; }
public function getCluster() { return $this->cluster; }
/** * Returns the value of field street * * @return string */ public function getStreet() { return $this->street; }
/** * Returns the value of field neighborhood * * @return string */ public function getNeighborhood() { return $this->neighborhood; }
/** * Returns the value of field operation * * @return string */ public function getOperation() { return $this->operation; }
/** * Returns the value of field main_image * * @return string */ public function getMainImage() { return $this->main_image; }
/** * Returns the value of field address * * @return string */ public function getAddress() { return $this->address; }
/** * Returns the value of field url_video * * @return string */ public function getUrlVideo() { return $this->url_video; }
/** * Returns the value of field url_video * * @return string */ public function getUrlVideoMovil() { return $this->url_video_movil; }
/** * Returns the value of field url_video * * @return string */ public function getUrlVideoVimeoMovil() { return $this->url_video_vimeo_movil; }
/** * Returns the value of field postal_code * * @return string */ public function getPostalCode() { return $this->postal_code; }
/** * Returns the value of field origin * * @return string */ public function getOrigin() { return $this->origin; }
/** * Returns the value of field validity * * @return string */ public function getValidity() { return $this->validity; }
/** * Returns the value of field comid * * @return integer */ public function getComid() { return $this->comid; }
/** * Returns the value of field lat * * @return string */ public function getLat() { return $this->lat; }
/** * Returns the value of field latitud * * @return double */ public function getLatitud() { return $this->latitud; }
/** * Returns the value of field lon * * @return double */ public function getLon() { return $this->lon; }
/** * Returns the value of field description * * @return string */ public function getDescription() { return $this->description; }
/** * Returns the value of field fast_description * * @return string */ public function getFastDescription() { return $this->fast_description; }
/** * Returns the value of field folio * * @return integer */ public function getFolio() { return $this->folio; }
/** * Returns the value of field panoramic_image * * @return string */ public function getPanoramicImage() { return $this->panoramic_image; }
/** * Returns the value of field google_image * * @return string */ public function getGoogleImage() { return $this->google_image; }
/** * Returns the value of field featured * * @return string */ public function getFeatured() { return $this->featured; }
/** * Initialize method for model. */ public function initialize() {
$this->setSource("at_inmueble"); $this->hasMany('imid', 'CdAmenities', 'imid', ['alias' => 'CdAmenities']); $this->hasMany('imid', 'CdArchitecturalPlans', 'imid', ['alias' => 'CdArchitecturalPlans']); $this->hasMany('imid', 'CdCharacteristics', 'imid', ['alias' => 'CdCharacteristics']); $this->hasMany('imid', 'CdDimensions', 'imid', ['alias' => 'CdDimensions']); $this->hasMany('imid', 'CdDocuments', 'imid', ['alias' => 'CdDocuments']); $this->hasMany('imid', 'CdEquipment', 'imid', ['alias' => 'CdEquipment']); $this->hasMany('imid', 'CdGallery', 'imid', ['alias' => 'CdGallery']); $this->hasMany('imid', 'CdInternalDatas', 'imid', ['alias' => 'CdInternalDatas']); $this->hasMany('imid', 'CdPdfs', 'imid', ['alias' => 'CdPdfs']); $this->hasMany('imid', 'CdPrice', 'imid', ['alias' => 'CdPrice']); $this->hasMany('imid', 'CdServices', 'imid', ['alias' => 'CdServices']); $this->belongsTo('comid', '\CdCompany', 'comid', ['alias' => 'CdCompany']); $this->belongsTo('mpid', '\CdMunicipios', 'mpid', ['alias' => 'CdMunicipios']); $this->belongsTo('uid', '\CdUser', 'uid', ['alias' => 'CdUser']); }
/** * Returns table name mapped in the model. * * @return string */ public function getSource() { return 'at_inmueble'; }
/** * Allows to query a set of records that match the specified conditions * * @param mixed $parameters * @return CdInmueble[]|CdInmueble|\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 CdInmueble|\Phalcon\Mvc\Model\ResultInterface */ public static function findFirst($parameters = null) { return parent::findFirst($parameters); }
}
|