function User($sql_where) { parent::Entity($sql_where); if ($this['id']) { // Imposta defaults su nulls if (!$this['avatar']) { $this['avatar'] = "default.png"; } if (!$this['member_location']) { $this['member_location'] = 'Località non disponibile'; } if (!$this['member_employ']) { $this['member_employ'] = 'Impiego non disponibile'; } } }
function Topic($values) { parent::Entity($values); }
function ModeratedEntity($database, $name, $owner = "") { Entity::Entity($database, $name, $owner); $this->addField("passed", VARCHAR, 1); }
public function Guide($values) { parent::Entity($values); $this->exists = $this['id'] != null ? true : false; $this->link = "/p/guide/" . $this['id'] . "-" . Text::AlphaNumericFilter($this['name'], '_') . "/"; }
public function __construct($where_sql) { parent::Entity($where_sql); }
function ServiceNode() { parent::Entity(); $this->registerPart('node', new NodeConnection()); $this->registerPart('service', new ServiceLocation()); }
public function GuideChapter($where, $guide_link) { parent::Entity($where); $this->guide_link = $guide_link; }
function ForumPost($values) { parent::Entity($values); }