public function findContentsByClassname($classnameArr = array(), $orderInfos = array(), $limitInfos = array())
    {
        $result = array();
        if (!is_array($classnameArr)) {
            return $result;
        }
        $db = $this->_em->getConnection();

        $start = (is_array($limitInfos) && array_key_exists('start', $limitInfos)) ? (int) $limitInfos['start'] : 0;
        $limit = (is_array($limitInfos) && array_key_exists('limit', $limitInfos)) ? (int) $limitInfos['limit'] : 0;
        $stmt = $db->executeQuery('SELECT * FROM `content` WHERE `classname` IN (?) order by modified desc limit ?,?', array($classnameArr, $start, $limit), array(\Doctrine\DBAL\Connection::PARAM_STR_ARRAY, 1, 1)
        );

        $items = $stmt->fetchAll();
        if ($items) {
            foreach ($items as $item) {
                $content = $this->_em->find(AbstractClassContent::getFullClassname($item['classname']), $item['uid']);
                if ($content) {
                    $result[] = $content;
                }
            }
        }

        return $result;
    }
public function findContentsByClassname($classnameArr = array(), $orderInfos = array(), $limitInfos = array())
    {
        $result = array();
        if (!is_array($classnameArr)) {
            return $result;
        }
        $db = $this->_em->getConnection();

        $start = (is_array($limitInfos) && array_key_exists('start', $limitInfos)) ? (int) $limitInfos['start'] : 0;
        $limit = (is_array($limitInfos) && array_key_exists('limit', $limitInfos)) ? (int) $limitInfos['limit'] : 0;
        $stmt = $db->executeQuery('SELECT * FROM `content` WHERE `classname` IN (?) order by modified desc limit ?,?', array($classnameArr, $start, $limit), array(\Doctrine\DBAL\Connection::PARAM_STR_ARRAY, 1, 1)
        );

        $items = $stmt->fetchAll();
        if ($items) {
            foreach ($items as $item) {
                $content = $this->_em->find(AbstractClassContent::getFullClassname($item['classname']), $item['uid']);
                if ($content) {
                    $result[] = $content;
                }
            }
        }

        return $result;
    }
public function findContentsByClassname ( $ classnameArr = array ( ) , $ orderInfos = array ( ) , $ limitInfos = array ( ) ) { $ result = array ( ) ; if ( ! is_array ( $ classnameArr ) ) { return $ result ; } $ db = $ this -> _em -> getConnection ( ) ; $ start = ( is_array ( $ limitInfos ) && array_key_exists ( 'start' , $ limitInfos ) ) ? ( int ) $ limitInfos [ 'start' ] : 0 ; $ limit = ( is_array ( $ limitInfos ) && array_key_exists ( 'limit' , $ limitInfos ) ) ? ( int ) $ limitInfos [ 'limit' ] : 0 ; $ stmt = $ db -> executeQuery ( 'SELECT * FROM `content` WHERE `classname` IN (?) order by modified desc limit ?,?' , array ( $ classnameArr , $ start , $ limit ) , array ( \ Doctrine \ DBAL \ Connection :: PARAM_STR_ARRAY , 1 , 1 ) ) ; $ items = $ stmt -> fetchAll ( ) ; if ( $ items ) { foreach ( $ items as $ item ) { $ content = $ this -> _em -> find ( AbstractClassContent :: getFullClassname ( $ item [ 'classname' ] ) , $ item [ 'uid' ] ) ; if ( $ content ) { $ result [ ] = $ content ; } } } return $ result ; }
Returns a set of content by classname.

@param array $classnameArr
@param array $orderInfos
@param array $limitInfos

@return array
Returns a set of content by classname .