protected static function init() { $dbRows = self::_getDb()->getUsers(); $dbData = array(); foreach ($dbRows as $row) { array_push($dbData, new User($row['ID'], $row['Login'], $row['Full_name'], $row['Email'])); } self::$users = $dbData; }