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

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

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

        return self::fetchList( array( 'id' => array( $pathArray ) ),
                                null,
                                array( 'path_string' => $reverseSort != false ? 'desc' : 'asc' ),
                                $mainTranslation );
    }
public function getPath( $reverseSort = false, $mainTranslation = false )
    {
        $pathArray = explode( '/', trim( $this->attribute( 'path_string' ), '/' ) );

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

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

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

@param bool $reverseSort
@param bool $mainTranslation

@return eZTagsObject[]
Returns the array of eZTagsObject objects which are parents of this tag