Exemplo n.º 1
0
 public static function getAll()
 {
     if (self::$_clients === null) {
         self::$_clients = TBGClientsTable::getTable()->getAll();
     }
     return self::$_clients;
 }
Exemplo n.º 2
0
 public static function getAll()
 {
     if (self::$_clients === null) {
         self::$_clients = array();
         if ($res = B2DB::getTable('TBGClientsTable')->getAll()) {
             while ($row = $res->getNextRow()) {
                 self::$_clients[$row->get(TBGClientsTable::ID)] = TBGContext::factory()->TBGClient($row->get(TBGClientsTable::ID), $row);
             }
         }
     }
     return self::$_clients;
 }