Beispiel #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';
         }
     }
 }
Beispiel #2
0
 function Topic($values)
 {
     parent::Entity($values);
 }
 function ModeratedEntity($database, $name, $owner = "")
 {
     Entity::Entity($database, $name, $owner);
     $this->addField("passed", VARCHAR, 1);
 }
Beispiel #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'], '_') . "/";
 }
Beispiel #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());
 }
 public function GuideChapter($where, $guide_link)
 {
     parent::Entity($where);
     $this->guide_link = $guide_link;
 }
Beispiel #8
0
 function ForumPost($values)
 {
     parent::Entity($values);
 }