/** * Returns an instance of class (singleton pattern implementation). * * @return CONTACTUS_BOL_DepartmentDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
public function getDepartmentList() { return CONTACTUS_BOL_DepartmentDao::getInstance()->findAll(); }