Метод | Описание | |
---|---|---|
__construct ( string $query, string $typeName, array $parameterValues = [], string $language = 'glob' ) | Creates a new resource binding. | |
equals ( Puli\Discovery\Api\Binding\Binding $other ) | ||
getLanguage ( ) : string | Returns the language of the query. | |
getQuery ( ) : string | Returns the query for the resources of the binding. | |
getResources ( ) : Puli\Repository\Api\ResourceCollection | Returns the bound resources. | |
setRepository ( Puli\Repository\Api\ResourceRepository $repo ) | Sets the repository used to load resources. |
Метод | Описание | |
---|---|---|
postUnserialize ( array &$data ) | ||
preSerialize ( array &$data ) |
public __construct ( string $query, string $typeName, array $parameterValues = [], string $language = 'glob' ) | ||
$query | string | The resource query. |
$typeName | string | The type to bind against. |
$parameterValues | array | The values of the parameters defined for the type. |
$language | string | The language of the resource query. |
public equals ( Puli\Discovery\Api\Binding\Binding $other ) | ||
$other | Puli\Discovery\Api\Binding\Binding |
public getLanguage ( ) : string | ||
Результат | string | The query language. |
public getResources ( ) : Puli\Repository\Api\ResourceCollection | ||
Результат | Puli\Repository\Api\ResourceCollection | The bound resources. |
public setRepository ( Puli\Repository\Api\ResourceRepository $repo ) | ||
$repo | Puli\Repository\Api\ResourceRepository | The resource repository. |