public static function getAll() { if (self::$_clients === null) { self::$_clients = TBGClientsTable::getTable()->getAll(); } return self::$_clients; }
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; }