PHP Class Pimcore\Model\Document\Hardlink\Service

Show file Open project: pimcore/pimcore Class Usage Examples

Public Methods

Method Description
getChildByPath ( Hardlink $hardlink, string $path ) : Document this is used to get childs below a hardlink by a path for example: the requested path is /de/service/contact but /de/service is a hardlink to /en/service then $hardlink would be /en/service and $path /de/service/contact and this function returns then /en/service/contact
getNearestChildByPath ( Hardlink $hardlink, $path ) : Document
upperCastDocument ( Document $doc ) : Document
wrap ( Document $doc ) : Document

Method Details

getChildByPath() public static method

this is used to get childs below a hardlink by a path for example: the requested path is /de/service/contact but /de/service is a hardlink to /en/service then $hardlink would be /en/service and $path /de/service/contact and this function returns then /en/service/contact
public static getChildByPath ( Hardlink $hardlink, string $path ) : Document
$hardlink Pimcore\Model\Document\Hardlink
$path string
return Pimcore\Model\Document

getNearestChildByPath() public static method

public static getNearestChildByPath ( Hardlink $hardlink, $path ) : Document
$hardlink Pimcore\Model\Document\Hardlink
$path
return Pimcore\Model\Document

upperCastDocument() public static method

public static upperCastDocument ( Document $doc ) : Document
$doc Pimcore\Model\Document
return Pimcore\Model\Document

wrap() public static method

public static wrap ( Document $doc ) : Document
$doc Pimcore\Model\Document
return Pimcore\Model\Document