/** * Returns an instance of class (singleton pattern implementation). * * @return BOL_MenuItemDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Finds menu item by document key. * * @param string $docKey * @return BOL_MenuItem */ public function findMenuItemByDocumentKey($docKey) { return $this->menuItemDao->findByDocumentKey($docKey); }