bin/php/updatesearchindexsolr.php
protected function objectCount()
    {
        $topNodeArray = eZPersistentObject::fetchObjectList(
            eZContentObjectTreeNode::definition(),
            null,
            array( 'parent_node_id' => 1, 'depth' => 1 )
        );
        $subTreeCount = 0;
        foreach ( array_keys ( $topNodeArray ) as $key  )
        {
            $subTreeCount += $topNodeArray[$key]->subTreeCount( array( 'Limitation' => array(), 'MainNodeOnly' => true ) );
        }

        return $subTreeCount;
    }
protected function objectCount()
    {
        $topNodeArray = eZPersistentObject::fetchObjectList(
            eZContentObjectTreeNode::definition(),
            null,
            array( 'parent_node_id' => 1, 'depth' => 1 )
        );
        $subTreeCount = 0;
        foreach ( array_keys ( $topNodeArray ) as $key  )
        {
            $subTreeCount += $topNodeArray[$key]->subTreeCount( array( 'Limitation' => array(), 'MainNodeOnly' => true ) );
        }

        return $subTreeCount;
    }
protected function objectCount ( ) { $ topNodeArray = eZPersistentObject :: fetchObjectList ( eZContentObjectTreeNode :: definition ( ) , null , array ( 'parent_node_id' => 1 , 'depth' => 1 ) ) ; $ subTreeCount = 0 ; foreach ( array_keys ( $ topNodeArray ) as $ key ) { $ subTreeCount += $ topNodeArray [ $ key ] -> subTreeCount ( array ( 'Limitation' => array ( ) , 'MainNodeOnly' => true ) ) ; } return $ subTreeCount ; }
Get total number of objects

@return int Total object count
Get total number of objects