/** * Returns an instance of class (singleton pattern implementation). * * @return MODERATION_BOL_EntityDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * * @param array $entityTypes * @return int */ public function findCountForEntityTypeList($entityTypes, $ownerId = null) { return $this->entityDao->findCountForEntityTypeList($entityTypes, $ownerId); }