PHP Класс Pimcore\Tool\RestClient

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$apikey string
$baseUrl string
$condense boolean
$disableMappingExceptions boolean
$enableProfiling boolean
$host string
$loggingEnabled boolean
$testMode boolean

Открытые методы

Метод Описание
__construct ( array $options = [] )
buildEndpointUrl ( $customUrlPath, array $params = [] ) : string
changeExtension ( $filename, $extension ) : string
createAsset ( $asset ) : mixed | null | string
createAssetFolder ( $assetFolder ) : mixed Creates a new asset folder.
createDocument ( $document ) : mixed Creates a new document.
createDocumentFolder ( $documentFolder ) : mixed Creates a new document folder.
createObjectConcrete ( $object ) : mixed Creates a new object.
createObjectFolder ( $objectFolder ) : mixed Creates a new object folder.
deleteAsset ( $assetId ) : mixed Delete asset.
deleteDocument ( $documentId ) : mixed Delete document.
deleteObject ( $objectId ) : mixed Delete object.
doRequest ( $uri, string $method = "GET", null $body = null ) : mixed | null | string
enableTestMode ( ) Enables the test mode. X-pimcore-unit-test-request=true header will be sent.
getApiKey ( ) : string
getAssetById ( $id, $decode = true, $idMapper = null, $light = false, $thumbnail = null, $tolerant = false, $protocol = "http://" )
getAssetCount ( null $condition = null, null $groupBy = null ) : mixed
getAssetList ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, boolean $decode = true ) : array
getBaseUrl ( ) : string
getClassById ( $id, boolean $decode = true ) : mixed | null | ClassDefinition | string
getClasses ( ) : mixed Returns a list of defined classes
getClient ( ) : Zend_Http_Client
getCondense ( ) : boolean
getCurrentTime ( ) : mixed Returns the current server time
getDisableMappingExceptions ( ) : boolean
getDocumentById ( $id, boolean $decode = true, null $idMapper = null ) : mixed
getDocumentCount ( null $condition = null, null $groupBy = null ) : mixed
getDocumentList ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, boolean $decode = true ) : array
getEnableProfiling ( ) : boolean
getFieldCollection ( $id ) : mixed | null | string
getFieldCollections ( ) : mixed | null | string
getHost ( ) : string
getImageThumbnail ( $id ) : mixed Returns the image thumbnail configuration with the given ID.
getImageThumbnails ( ) : mixed Returns a list of image thumbnail configurations.
getKeyValueDefinition ( ) : mixed Returns the key value definition
getLoggingEnabled ( ) : boolean
getObjectBrick ( $id ) : mixed Returns the given object brick definition
getObjectBricks ( ) : mixed Returns a list of defined object bricks
getObjectById ( $id, $decode = true, $idMapper = null )
getObjectCount ( null $condition = null, null $groupBy = null, null $objectClass = null ) : mixed
getObjectList ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, boolean $decode = true, null $objectClass = null ) : array
getObjectMetaById ( $id, boolean $decode = true ) : mixed | ClassDefinition
getProfilingInfo ( ) : mixed
getServerInfo ( ) : mixed Returns: server-info including pimcore version, current time and extension data.
getTestMode ( ) : boolean
getUser ( ) : mixed Returns the current user
setApiKey ( $apikey )
setBaseUrl ( $base )
setClient ( Zend_Http_Client $client )
setCondense ( $condense )
setDisableMappingExceptions ( $disableMappingExceptions )
setEnableProfiling ( $enableProfiling )
setHost ( $host )
setLoggingEnabled ( $loggingEnabled )
setTestMode ( $testMode )
setValue ( $key, $value )
setValues ( array $data = [] )

Приватные методы

Метод Описание
fillParms ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, null $objectClass = null ) : string
fillWebserviceData ( $class, $data ) : mixed
map ( $wsData, $data ) : mixed

Описание методов

__construct() публичный Метод

public __construct ( array $options = [] )
$options array

buildEndpointUrl() публичный Метод

public buildEndpointUrl ( $customUrlPath, array $params = [] ) : string
$customUrlPath
$params array
Результат string

changeExtension() публичный Метод

public changeExtension ( $filename, $extension ) : string
$filename
$extension
Результат string

createAsset() публичный Метод

public createAsset ( $asset ) : mixed | null | string
$asset
Результат mixed | null | string

createAssetFolder() публичный Метод

Creates a new asset folder.
public createAssetFolder ( $assetFolder ) : mixed
$assetFolder document folder.
Результат mixed

createDocument() публичный Метод

Creates a new document.
public createDocument ( $document ) : mixed
$document
Результат mixed json encoded success value and id

createDocumentFolder() публичный Метод

Creates a new document folder.
public createDocumentFolder ( $documentFolder ) : mixed
Результат mixed

createObjectConcrete() публичный Метод

Creates a new object.
public createObjectConcrete ( $object ) : mixed
$object
Результат mixed json encoded success value and id

createObjectFolder() публичный Метод

Creates a new object folder.
public createObjectFolder ( $objectFolder ) : mixed
$objectFolder object folder.
Результат mixed

deleteAsset() публичный Метод

Delete asset.
public deleteAsset ( $assetId ) : mixed
$assetId
Результат mixed json encoded success value and id

deleteDocument() публичный Метод

Delete document.
public deleteDocument ( $documentId ) : mixed
$documentId
Результат mixed json encoded success value and id

deleteObject() публичный Метод

Delete object.
public deleteObject ( $objectId ) : mixed
$objectId
Результат mixed json encoded success value and id

doRequest() публичный Метод

public doRequest ( $uri, string $method = "GET", null $body = null ) : mixed | null | string
$uri
$method string
$body null
Результат mixed | null | string

enableTestMode() публичный Метод

Enables the test mode. X-pimcore-unit-test-request=true header will be sent.
public enableTestMode ( )

getApiKey() публичный Метод

public getApiKey ( ) : string
Результат string

getAssetById() публичный Метод

public getAssetById ( $id, $decode = true, $idMapper = null, $light = false, $thumbnail = null, $tolerant = false, $protocol = "http://" )

getAssetCount() публичный Метод

public getAssetCount ( null $condition = null, null $groupBy = null ) : mixed
$condition null
$groupBy null
Результат mixed

getAssetList() публичный Метод

public getAssetList ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, boolean $decode = true ) : array
$condition null
$order null
$orderKey null
$offset null
$limit null
$groupBy null
$decode boolean
Результат array

getBaseUrl() публичный Метод

public getBaseUrl ( ) : string
Результат string

getClassById() публичный Метод

public getClassById ( $id, boolean $decode = true ) : mixed | null | ClassDefinition | string
$id
$decode boolean
Результат mixed | null | Pimcore\Model\Object\ClassDefinition | string

getClasses() публичный Метод

Returns a list of defined classes
public getClasses ( ) : mixed
Результат mixed

getClient() публичный Метод

public getClient ( ) : Zend_Http_Client
Результат Zend_Http_Client

getCondense() публичный Метод

public getCondense ( ) : boolean
Результат boolean

getCurrentTime() публичный Метод

Returns the current server time
public getCurrentTime ( ) : mixed
Результат mixed

getDisableMappingExceptions() публичный Метод

public getDisableMappingExceptions ( ) : boolean
Результат boolean

getDocumentById() публичный Метод

public getDocumentById ( $id, boolean $decode = true, null $idMapper = null ) : mixed
$id
$decode boolean
$idMapper null
Результат mixed

getDocumentCount() публичный Метод

public getDocumentCount ( null $condition = null, null $groupBy = null ) : mixed
$condition null
$groupBy null
Результат mixed

getDocumentList() публичный Метод

public getDocumentList ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, boolean $decode = true ) : array
$condition null
$order null
$orderKey null
$offset null
$limit null
$groupBy null
$decode boolean
Результат array

getEnableProfiling() публичный Метод

public getEnableProfiling ( ) : boolean
Результат boolean

getFieldCollection() публичный Метод

public getFieldCollection ( $id ) : mixed | null | string
$id
Результат mixed | null | string

getFieldCollections() публичный Метод

public getFieldCollections ( ) : mixed | null | string
Результат mixed | null | string

getHost() публичный Метод

public getHost ( ) : string
Результат string

getImageThumbnail() публичный Метод

Returns the image thumbnail configuration with the given ID.
public getImageThumbnail ( $id ) : mixed
$id
Результат mixed

getImageThumbnails() публичный Метод

Returns a list of image thumbnail configurations.
public getImageThumbnails ( ) : mixed
Результат mixed

getKeyValueDefinition() публичный Метод

Returns the key value definition
public getKeyValueDefinition ( ) : mixed
Результат mixed

getLoggingEnabled() публичный Метод

public getLoggingEnabled ( ) : boolean
Результат boolean

getObjectBrick() публичный Метод

Returns the given object brick definition
public getObjectBrick ( $id ) : mixed
$id
Результат mixed

getObjectBricks() публичный Метод

Returns a list of defined object bricks
public getObjectBricks ( ) : mixed
Результат mixed

getObjectById() публичный Метод

public getObjectById ( $id, $decode = true, $idMapper = null )

getObjectCount() публичный Метод

public getObjectCount ( null $condition = null, null $groupBy = null, null $objectClass = null ) : mixed
$condition null
$groupBy null
$objectClass null
Результат mixed

getObjectList() публичный Метод

public getObjectList ( null $condition = null, null $order = null, null $orderKey = null, null $offset = null, null $limit = null, null $groupBy = null, boolean $decode = true, null $objectClass = null ) : array
$condition null
$order null
$orderKey null
$offset null
$limit null
$groupBy null
$decode boolean
$objectClass null
Результат array

getObjectMetaById() публичный Метод

public getObjectMetaById ( $id, boolean $decode = true ) : mixed | ClassDefinition
$id
$decode boolean
Результат mixed | Pimcore\Model\Object\ClassDefinition

getProfilingInfo() публичный Метод

public getProfilingInfo ( ) : mixed
Результат mixed

getServerInfo() публичный Метод

Returns: server-info including pimcore version, current time and extension data.
public getServerInfo ( ) : mixed
Результат mixed

getTestMode() публичный Метод

public getTestMode ( ) : boolean
Результат boolean

getUser() публичный Метод

Returns the current user
public getUser ( ) : mixed
Результат mixed

setApiKey() публичный Метод

public setApiKey ( $apikey )
$apikey

setBaseUrl() публичный Метод

public setBaseUrl ( $base )
$base

setClient() публичный Метод

public setClient ( Zend_Http_Client $client )
$client Zend_Http_Client

setCondense() публичный Метод

public setCondense ( $condense )
$condense

setDisableMappingExceptions() публичный Метод

public setDisableMappingExceptions ( $disableMappingExceptions )
$disableMappingExceptions

setEnableProfiling() публичный Метод

public setEnableProfiling ( $enableProfiling )
$enableProfiling

setHost() публичный Метод

public setHost ( $host )
$host

setLoggingEnabled() публичный Метод

public setLoggingEnabled ( $loggingEnabled )
$loggingEnabled

setTestMode() публичный Метод

public setTestMode ( $testMode )
$testMode

setValue() публичный Метод

public setValue ( $key, $value )
$key
$value

setValues() публичный Метод

public setValues ( array $data = [] )
$data array

Описание свойств

$apikey защищенное свойство

protected string $apikey
Результат string

$baseUrl защищенное свойство

protected string $baseUrl
Результат string

$condense защищенное свойство

protected bool $condense
Результат boolean

$disableMappingExceptions защищенное свойство

protected bool $disableMappingExceptions
Результат boolean

$enableProfiling защищенное свойство

protected bool $enableProfiling
Результат boolean

$host защищенное свойство

protected string $host
Результат string

$loggingEnabled защищенное свойство

protected bool $loggingEnabled
Результат boolean

$testMode защищенное свойство

protected bool $testMode
Результат boolean