Exemplo n.º 1
0
 public static function getByName($name)
 {
     $o = SqlObject::getByField($name, self::$tbl_name, __CLASS__, 'name');
     if (!$o) {
         return new Wiki();
     }
     // XXX TODO: this is a workaround because becase SqlObject::loadObject dont always return a object!!!!
     return $o;
 }