/** * singleton * * @return CoreData_Controller */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new CoreData_Controller(); } return self::$_instance; }
public function getCoreData() { try { $result = CoreData_Controller::getInstance()->getCoreData()->toArray(); } catch (Exception $e) { Tinebase_Exception::log($e); $result = array(); } return array('results' => $result, 'totalcount' => count($result)); }