private function getDistinctClassnamesFromUids(array $uids)
    {
        $classnames = array();

        try {
            if (0 < count($uids)) {
                // Data protection
                array_walk($uids, function (&$item) {
                            $item = addslashes($item);
                });

                // Getting classnames for provided uids
                $classnames = $this->_em
                        ->getConnection()
                        ->createQueryBuilder()
                        ->select('classname')
                        ->from('content', 'c')
                        ->andWhere("uid IN ('".implode("','", $uids)."')")
                        ->execute()
                        ->fetchAll(\PDO::FETCH_COLUMN);
            }
        } catch (\Exception $e) {
            // Ignoring error
        }

        return array_unique($classnames);
    }
private function getDistinctClassnamesFromUids(array $uids)
    {
        $classnames = array();

        try {
            if (0 < count($uids)) {
                // Data protection
                array_walk($uids, function (&$item) {
                            $item = addslashes($item);
                });

                // Getting classnames for provided uids
                $classnames = $this->_em
                        ->getConnection()
                        ->createQueryBuilder()
                        ->select('classname')
                        ->from('content', 'c')
                        ->andWhere("uid IN ('".implode("','", $uids)."')")
                        ->execute()
                        ->fetchAll(\PDO::FETCH_COLUMN);
            }
        } catch (\Exception $e) {
            // Ignoring error
        }

        return array_unique($classnames);
    }
private function getDistinctClassnamesFromUids ( array $ uids ) { $ classnames = array ( ) ; try { if ( 0 < count ( $ uids ) ) { // Data protection array_walk ( $ uids , function ( & $ item ) { $ item = addslashes ( $ item ) ; } ) ; // Getting classnames for provided uids $ classnames = $ this -> _em -> getConnection ( ) -> createQueryBuilder ( ) -> select ( 'classname' ) -> from ( 'content' , 'c' ) -> andWhere ( "uid IN ('" . implode ( "','" , $ uids ) . "')" ) -> execute ( ) -> fetchAll ( \ PDO :: FETCH_COLUMN ) ; } } catch ( \ Exception $ e ) { // Ignoring error } return array_unique ( $ classnames ) ; }
Return the classnames from content uids.

@param array $uids An array of content uids

@return array An array of the classnames
Return the classnames from content uids .