PHP 클래스 Pimcore\Model\Document\Service

상속: extends Pimcore\Model\Element\Service
파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_copyRecursiveIds array
$_user User

공개 메소드들

메소드 설명
__construct ( null $user = null )
copyAsChild ( $target, $source, boolean $enableInheritance = false, boolean $resetIndex = false ) : Document
copyContents ( $target, $source ) : mixed
copyRecursive ( Document $target, Document $source ) : Document
getByUrl ( $url ) : Document
getUniqueKey ( $item, $nr )
gridDocumentData ( Document $document ) : void
isValidType ( $type ) : boolean
loadAllDocumentFields ( $doc ) : mixed
pathExists ( $path, $type = null ) : boolean
render ( Document $document, array $params = [], boolean $useLayout = false ) : string static function to render a document outside of a view
rewriteIds ( $document, $rewriteConfig, $params = [] ) : Document Rewrites id from source to target, $rewriteConfig contains array( "document" => array( SOURCE_ID => TARGET_ID, SOURCE_ID => TARGET_ID ), "object" => array(.
saveRecursive ( $document, integer $collectGarbageAfterIteration = 25, integer &$saved ) Save document and all child documents

메소드 상세

__construct() 공개 메소드

public __construct ( null $user = null )
$user null

copyAsChild() 공개 메소드

public copyAsChild ( $target, $source, boolean $enableInheritance = false, boolean $resetIndex = false ) : Document
$target
$source
$enableInheritance boolean
$resetIndex boolean
리턴 Pimcore\Model\Document

copyContents() 공개 메소드

public copyContents ( $target, $source ) : mixed
$target
$source
리턴 mixed

copyRecursive() 공개 메소드

public copyRecursive ( Document $target, Document $source ) : Document
$target Pimcore\Model\Document
$source Pimcore\Model\Document
리턴 Pimcore\Model\Document copied document

getByUrl() 공개 정적인 메소드

public static getByUrl ( $url ) : Document
$url
리턴 Pimcore\Model\Document

getUniqueKey() 공개 정적인 메소드

public static getUniqueKey ( $item, $nr )

gridDocumentData() 공개 정적인 메소드

public static gridDocumentData ( Document $document ) : void
$document Pimcore\Model\Document
리턴 void

isValidType() 공개 정적인 메소드

public static isValidType ( $type ) : boolean
$type
리턴 boolean

loadAllDocumentFields() 공개 정적인 메소드

public static loadAllDocumentFields ( $doc ) : mixed
$doc
리턴 mixed

pathExists() 공개 정적인 메소드

public static pathExists ( $path, $type = null ) : boolean
$path
리턴 boolean

render() 공개 정적인 메소드

static function to render a document outside of a view
public static render ( Document $document, array $params = [], boolean $useLayout = false ) : string
$document Pimcore\Model\Document
$params array
$useLayout boolean
리턴 string

rewriteIds() 공개 정적인 메소드

..), "asset" => array(...) )
public static rewriteIds ( $document, $rewriteConfig, $params = [] ) : Document
$document
$rewriteConfig
리턴 Pimcore\Model\Document

saveRecursive() 공개 정적인 메소드

Save document and all child documents
public static saveRecursive ( $document, integer $collectGarbageAfterIteration = 25, integer &$saved )
$document
$collectGarbageAfterIteration integer
$saved integer

프로퍼티 상세

$_copyRecursiveIds 보호되어 있는 프로퍼티

protected array $_copyRecursiveIds
리턴 array

$_user 보호되어 있는 프로퍼티

protected User $_user
리턴 User