Ejemplo n.º 1
0
 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';
         }
     }
 }
Ejemplo n.º 2
0
 function Topic($values)
 {
     parent::Entity($values);
 }
Ejemplo n.º 3
0
 function ModeratedEntity($database, $name, $owner = "")
 {
     Entity::Entity($database, $name, $owner);
     $this->addField("passed", VARCHAR, 1);
 }
Ejemplo n.º 4
0
 public function Guide($values)
 {
     parent::Entity($values);
     $this->exists = $this['id'] != null ? true : false;
     $this->link = "/p/guide/" . $this['id'] . "-" . Text::AlphaNumericFilter($this['name'], '_') . "/";
 }
Ejemplo n.º 5
0
 public function __construct($where_sql)
 {
     parent::Entity($where_sql);
 }
 function ServiceNode()
 {
     parent::Entity();
     $this->registerPart('node', new NodeConnection());
     $this->registerPart('service', new ServiceLocation());
 }
Ejemplo n.º 7
0
 public function GuideChapter($where, $guide_link)
 {
     parent::Entity($where);
     $this->guide_link = $guide_link;
 }
Ejemplo n.º 8
0
 function ForumPost($values)
 {
     parent::Entity($values);
 }