public function getPathCount( $mainTranslation = false )
    {
        $pathArray = explode( '/', trim( $this->attribute( 'path_string' ), '/' ) );

        if ( !is_array( $pathArray ) || empty( $pathArray ) || count( $pathArray ) == 1 )
            return 0;

        $pathArray = array_slice( $pathArray, 0, count( $pathArray ) - 1 );

        return self::fetchListCount( array( 'id' => array( $pathArray ) ), $mainTranslation );
    }
public function getPathCount( $mainTranslation = false )
    {
        $pathArray = explode( '/', trim( $this->attribute( 'path_string' ), '/' ) );

        if ( !is_array( $pathArray ) || empty( $pathArray ) || count( $pathArray ) == 1 )
            return 0;

        $pathArray = array_slice( $pathArray, 0, count( $pathArray ) - 1 );

        return self::fetchListCount( array( 'id' => array( $pathArray ) ), $mainTranslation );
    }
public function getPathCount ( $ mainTranslation = false ) { $ pathArray = explode ( '/' , trim ( $ this -> attribute ( 'path_string' ) , '/' ) ) ; if ( ! is_array ( $ pathArray ) || empty ( $ pathArray ) || count ( $ pathArray ) == 1 ) return 0 ; $ pathArray = array_slice ( $ pathArray , 0 , count ( $ pathArray ) - 1 ) ; return self :: fetchListCount ( array ( 'id' => array ( $ pathArray ) ) , $ mainTranslation ) ; }
Returns the count of eZTagsObject objects which are parents of this tag

@param bool $mainTranslation

@return int
Returns the count of eZTagsObject objects which are parents of this tag