repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_code_tokens
listlengths
15
672k
func_documentation_string
stringlengths
1
47.2k
func_documentation_tokens
listlengths
1
3.92k
split_name
stringclasses
1 value
func_code_url
stringlengths
85
339
layershifter/TLDDatabase
src/Update.php
Update.run
public function run() { /* * Fetching Public Suffix List and parse suffixes. * */ $lines = $this->httpAdapter->get(Update::PUBLIC_SUFFIX_LIST_URL); $parser = new Parser($lines); $suffixes = $parser->parse(); /* * Write file with exclusive file wr...
php
public function run() { /* * Fetching Public Suffix List and parse suffixes. * */ $lines = $this->httpAdapter->get(Update::PUBLIC_SUFFIX_LIST_URL); $parser = new Parser($lines); $suffixes = $parser->parse(); /* * Write file with exclusive file wr...
[ "public", "function", "run", "(", ")", "{", "/*\n * Fetching Public Suffix List and parse suffixes.\n * */", "$", "lines", "=", "$", "this", "->", "httpAdapter", "->", "get", "(", "Update", "::", "PUBLIC_SUFFIX_LIST_URL", ")", ";", "$", "parser", "=", ...
Fetches actual Public Suffix List and writes obtained suffixes to target file. @return void @throws IOException
[ "Fetches", "actual", "Public", "Suffix", "List", "and", "writes", "obtained", "suffixes", "to", "target", "file", "." ]
train
https://github.com/layershifter/TLDDatabase/blob/50433a8705e3d7f3a584943c3aef09b5f561e2b7/src/Update.php#L84-L118
layershifter/TLDDatabase
src/Parser.php
Parser.parse
public function parse() { $suffixes = []; foreach ($this->lines as $line) { if (Str::startsWith($line, Parser::PRIVATE_DOMAINS_STRING)) { $this->isICANNSuffix = false; continue; } if (Str::startsWith($line, Parser::COMMENT_STRING...
php
public function parse() { $suffixes = []; foreach ($this->lines as $line) { if (Str::startsWith($line, Parser::PRIVATE_DOMAINS_STRING)) { $this->isICANNSuffix = false; continue; } if (Str::startsWith($line, Parser::COMMENT_STRING...
[ "public", "function", "parse", "(", ")", "{", "$", "suffixes", "=", "[", "]", ";", "foreach", "(", "$", "this", "->", "lines", "as", "$", "line", ")", "{", "if", "(", "Str", "::", "startsWith", "(", "$", "line", ",", "Parser", "::", "PRIVATE_DOMAIN...
Method that parses submitted strings and returns array from valid suffixes. Parser features the following rules apply: - the list is a set of rules, with one rule per line; - each line is only read up to the first whitespace; entire lines can also be commented using //; - each line which is not entirely whitespace or ...
[ "Method", "that", "parses", "submitted", "strings", "and", "returns", "array", "from", "valid", "suffixes", "." ]
train
https://github.com/layershifter/TLDDatabase/blob/50433a8705e3d7f3a584943c3aef09b5f561e2b7/src/Parser.php#L69-L98
layershifter/TLDDatabase
src/Store.php
Store.getType
public function getType($suffix) { if (!array_key_exists($suffix, $this->suffixes)) { throw new StoreException(sprintf( 'Provided suffix (%s) does not exists in database, check existence of entry with isExists() method ' . 'before', $suffix ...
php
public function getType($suffix) { if (!array_key_exists($suffix, $this->suffixes)) { throw new StoreException(sprintf( 'Provided suffix (%s) does not exists in database, check existence of entry with isExists() method ' . 'before', $suffix ...
[ "public", "function", "getType", "(", "$", "suffix", ")", "{", "if", "(", "!", "array_key_exists", "(", "$", "suffix", ",", "$", "this", "->", "suffixes", ")", ")", "{", "throw", "new", "StoreException", "(", "sprintf", "(", "'Provided suffix (%s) does not e...
Checks type of suffix entry. Returns true if suffix is ICANN TLD zone. @param string $suffix Suffix which type will be checked. @return int @throws StoreException
[ "Checks", "type", "of", "suffix", "entry", ".", "Returns", "true", "if", "suffix", "is", "ICANN", "TLD", "zone", "." ]
train
https://github.com/layershifter/TLDDatabase/blob/50433a8705e3d7f3a584943c3aef09b5f561e2b7/src/Store.php#L94-L105
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdkServiceProvider.php
LaravelFacebookSdkServiceProvider.boot
public function boot() { if (! $this->app->runningInConsole()) { return; } if ($this->isLumen()) { return; } $this->publishes([ __DIR__.'/../config/laravel-facebook-sdk.php' => \config_path('laravel-facebook-sdk.php'), ], 'config'...
php
public function boot() { if (! $this->app->runningInConsole()) { return; } if ($this->isLumen()) { return; } $this->publishes([ __DIR__.'/../config/laravel-facebook-sdk.php' => \config_path('laravel-facebook-sdk.php'), ], 'config'...
[ "public", "function", "boot", "(", ")", "{", "if", "(", "!", "$", "this", "->", "app", "->", "runningInConsole", "(", ")", ")", "{", "return", ";", "}", "if", "(", "$", "this", "->", "isLumen", "(", ")", ")", "{", "return", ";", "}", "$", "this...
Bootstrap the application events. @return void
[ "Bootstrap", "the", "application", "events", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdkServiceProvider.php#L19-L32
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdkServiceProvider.php
LaravelFacebookSdkServiceProvider.register
public function register() { if ($this->isLumen()) { $this->app->configure('laravel-facebook-sdk'); } $this->mergeConfigFrom(__DIR__.'/../config/laravel-facebook-sdk.php', 'laravel-facebook-sdk'); // Main Service $this->app->bind('SammyK\LaravelFacebookSdk\Larave...
php
public function register() { if ($this->isLumen()) { $this->app->configure('laravel-facebook-sdk'); } $this->mergeConfigFrom(__DIR__.'/../config/laravel-facebook-sdk.php', 'laravel-facebook-sdk'); // Main Service $this->app->bind('SammyK\LaravelFacebookSdk\Larave...
[ "public", "function", "register", "(", ")", "{", "if", "(", "$", "this", "->", "isLumen", "(", ")", ")", "{", "$", "this", "->", "app", "->", "configure", "(", "'laravel-facebook-sdk'", ")", ";", "}", "$", "this", "->", "mergeConfigFrom", "(", "__DIR__...
Register the service providers. @return void
[ "Register", "the", "service", "providers", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdkServiceProvider.php#L39-L64
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/SyncableGraphNodeTrait.php
SyncableGraphNodeTrait.createOrUpdateGraphNode
public static function createOrUpdateGraphNode($data) { // @todo this will be GraphNode soon if ($data instanceof GraphObject || $data instanceof GraphNode) { $data = array_dot($data->asArray()); } $data = static::convertGraphNodeDateTimesToStrings($data); if (!...
php
public static function createOrUpdateGraphNode($data) { // @todo this will be GraphNode soon if ($data instanceof GraphObject || $data instanceof GraphNode) { $data = array_dot($data->asArray()); } $data = static::convertGraphNodeDateTimesToStrings($data); if (!...
[ "public", "static", "function", "createOrUpdateGraphNode", "(", "$", "data", ")", "{", "// @todo this will be GraphNode soon", "if", "(", "$", "data", "instanceof", "GraphObject", "||", "$", "data", "instanceof", "GraphNode", ")", "{", "$", "data", "=", "array_dot...
Inserts or updates the Graph node to the local database @param array|GraphObject|GraphNode $data @return Model @throws \InvalidArgumentException
[ "Inserts", "or", "updates", "the", "Graph", "node", "to", "the", "local", "database" ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/SyncableGraphNodeTrait.php#L39-L61
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/SyncableGraphNodeTrait.php
SyncableGraphNodeTrait.fieldToColumnName
public static function fieldToColumnName($field) { $model_name = get_class(new static()); if (property_exists($model_name, 'graph_node_field_aliases') && isset(static::$graph_node_field_aliases[$field])) { return static::$graph_node_field_aliases[$field]; } r...
php
public static function fieldToColumnName($field) { $model_name = get_class(new static()); if (property_exists($model_name, 'graph_node_field_aliases') && isset(static::$graph_node_field_aliases[$field])) { return static::$graph_node_field_aliases[$field]; } r...
[ "public", "static", "function", "fieldToColumnName", "(", "$", "field", ")", "{", "$", "model_name", "=", "get_class", "(", "new", "static", "(", ")", ")", ";", "if", "(", "property_exists", "(", "$", "model_name", ",", "'graph_node_field_aliases'", ")", "&&...
Convert a Graph node field name to a database column name @param string $field @return string
[ "Convert", "a", "Graph", "node", "field", "name", "to", "a", "database", "column", "name" ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/SyncableGraphNodeTrait.php#L86-L95
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/SyncableGraphNodeTrait.php
SyncableGraphNodeTrait.mapGraphNodeFieldNamesToDatabaseColumnNames
public static function mapGraphNodeFieldNamesToDatabaseColumnNames(Model $object, array $fields) { foreach ($fields as $field => $value) { if (static::graphNodeFieldIsWhiteListed(static::fieldToColumnName($field))) { $object->{static::fieldToColumnName($field)} = $value; ...
php
public static function mapGraphNodeFieldNamesToDatabaseColumnNames(Model $object, array $fields) { foreach ($fields as $field => $value) { if (static::graphNodeFieldIsWhiteListed(static::fieldToColumnName($field))) { $object->{static::fieldToColumnName($field)} = $value; ...
[ "public", "static", "function", "mapGraphNodeFieldNamesToDatabaseColumnNames", "(", "Model", "$", "object", ",", "array", "$", "fields", ")", "{", "foreach", "(", "$", "fields", "as", "$", "field", "=>", "$", "value", ")", "{", "if", "(", "static", "::", "...
Map Graph-node field names to local database column name @param Model $object @param array $fields
[ "Map", "Graph", "-", "node", "field", "names", "to", "local", "database", "column", "name" ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/SyncableGraphNodeTrait.php#L113-L120
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/SyncableGraphNodeTrait.php
SyncableGraphNodeTrait.convertGraphNodeDateTimesToStrings
private static function convertGraphNodeDateTimesToStrings(array $data) { $date_format = 'Y-m-d H:i:s'; $model_name = get_class(new static()); if (property_exists($model_name, 'graph_node_date_time_to_string_format')) { $date_format = static::$graph_node_date_time_to_string_forma...
php
private static function convertGraphNodeDateTimesToStrings(array $data) { $date_format = 'Y-m-d H:i:s'; $model_name = get_class(new static()); if (property_exists($model_name, 'graph_node_date_time_to_string_format')) { $date_format = static::$graph_node_date_time_to_string_forma...
[ "private", "static", "function", "convertGraphNodeDateTimesToStrings", "(", "array", "$", "data", ")", "{", "$", "date_format", "=", "'Y-m-d H:i:s'", ";", "$", "model_name", "=", "get_class", "(", "new", "static", "(", ")", ")", ";", "if", "(", "property_exist...
Convert instances of \DateTime to string @param array $data @return array
[ "Convert", "instances", "of", "\\", "DateTime", "to", "string" ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/SyncableGraphNodeTrait.php#L128-L143
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/SyncableGraphNodeTrait.php
SyncableGraphNodeTrait.graphNodeFieldIsWhiteListed
private static function graphNodeFieldIsWhiteListed($key) { $model_name = get_class(new static()); if (!property_exists($model_name, 'graph_node_fillable_fields')) { return true; } return in_array($key, static::$graph_node_fillable_fields); }
php
private static function graphNodeFieldIsWhiteListed($key) { $model_name = get_class(new static()); if (!property_exists($model_name, 'graph_node_fillable_fields')) { return true; } return in_array($key, static::$graph_node_fillable_fields); }
[ "private", "static", "function", "graphNodeFieldIsWhiteListed", "(", "$", "key", ")", "{", "$", "model_name", "=", "get_class", "(", "new", "static", "(", ")", ")", ";", "if", "(", "!", "property_exists", "(", "$", "model_name", ",", "'graph_node_fillable_fiel...
Check a key for fillableness @param string $key @return boolean
[ "Check", "a", "key", "for", "fillableness" ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/SyncableGraphNodeTrait.php#L151-L159
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdk.php
LaravelFacebookSdk.newInstance
public function newInstance(array $config) { $new_config = array_merge($this->default_config, $config); return new static($this->config_handler, $this->url, $new_config); }
php
public function newInstance(array $config) { $new_config = array_merge($this->default_config, $config); return new static($this->config_handler, $this->url, $new_config); }
[ "public", "function", "newInstance", "(", "array", "$", "config", ")", "{", "$", "new_config", "=", "array_merge", "(", "$", "this", "->", "default_config", ",", "$", "config", ")", ";", "return", "new", "static", "(", "$", "this", "->", "config_handler", ...
@param array $config @return LaravelFacebookSdk
[ "@param", "array", "$config" ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdk.php#L46-L51
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdk.php
LaravelFacebookSdk.getLoginUrl
public function getLoginUrl(array $scope = [], $callback_url = '') { $scope = $this->getScope($scope); $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getLoginUrl($callback_url, $scope); }
php
public function getLoginUrl(array $scope = [], $callback_url = '') { $scope = $this->getScope($scope); $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getLoginUrl($callback_url, $scope); }
[ "public", "function", "getLoginUrl", "(", "array", "$", "scope", "=", "[", "]", ",", "$", "callback_url", "=", "''", ")", "{", "$", "scope", "=", "$", "this", "->", "getScope", "(", "$", "scope", ")", ";", "$", "callback_url", "=", "$", "this", "->...
Generate an OAuth 2.0 authorization URL for authentication. @param array $scope @param string $callback_url @return string
[ "Generate", "an", "OAuth", "2", ".", "0", "authorization", "URL", "for", "authentication", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdk.php#L61-L67
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdk.php
LaravelFacebookSdk.getReRequestUrl
public function getReRequestUrl(array $scope, $callback_url = '') { $scope = $this->getScope($scope); $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getReRequestUrl($callback_url, $scope); }
php
public function getReRequestUrl(array $scope, $callback_url = '') { $scope = $this->getScope($scope); $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getReRequestUrl($callback_url, $scope); }
[ "public", "function", "getReRequestUrl", "(", "array", "$", "scope", ",", "$", "callback_url", "=", "''", ")", "{", "$", "scope", "=", "$", "this", "->", "getScope", "(", "$", "scope", ")", ";", "$", "callback_url", "=", "$", "this", "->", "getCallback...
Generate a re-request authorization URL. @param array $scope @param string $callback_url @return string
[ "Generate", "a", "re", "-", "request", "authorization", "URL", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdk.php#L77-L83
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdk.php
LaravelFacebookSdk.getReAuthenticationUrl
public function getReAuthenticationUrl(array $scope = [], $callback_url = '') { $scope = $this->getScope($scope); $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getReAuthenticationUrl($callback_url, $scope); }
php
public function getReAuthenticationUrl(array $scope = [], $callback_url = '') { $scope = $this->getScope($scope); $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getReAuthenticationUrl($callback_url, $scope); }
[ "public", "function", "getReAuthenticationUrl", "(", "array", "$", "scope", "=", "[", "]", ",", "$", "callback_url", "=", "''", ")", "{", "$", "scope", "=", "$", "this", "->", "getScope", "(", "$", "scope", ")", ";", "$", "callback_url", "=", "$", "t...
Generate a re-authentication authorization URL. @param array $scope @param string $callback_url @return string
[ "Generate", "a", "re", "-", "authentication", "authorization", "URL", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdk.php#L93-L99
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdk.php
LaravelFacebookSdk.getAccessTokenFromRedirect
public function getAccessTokenFromRedirect($callback_url = '') { $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getAccessToken($callback_url); }
php
public function getAccessTokenFromRedirect($callback_url = '') { $callback_url = $this->getCallbackUrl($callback_url); return $this->getRedirectLoginHelper()->getAccessToken($callback_url); }
[ "public", "function", "getAccessTokenFromRedirect", "(", "$", "callback_url", "=", "''", ")", "{", "$", "callback_url", "=", "$", "this", "->", "getCallbackUrl", "(", "$", "callback_url", ")", ";", "return", "$", "this", "->", "getRedirectLoginHelper", "(", ")...
Get an access token from a redirect. @param string $callback_url @return \Facebook\Authentication\AccessToken|null
[ "Get", "an", "access", "token", "from", "a", "redirect", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdk.php#L107-L112
SammyK/LaravelFacebookSdk
src/LaravelFacebookSdk/LaravelFacebookSdk.php
LaravelFacebookSdk.getCallbackUrl
private function getCallbackUrl($callback_url) { $callback_url = $callback_url ?: $this->config_handler->get('laravel-facebook-sdk.default_redirect_uri'); return $this->url->to($callback_url); }
php
private function getCallbackUrl($callback_url) { $callback_url = $callback_url ?: $this->config_handler->get('laravel-facebook-sdk.default_redirect_uri'); return $this->url->to($callback_url); }
[ "private", "function", "getCallbackUrl", "(", "$", "callback_url", ")", "{", "$", "callback_url", "=", "$", "callback_url", "?", ":", "$", "this", "->", "config_handler", "->", "get", "(", "'laravel-facebook-sdk.default_redirect_uri'", ")", ";", "return", "$", "...
Get the fallback callback redirect URL if none provided. @param string $callback_url @return string
[ "Get", "the", "fallback", "callback", "redirect", "URL", "if", "none", "provided", "." ]
train
https://github.com/SammyK/LaravelFacebookSdk/blob/2213691019e87e589f2fcc4d0a494deade63973f/src/LaravelFacebookSdk/LaravelFacebookSdk.php#L133-L138
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/MeasureFamilyApiAdapter.php
MeasureFamilyApiAdapter.listPerPage
public function listPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { $page = $this->akeneoPimClient ->getMeasureFamilyApi() ->listPerPage($limit, $withCount, $queryParameters); return $this->wrapperFactory ->cre...
php
public function listPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { $page = $this->akeneoPimClient ->getMeasureFamilyApi() ->listPerPage($limit, $withCount, $queryParameters); return $this->wrapperFactory ->cre...
[ "public", "function", "listPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "$", "page", "=", "$", "this", "->", "akeneoPimClient...
{@inheritdoc} @param int $limit The maximum number of resources to return. Do note that the server has a maximum limit allowed. @param bool $withCount Set to true to return the total count of resources. This parameter could decrease drastically the performance when set to true. @param array $queryParameters Additional...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/MeasureFamilyApiAdapter.php#L63-L71
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/MeasureFamilyApiAdapter.php
MeasureFamilyApiAdapter.all
public function all($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { $resourceCursor = $this->akeneoPimClient ->getMeasureFamilyApi() ->all($pageSize, $queryParameters); return $this->wrapperFactory ->createAkeneoResourceCursor($resou...
php
public function all($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { $resourceCursor = $this->akeneoPimClient ->getMeasureFamilyApi() ->all($pageSize, $queryParameters); return $this->wrapperFactory ->createAkeneoResourceCursor($resou...
[ "public", "function", "all", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "$", "resourceCursor", "=", "$", "this", "->", "akeneoPimClient", "->", "getMeasureFamilyApi", "(...
{@inheritdoc} @param int $pageSize The size of the page returned by the server. Do note that the server has a maximum limit allowed. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/MeasureFamilyApiAdapter.php#L82-L90
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Sdk/AkeneoPimSdkFactory.php
AkeneoPimSdkFactory.createAkeneoPimClient
public function createAkeneoPimClient(AkeneoPimConfig $config): AkeneoPimClientInterface { $clientBuilder = new AkeneoPimClientBuilder( $config->getHost() ); $clientBuilder->setHttpClient( $this->createHttpClient() ); return $clientBuilder->buildAuthe...
php
public function createAkeneoPimClient(AkeneoPimConfig $config): AkeneoPimClientInterface { $clientBuilder = new AkeneoPimClientBuilder( $config->getHost() ); $clientBuilder->setHttpClient( $this->createHttpClient() ); return $clientBuilder->buildAuthe...
[ "public", "function", "createAkeneoPimClient", "(", "AkeneoPimConfig", "$", "config", ")", ":", "AkeneoPimClientInterface", "{", "$", "clientBuilder", "=", "new", "AkeneoPimClientBuilder", "(", "$", "config", "->", "getHost", "(", ")", ")", ";", "$", "clientBuilde...
@param \SprykerEco\Service\AkeneoPim\AkeneoPimConfig $config @return \Akeneo\Pim\ApiClient\AkeneoPimClientInterface
[ "@param", "\\", "SprykerEco", "\\", "Service", "\\", "AkeneoPim", "\\", "AkeneoPimConfig", "$config" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Sdk/AkeneoPimSdkFactory.php#L23-L38
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllProducts
public function getAllProducts($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllProducts($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllProducts", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFactor...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L29-L35
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllCategories
public function getAllCategories($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCategoryApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllCategories($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCategoryApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllCategories", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFact...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L47-L53
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllAttributes
public function getAllAttributes($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllAttributes($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllAttributes", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFact...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L65-L71
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllAttributeOptions
public function getAllAttributeOptions($attributeCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeOptionApiAdapter() ->all($attributeCode, $pageSize, $queryPar...
php
public function getAllAttributeOptions($attributeCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeOptionApiAdapter() ->all($attributeCode, $pageSize, $queryPar...
[ "public", "function", "getAllAttributeOptions", "(", "$", "attributeCode", ",", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")"...
{@inheritdoc} @api @param string $attributeCode Code of the attribute @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterfac...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L84-L90
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllAttributeGroups
public function getAllAttributeGroups($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeGroupApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllAttributeGroups($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeGroupApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllAttributeGroups", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapte...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L102-L108
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllChannels
public function getAllChannels($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createChannelApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllChannels($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createChannelApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllChannels", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFactor...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L120-L126
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllCurrencies
public function getAllCurrencies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCurrencyApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllCurrencies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCurrencyApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllCurrencies", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFact...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L138-L144
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllLocales
public function getAllLocales($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createLocaleApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllLocales($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createLocaleApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllLocales", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFactory...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L156-L162
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllFamilies
public function getAllFamilies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllFamilies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllFamilies", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFactor...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L174-L180
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllFamilyVariants
public function getAllFamilyVariants($familyCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyVariantApiAdapter() ->all($familyCode, $pageSize, $queryParameters); ...
php
public function getAllFamilyVariants($familyCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyVariantApiAdapter() ->all($familyCode, $pageSize, $queryParameters); ...
[ "public", "function", "getAllFamilyVariants", "(", "$", "familyCode", ",", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "...
{@inheritdoc} @api @param string $familyCode Family code from which you want to get a list of family variants. @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L193-L199
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllMeasureFamilies
public function getAllMeasureFamilies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createMeasureFamilyApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllMeasureFamilies($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createMeasureFamilyApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllMeasureFamilies", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapte...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L211-L217
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllAssociationTypes
public function getAllAssociationTypes($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAssociationTypeApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllAssociationTypes($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAssociationTypeApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllAssociationTypes", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapt...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L229-L235
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllProductMediaFiles
public function getAllProductMediaFiles($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductMediaFileApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllProductMediaFiles($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductMediaFileApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllProductMediaFiles", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdap...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L247-L253
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAllProductModels
public function getAllProductModels($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductModelApiAdapter() ->all($pageSize, $queryParameters); }
php
public function getAllProductModels($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductModelApiAdapter() ->all($pageSize, $queryParameters); }
[ "public", "function", "getAllProductModels", "(", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterF...
{@inheritdoc} @api @param int $pageSize The size of the page returned by the server. @param array $queryParameters Additional query parameters to pass in the request @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L265-L271
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAttributeOption
public function getAttributeOption($attributeCode, $code): array { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeOptionApiAdapter() ->get($attributeCode, $code); }
php
public function getAttributeOption($attributeCode, $code): array { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeOptionApiAdapter() ->get($attributeCode, $code); }
[ "public", "function", "getAttributeOption", "(", "$", "attributeCode", ",", "$", "code", ")", ":", "array", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFactory", "(", ")", "->", "createAttributeOptionApiAdapter", "(", "...
{@inheritdoc} @api @param string $attributeCode Code of the attribute @param string $code Code of the attribute option @return array
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L317-L323
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getFamilyVariant
public function getFamilyVariant($familyCode, $code): array { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyVariantApiAdapter() ->get($familyCode, $code); }
php
public function getFamilyVariant($familyCode, $code): array { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyVariantApiAdapter() ->get($familyCode, $code); }
[ "public", "function", "getFamilyVariant", "(", "$", "familyCode", ",", "$", "code", ")", ":", "array", "{", "return", "$", "this", "->", "getFactory", "(", ")", "->", "createAkeneoPimAdapterFactory", "(", ")", "->", "createFamilyVariantApiAdapter", "(", ")", "...
{@inheritdoc} @api @param string $familyCode Code of the family @param string $code Code of the family variant @return array
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L420-L426
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAttributesListPerPage
public function getAttributesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeApiAdapter() ->listPerPage($limit, $withCount, $queryParamet...
php
public function getAttributesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeApiAdapter() ->listPerPage($limit, $withCount, $queryParamet...
[ "public", "function", "getAttributesListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", ...
{@inheritdoc} @api @param int $limit The maximum number of attributes to return. @param bool $withCount Set to true to return the total count of attributes. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\Akeneo...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L507-L513
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getAttributeOptionsListPerPage
public function getAttributeOptionsListPerPage($attributeCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeOptionApiAdapter() ->listPerPage($attr...
php
public function getAttributeOptionsListPerPage($attributeCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeOptionApiAdapter() ->listPerPage($attr...
[ "public", "function", "getAttributeOptionsListPerPage", "(", "$", "attributeCode", ",", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "...
{@inheritdoc} @api @param string $attributeCode Code of the attribute @param int $limit The maximum number of resources to return. @param bool $withCount Set to true to return the total count of resources. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\A...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L546-L552
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getCategoriesListPerPage
public function getCategoriesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCategoryApiAdapter() ->listPerPage($limit, $withCount, $queryParamete...
php
public function getCategoriesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCategoryApiAdapter() ->listPerPage($limit, $withCount, $queryParamete...
[ "public", "function", "getCategoriesListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", ...
{@inheritdoc} @api @param int $limit The maximum number of categories to return. @param bool $withCount Set to true to return the total count of categories. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\Akeneo...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L565-L571
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getChannelsListPerPage
public function getChannelsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createChannelApiAdapter() ->listPerPage($limit, $withCount, $queryParameters)...
php
public function getChannelsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createChannelApiAdapter() ->listPerPage($limit, $withCount, $queryParameters)...
[ "public", "function", "getChannelsListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", "...
{@inheritdoc} @api @param int $limit The maximum number of channels to return. @param bool $withCount Set to true to return the total count of channels. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoReso...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L584-L590
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getCurrenciesListPerPage
public function getCurrenciesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCurrencyApiAdapter() ->listPerPage($limit, $withCount, $queryParamete...
php
public function getCurrenciesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createCurrencyApiAdapter() ->listPerPage($limit, $withCount, $queryParamete...
[ "public", "function", "getCurrenciesListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", ...
{@inheritdoc} @api @param int $limit The maximum number of currencies to return. @param bool $withCount Set to true to return the total count of currencies. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\Akeneo...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L603-L609
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getLocalesListPerPage
public function getLocalesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeGroupApiAdapter() ->listPerPage($limit, $withCount, $queryParam...
php
public function getLocalesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createAttributeGroupApiAdapter() ->listPerPage($limit, $withCount, $queryParam...
[ "public", "function", "getLocalesListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", "(...
{@inheritdoc} @api @param int $limit The maximum number of locales to return. @param bool $withCount Set to true to return the total count of locales. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResour...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L622-L628
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getFamiliesListPerPage
public function getFamiliesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyApiAdapter() ->listPerPage($limit, $withCount, $queryParameters);...
php
public function getFamiliesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyApiAdapter() ->listPerPage($limit, $withCount, $queryParameters);...
[ "public", "function", "getFamiliesListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", "...
{@inheritdoc} @api @param int $limit The maximum number of families to return. @param bool $withCount Set to true to return the total count of families. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoReso...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L641-L647
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getFamilyVariantsListPerPage
public function getFamilyVariantsListPerPage($familyCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyVariantApiAdapter() ->listPerPage($familyCode,...
php
public function getFamilyVariantsListPerPage($familyCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createFamilyVariantApiAdapter() ->listPerPage($familyCode,...
[ "public", "function", "getFamilyVariantsListPerPage", "(", "$", "familyCode", ",", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", ...
{@inheritdoc} @api @param string $familyCode Family code from which you want to get a list of family variants. @param int $limit The maximum number of family variants to return. @param bool $withCount Set to true to return the total count of family variants. @param array $queryParameters Additional query parameters t...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L661-L667
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getMeasureFamilyListPerPage
public function getMeasureFamilyListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createMeasureFamilyApiAdapter() ->listPerPage($limit, $withCount, $query...
php
public function getMeasureFamilyListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createMeasureFamilyApiAdapter() ->listPerPage($limit, $withCount, $query...
[ "public", "function", "getMeasureFamilyListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory"...
{@inheritdoc} @api @param int $limit The maximum number of measure families to return. @param bool $withCount Set to true to return the total count of measure families. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wr...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L680-L686
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getProductsListPerPage
public function getProductsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductApiAdapter() ->listPerPage($limit, $withCount, $queryParameters)...
php
public function getProductsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductApiAdapter() ->listPerPage($limit, $withCount, $queryParameters)...
[ "public", "function", "getProductsListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory", "...
{@inheritdoc} @api @param int $limit The maximum number of products to return. @param bool $withCount Set to true to return the total count of products. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoReso...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L699-L705
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getProductMediaFilesListPerPage
public function getProductMediaFilesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductMediaFileApiAdapter() ->listPerPage($limit, $withCount,...
php
public function getProductMediaFilesListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductMediaFileApiAdapter() ->listPerPage($limit, $withCount,...
[ "public", "function", "getProductMediaFilesListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFact...
{@inheritdoc} @api @param int $limit The maximum number of product media files to return. @param bool $withCount Set to true to return the total count of product media files. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L718-L724
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php
AkeneoPimService.getProductModelsListPerPage
public function getProductModelsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductModelApiAdapter() ->listPerPage($limit, $withCount, $queryP...
php
public function getProductModelsListPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { return $this->getFactory() ->createAkeneoPimAdapterFactory() ->createProductModelApiAdapter() ->listPerPage($limit, $withCount, $queryP...
[ "public", "function", "getProductModelsListPerPage", "(", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "return", "$", "this", "->", "getFactory"...
{@inheritdoc} @api @param int $limit The maximum number of product models to return. @param bool $withCount Set to true to return the total count of product models. @param array $queryParameters Additional query parameters to pass in the request. @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrappe...
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/AkeneoPimService.php#L737-L743
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Attributes/AttributeOptionApiAdapter.php
AttributeOptionApiAdapter.listPerPage
public function listPerPage($attributeCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { $page = $this->akeneoPimClient ->getAttributeOptionApi() ->listPerPage($attributeCode, $limit, $withCount, $queryParameters); return $this...
php
public function listPerPage($attributeCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { $page = $this->akeneoPimClient ->getAttributeOptionApi() ->listPerPage($attributeCode, $limit, $withCount, $queryParameters); return $this...
[ "public", "function", "listPerPage", "(", "$", "attributeCode", ",", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "$", "page", "=", "$", "...
{@inheritdoc} @param string $attributeCode @param int $limit @param bool $withCount @param array $queryParameters @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Attributes/AttributeOptionApiAdapter.php#L61-L69
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Attributes/AttributeOptionApiAdapter.php
AttributeOptionApiAdapter.all
public function all($attributeCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { $resourceCursor = $this->akeneoPimClient ->getAttributeOptionApi() ->all($attributeCode, $pageSize, $queryParameters); return $this->wrapperFactory -...
php
public function all($attributeCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { $resourceCursor = $this->akeneoPimClient ->getAttributeOptionApi() ->all($attributeCode, $pageSize, $queryParameters); return $this->wrapperFactory -...
[ "public", "function", "all", "(", "$", "attributeCode", ",", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "$", "resourceCursor", "=", "$", "this", "->", "akeneoPimClient", "-...
{@inheritdoc} @param string $attributeCode @param int $pageSize @param array $queryParameters @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Attributes/AttributeOptionApiAdapter.php#L80-L88
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/FamilyVariantApiAdapter.php
FamilyVariantApiAdapter.listPerPage
public function listPerPage($familyCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { $page = $this->akeneoPimClient ->getFamilyVariantApi() ->listPerPage($familyCode, $limit, $withCount, $queryParameters); return $this->wrappe...
php
public function listPerPage($familyCode, $limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface { $page = $this->akeneoPimClient ->getFamilyVariantApi() ->listPerPage($familyCode, $limit, $withCount, $queryParameters); return $this->wrappe...
[ "public", "function", "listPerPage", "(", "$", "familyCode", ",", "$", "limit", "=", "10", ",", "$", "withCount", "=", "false", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourcePageInterface", "{", "$", "page", "=", "$", "thi...
{@inheritdoc} @param string $familyCode @param int $limit @param bool $withCount @param array $queryParameters @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/FamilyVariantApiAdapter.php#L62-L70
spryker-eco/akeneo-pim
src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/FamilyVariantApiAdapter.php
FamilyVariantApiAdapter.all
public function all($familyCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { $resourceCursor = $this->akeneoPimClient ->getFamilyVariantApi() ->all($familyCode, $pageSize, $queryParameters); return $this->wrapperFactory ->createA...
php
public function all($familyCode, $pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface { $resourceCursor = $this->akeneoPimClient ->getFamilyVariantApi() ->all($familyCode, $pageSize, $queryParameters); return $this->wrapperFactory ->createA...
[ "public", "function", "all", "(", "$", "familyCode", ",", "$", "pageSize", "=", "10", ",", "array", "$", "queryParameters", "=", "[", "]", ")", ":", "AkeneoResourceCursorInterface", "{", "$", "resourceCursor", "=", "$", "this", "->", "akeneoPimClient", "->",...
{@inheritdoc} @param string $familyCode @param int $pageSize @param array $queryParameters @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface
[ "{", "@inheritdoc", "}" ]
train
https://github.com/spryker-eco/akeneo-pim/blob/c18fa3df62d28fdaf8611e24b42d0f22f1c9c216/src/SprykerEco/Service/AkeneoPim/Dependencies/External/Api/Adapter/Family/FamilyVariantApiAdapter.php#L81-L89
jonahgeorge/jaeger-client-php
src/Jaeger/Tracer.php
Tracer.startSpan
public function startSpan($operationName, $options = []) { if (!($options instanceof StartSpanOptions)) { $options = StartSpanOptions::create($options); } $parent = $this->getParentSpanContext($options); $tags = $options->getTags(); $rpcServer = ($tags[SPAN_KIND...
php
public function startSpan($operationName, $options = []) { if (!($options instanceof StartSpanOptions)) { $options = StartSpanOptions::create($options); } $parent = $this->getParentSpanContext($options); $tags = $options->getTags(); $rpcServer = ($tags[SPAN_KIND...
[ "public", "function", "startSpan", "(", "$", "operationName", ",", "$", "options", "=", "[", "]", ")", "{", "if", "(", "!", "(", "$", "options", "instanceof", "StartSpanOptions", ")", ")", "{", "$", "options", "=", "StartSpanOptions", "::", "create", "("...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Tracer.php#L144-L212
jonahgeorge/jaeger-client-php
src/Jaeger/Tracer.php
Tracer.inject
public function inject(OTSpanContext $spanContext, $format, &$carrier) { if ($spanContext instanceof SpanContext) { $codec = $this->codecs[$format] ?? null; if ($codec == null) { throw UnsupportedFormat::forFormat(is_scalar($format) ? $format : gettype($format)); ...
php
public function inject(OTSpanContext $spanContext, $format, &$carrier) { if ($spanContext instanceof SpanContext) { $codec = $this->codecs[$format] ?? null; if ($codec == null) { throw UnsupportedFormat::forFormat(is_scalar($format) ? $format : gettype($format)); ...
[ "public", "function", "inject", "(", "OTSpanContext", "$", "spanContext", ",", "$", "format", ",", "&", "$", "carrier", ")", "{", "if", "(", "$", "spanContext", "instanceof", "SpanContext", ")", "{", "$", "codec", "=", "$", "this", "->", "codecs", "[", ...
{@inheritdoc} @param SpanContext $spanContext @param string $format @param mixed $carrier @return void @throws UnsupportedFormat
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Tracer.php#L224-L244
jonahgeorge/jaeger-client-php
src/Jaeger/Tracer.php
Tracer.extract
public function extract($format, $carrier) { $codec = $this->codecs[$format] ?? null; if ($codec == null) { throw UnsupportedFormat::forFormat(is_scalar($format) ? $format : gettype($format)); } try { return $codec->extract($carrier); } catch (\Throw...
php
public function extract($format, $carrier) { $codec = $this->codecs[$format] ?? null; if ($codec == null) { throw UnsupportedFormat::forFormat(is_scalar($format) ? $format : gettype($format)); } try { return $codec->extract($carrier); } catch (\Throw...
[ "public", "function", "extract", "(", "$", "format", ",", "$", "carrier", ")", "{", "$", "codec", "=", "$", "this", "->", "codecs", "[", "$", "format", "]", "??", "null", ";", "if", "(", "$", "codec", "==", "null", ")", "{", "throw", "UnsupportedFo...
{@inheritdoc} @param mixed $carrier @return SpanContext|null @throws UnsupportedFormat
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Tracer.php#L254-L269
jonahgeorge/jaeger-client-php
src/Jaeger/Tracer.php
Tracer.getActiveSpan
public function getActiveSpan() { $activeScope = $this->getScopeManager()->getActive(); if ($activeScope === null) { return null; } return $activeScope->getSpan(); }
php
public function getActiveSpan() { $activeScope = $this->getScopeManager()->getActive(); if ($activeScope === null) { return null; } return $activeScope->getSpan(); }
[ "public", "function", "getActiveSpan", "(", ")", "{", "$", "activeScope", "=", "$", "this", "->", "getScopeManager", "(", ")", "->", "getActive", "(", ")", ";", "if", "(", "$", "activeScope", "===", "null", ")", "{", "return", "null", ";", "}", "return...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Tracer.php#L296-L304
jonahgeorge/jaeger-client-php
src/Jaeger/Tracer.php
Tracer.startActiveSpan
public function startActiveSpan($operationName, $options = []) { if (!$options instanceof StartSpanOptions) { $options = StartSpanOptions::create($options); } if (!$this->getParentSpanContext($options) && $this->getActiveSpan() !== null) { $parent = $this->getActiveS...
php
public function startActiveSpan($operationName, $options = []) { if (!$options instanceof StartSpanOptions) { $options = StartSpanOptions::create($options); } if (!$this->getParentSpanContext($options) && $this->getActiveSpan() !== null) { $parent = $this->getActiveS...
[ "public", "function", "startActiveSpan", "(", "$", "operationName", ",", "$", "options", "=", "[", "]", ")", "{", "if", "(", "!", "$", "options", "instanceof", "StartSpanOptions", ")", "{", "$", "options", "=", "StartSpanOptions", "::", "create", "(", "$",...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Tracer.php#L309-L324
jonahgeorge/jaeger-client-php
src/Jaeger/Util/RateLimiter.php
RateLimiter.initialize
public function initialize(float $creditsPerNanosecond, float $maxBalance) { $this->creditsPerNanosecond = $creditsPerNanosecond; $this->maxBalance = $maxBalance; }
php
public function initialize(float $creditsPerNanosecond, float $maxBalance) { $this->creditsPerNanosecond = $creditsPerNanosecond; $this->maxBalance = $maxBalance; }
[ "public", "function", "initialize", "(", "float", "$", "creditsPerNanosecond", ",", "float", "$", "maxBalance", ")", "{", "$", "this", "->", "creditsPerNanosecond", "=", "$", "creditsPerNanosecond", ";", "$", "this", "->", "maxBalance", "=", "$", "maxBalance", ...
Initializes limiter costs and boundaries @param float $creditsPerNanosecond @param float $maxBalance
[ "Initializes", "limiter", "costs", "and", "boundaries" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Util/RateLimiter.php#L95-L99
jonahgeorge/jaeger-client-php
src/Jaeger/Util/RateLimiter.php
RateLimiter.saveState
private function saveState($lastTick, $balance) { $this->lastTick->set($lastTick); $this->balance->set($balance); $this->cache->saveDeferred($this->lastTick); $this->cache->saveDeferred($this->balance); $this->cache->commit(); }
php
private function saveState($lastTick, $balance) { $this->lastTick->set($lastTick); $this->balance->set($balance); $this->cache->saveDeferred($this->lastTick); $this->cache->saveDeferred($this->balance); $this->cache->commit(); }
[ "private", "function", "saveState", "(", "$", "lastTick", ",", "$", "balance", ")", "{", "$", "this", "->", "lastTick", "->", "set", "(", "$", "lastTick", ")", ";", "$", "this", "->", "balance", "->", "set", "(", "$", "balance", ")", ";", "$", "thi...
Method saves last tick and current balance into cache @param integer $lastTick @param float $balance
[ "Method", "saves", "last", "tick", "and", "current", "balance", "into", "cache" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Util/RateLimiter.php#L120-L127
jonahgeorge/jaeger-client-php
src/Jaeger/Scope.php
Scope.close
public function close() { if ($this->scopeManager->getActive() !== $this) { // This shouldn't happen if users call methods in expected order return; } if ($this->finishSpanOnClose) { $this->wrapped->finish(); } $this->scopeManager->setAct...
php
public function close() { if ($this->scopeManager->getActive() !== $this) { // This shouldn't happen if users call methods in expected order return; } if ($this->finishSpanOnClose) { $this->wrapped->finish(); } $this->scopeManager->setAct...
[ "public", "function", "close", "(", ")", "{", "if", "(", "$", "this", "->", "scopeManager", "->", "getActive", "(", ")", "!==", "$", "this", ")", "{", "// This shouldn't happen if users call methods in expected order", "return", ";", "}", "if", "(", "$", "this...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Scope.php#L50-L62
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/ZipkinCodec.php
ZipkinCodec.inject
public function inject(SpanContext $spanContext, &$carrier) { $carrier[self::TRACE_ID_NAME] = dechex($spanContext->getTraceId()); $carrier[self::SPAN_ID_NAME] = dechex($spanContext->getSpanId()); if ($spanContext->getParentId() != null) { $carrier[self::PARENT_ID_NAME] = dechex($...
php
public function inject(SpanContext $spanContext, &$carrier) { $carrier[self::TRACE_ID_NAME] = dechex($spanContext->getTraceId()); $carrier[self::SPAN_ID_NAME] = dechex($spanContext->getSpanId()); if ($spanContext->getParentId() != null) { $carrier[self::PARENT_ID_NAME] = dechex($...
[ "public", "function", "inject", "(", "SpanContext", "$", "spanContext", ",", "&", "$", "carrier", ")", "{", "$", "carrier", "[", "self", "::", "TRACE_ID_NAME", "]", "=", "dechex", "(", "$", "spanContext", "->", "getTraceId", "(", ")", ")", ";", "$", "c...
{@inheritdoc} @see \Jaeger\Tracer::inject @param SpanContext $spanContext @param mixed $carrier @return void
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/ZipkinCodec.php#L30-L38
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/ZipkinCodec.php
ZipkinCodec.extract
public function extract($carrier) { $traceId = "0"; $spanId = "0"; $parentId = "0"; $flags = 0; if (isset($carrier[strtolower(self::SAMPLED_NAME)])) { if ($carrier[strtolower(self::SAMPLED_NAME)] === "1" || strtolower($carrier[strtolower(self::SAM...
php
public function extract($carrier) { $traceId = "0"; $spanId = "0"; $parentId = "0"; $flags = 0; if (isset($carrier[strtolower(self::SAMPLED_NAME)])) { if ($carrier[strtolower(self::SAMPLED_NAME)] === "1" || strtolower($carrier[strtolower(self::SAM...
[ "public", "function", "extract", "(", "$", "carrier", ")", "{", "$", "traceId", "=", "\"0\"", ";", "$", "spanId", "=", "\"0\"", ";", "$", "parentId", "=", "\"0\"", ";", "$", "flags", "=", "0", ";", "if", "(", "isset", "(", "$", "carrier", "[", "s...
{@inheritdoc} @see \Jaeger\Tracer::extract @param mixed $carrier @return SpanContext|null
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/ZipkinCodec.php#L48-L86
jonahgeorge/jaeger-client-php
src/Jaeger/ScopeManager.php
ScopeManager.activate
public function activate(OTSpan $span, $finishSpanOnClose) { $this->active = new Scope($this, $span, $finishSpanOnClose); return $this->active; }
php
public function activate(OTSpan $span, $finishSpanOnClose) { $this->active = new Scope($this, $span, $finishSpanOnClose); return $this->active; }
[ "public", "function", "activate", "(", "OTSpan", "$", "span", ",", "$", "finishSpanOnClose", ")", "{", "$", "this", "->", "active", "=", "new", "Scope", "(", "$", "this", ",", "$", "span", ",", "$", "finishSpanOnClose", ")", ";", "return", "$", "this",...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/ScopeManager.php#L22-L27
jonahgeorge/jaeger-client-php
src/Jaeger/Span.php
Span.microTime
protected function microTime($time): int { if ($time === null) { return $this->timestampMicro(); } if ($time instanceof \DateTimeInterface) { return (int)round($time->format('U.u') * 1000000, 0); } if (is_int($time)) { return $time; ...
php
protected function microTime($time): int { if ($time === null) { return $this->timestampMicro(); } if ($time instanceof \DateTimeInterface) { return (int)round($time->format('U.u') * 1000000, 0); } if (is_int($time)) { return $time; ...
[ "protected", "function", "microTime", "(", "$", "time", ")", ":", "int", "{", "if", "(", "$", "time", "===", "null", ")", "{", "return", "$", "this", "->", "timestampMicro", "(", ")", ";", "}", "if", "(", "$", "time", "instanceof", "\\", "DateTimeInt...
Converts time to microtime int - int represents microseconds - float represents seconds @param int|float|DateTime|null $time @return int
[ "Converts", "time", "to", "microtime", "int", "-", "int", "represents", "microseconds", "-", "float", "represents", "seconds" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Span.php#L115-L137
jonahgeorge/jaeger-client-php
src/Jaeger/Span.php
Span.finish
public function finish($finishTime = null, array $logRecords = []) { if (!$this->isSampled()) { return; } foreach ($logRecords as $logRecord) { $this->log($logRecord); } $this->endTime = $this->microTime($finishTime); $this->tracer->reportSpa...
php
public function finish($finishTime = null, array $logRecords = []) { if (!$this->isSampled()) { return; } foreach ($logRecords as $logRecord) { $this->log($logRecord); } $this->endTime = $this->microTime($finishTime); $this->tracer->reportSpa...
[ "public", "function", "finish", "(", "$", "finishTime", "=", "null", ",", "array", "$", "logRecords", "=", "[", "]", ")", "{", "if", "(", "!", "$", "this", "->", "isSampled", "(", ")", ")", "{", "return", ";", "}", "foreach", "(", "$", "logRecords"...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Span.php#L201-L213
jonahgeorge/jaeger-client-php
src/Jaeger/Span.php
Span.setTags
public function setTags($tags) { foreach ($tags as $key => $value) { $this->setTag($key, $value); } }
php
public function setTags($tags) { foreach ($tags as $key => $value) { $this->setTag($key, $value); } }
[ "public", "function", "setTags", "(", "$", "tags", ")", "{", "foreach", "(", "$", "tags", "as", "$", "key", "=>", "$", "value", ")", "{", "$", "this", "->", "setTag", "(", "$", "key", ",", "$", "value", ")", ";", "}", "}" ]
{@inheritdoc} @param array $tags @return void
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Span.php#L242-L247
jonahgeorge/jaeger-client-php
src/Jaeger/Span.php
Span.setTag
public function setTag($key, $value) { if ($this->isSampled()) { $special = self::SPECIAL_TAGS[$key] ?? null; $handled = false; if ($special !== null && is_callable([$this, $special])) { $handled = $this->$special($value); } if (!...
php
public function setTag($key, $value) { if ($this->isSampled()) { $special = self::SPECIAL_TAGS[$key] ?? null; $handled = false; if ($special !== null && is_callable([$this, $special])) { $handled = $this->$special($value); } if (!...
[ "public", "function", "setTag", "(", "$", "key", ",", "$", "value", ")", "{", "if", "(", "$", "this", "->", "isSampled", "(", ")", ")", "{", "$", "special", "=", "self", "::", "SPECIAL_TAGS", "[", "$", "key", "]", "??", "null", ";", "$", "handled...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Span.php#L252-L269
jonahgeorge/jaeger-client-php
src/Jaeger/Span.php
Span.log
public function log(array $fields = [], $timestamp = null) { $timestamp = $this->microTime($timestamp); if ($timestamp < $this->getStartTime()) { $timestamp = $this->timestampMicro(); } $this->logs[] = [ 'fields' => $fields, 'timestamp' => $timest...
php
public function log(array $fields = [], $timestamp = null) { $timestamp = $this->microTime($timestamp); if ($timestamp < $this->getStartTime()) { $timestamp = $this->timestampMicro(); } $this->logs[] = [ 'fields' => $fields, 'timestamp' => $timest...
[ "public", "function", "log", "(", "array", "$", "fields", "=", "[", "]", ",", "$", "timestamp", "=", "null", ")", "{", "$", "timestamp", "=", "$", "this", "->", "microTime", "(", "$", "timestamp", ")", ";", "if", "(", "$", "timestamp", "<", "$", ...
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Span.php#L364-L375
jonahgeorge/jaeger-client-php
src/Jaeger/Sampler/RateLimitingSampler.php
RateLimitingSampler.isSampled
public function isSampled(string $traceId = '', string $operation = '') { return [$this->rateLimiter->checkCredit(1.0), $this->tags]; }
php
public function isSampled(string $traceId = '', string $operation = '') { return [$this->rateLimiter->checkCredit(1.0), $this->tags]; }
[ "public", "function", "isSampled", "(", "string", "$", "traceId", "=", "''", ",", "string", "$", "operation", "=", "''", ")", "{", "return", "[", "$", "this", "->", "rateLimiter", "->", "checkCredit", "(", "1.0", ")", ",", "$", "this", "->", "tags", ...
Whether or not the new trace should be sampled. Implementations should return an array in the format [$decision, $tags]. @param string $traceId The traceId on the span. @param string $operation The operation name set on the span. @return array
[ "Whether", "or", "not", "the", "new", "trace", "should", "be", "sampled", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sampler/RateLimitingSampler.php#L46-L49
jonahgeorge/jaeger-client-php
src/Jaeger/ThriftUdpTransport.php
ThriftUdpTransport.open
public function open() { $ok = @socket_connect($this->socket, $this->host, $this->port); if ($ok === false) { throw new TTransportException('socket_connect failed'); } }
php
public function open() { $ok = @socket_connect($this->socket, $this->host, $this->port); if ($ok === false) { throw new TTransportException('socket_connect failed'); } }
[ "public", "function", "open", "(", ")", "{", "$", "ok", "=", "@", "socket_connect", "(", "$", "this", "->", "socket", ",", "$", "this", "->", "host", ",", "$", "this", "->", "port", ")", ";", "if", "(", "$", "ok", "===", "false", ")", "{", "thr...
Open the transport for reading/writing @throws TTransportException if cannot open
[ "Open", "the", "transport", "for", "reading", "/", "writing" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/ThriftUdpTransport.php#L58-L64
jonahgeorge/jaeger-client-php
src/Jaeger/ThriftUdpTransport.php
ThriftUdpTransport.write
public function write($buf) { if (!$this->isOpen()) { throw new TTransportException('transport is closed'); } $ok = @socket_write($this->socket, $buf); if ($ok === false) { throw new TTransportException('socket_write failed'); } }
php
public function write($buf) { if (!$this->isOpen()) { throw new TTransportException('transport is closed'); } $ok = @socket_write($this->socket, $buf); if ($ok === false) { throw new TTransportException('socket_write failed'); } }
[ "public", "function", "write", "(", "$", "buf", ")", "{", "if", "(", "!", "$", "this", "->", "isOpen", "(", ")", ")", "{", "throw", "new", "TTransportException", "(", "'transport is closed'", ")", ";", "}", "$", "ok", "=", "@", "socket_write", "(", "...
Writes the given data out. @param string $buf The data to write @throws TTransportException if writing fails
[ "Writes", "the", "given", "data", "out", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/ThriftUdpTransport.php#L93-L103
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/TextCodec.php
TextCodec.inject
public function inject(SpanContext $spanContext, &$carrier) { $carrier[$this->traceIdHeader] = $this->spanContextToString( $spanContext->getTraceId(), $spanContext->getSpanId(), $spanContext->getParentId(), $spanContext->getFlags() ); $baggage...
php
public function inject(SpanContext $spanContext, &$carrier) { $carrier[$this->traceIdHeader] = $this->spanContextToString( $spanContext->getTraceId(), $spanContext->getSpanId(), $spanContext->getParentId(), $spanContext->getFlags() ); $baggage...
[ "public", "function", "inject", "(", "SpanContext", "$", "spanContext", ",", "&", "$", "carrier", ")", "{", "$", "carrier", "[", "$", "this", "->", "traceIdHeader", "]", "=", "$", "this", "->", "spanContextToString", "(", "$", "spanContext", "->", "getTrac...
{@inheritdoc} @see \Jaeger\Tracer::inject @param SpanContext $spanContext @param mixed $carrier @return void
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/TextCodec.php#L51-L74
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/TextCodec.php
TextCodec.extract
public function extract($carrier) { $traceId = null; $spanId = null; $parentId = null; $flags = null; $baggage = null; $debugId = null; foreach ($carrier as $key => $value) { $ucKey = strtolower($key); if ($ucKey === $this->traceIdH...
php
public function extract($carrier) { $traceId = null; $spanId = null; $parentId = null; $flags = null; $baggage = null; $debugId = null; foreach ($carrier as $key => $value) { $ucKey = strtolower($key); if ($ucKey === $this->traceIdH...
[ "public", "function", "extract", "(", "$", "carrier", ")", "{", "$", "traceId", "=", "null", ";", "$", "spanId", "=", "null", ";", "$", "parentId", "=", "null", ";", "$", "flags", "=", "null", ";", "$", "baggage", "=", "null", ";", "$", "debugId", ...
{@inheritdoc} @see \Jaeger\Tracer::extract @param mixed $carrier @return SpanContext|null @throws Exception
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/TextCodec.php#L86-L134
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/TextCodec.php
TextCodec.spanContextToString
private function spanContextToString($traceId, $spanId, $parentId, $flags) { $parentId = $parentId ?? 0; return sprintf('%x:%x:%x:%x', $traceId, $spanId, $parentId, $flags); }
php
private function spanContextToString($traceId, $spanId, $parentId, $flags) { $parentId = $parentId ?? 0; return sprintf('%x:%x:%x:%x', $traceId, $spanId, $parentId, $flags); }
[ "private", "function", "spanContextToString", "(", "$", "traceId", ",", "$", "spanId", ",", "$", "parentId", ",", "$", "flags", ")", "{", "$", "parentId", "=", "$", "parentId", "??", "0", ";", "return", "sprintf", "(", "'%x:%x:%x:%x'", ",", "$", "traceId...
Store a span context to a string. @param int $traceId @param int $spanId @param int $parentId @param int $flags @return string
[ "Store", "a", "span", "context", "to", "a", "string", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/TextCodec.php#L145-L149
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/TextCodec.php
TextCodec.spanContextFromString
private function spanContextFromString($value): array { $parts = explode(':', $value); if (count($parts) != 4) { throw new Exception('Malformed tracer state string.'); } return [ CodecUtility::hexToInt64($parts[0]), CodecUtility::hexToInt64($part...
php
private function spanContextFromString($value): array { $parts = explode(':', $value); if (count($parts) != 4) { throw new Exception('Malformed tracer state string.'); } return [ CodecUtility::hexToInt64($parts[0]), CodecUtility::hexToInt64($part...
[ "private", "function", "spanContextFromString", "(", "$", "value", ")", ":", "array", "{", "$", "parts", "=", "explode", "(", "':'", ",", "$", "value", ")", ";", "if", "(", "count", "(", "$", "parts", ")", "!=", "4", ")", "{", "throw", "new", "Exce...
Create a span context from a string. @param string $value @return array @throws Exception
[ "Create", "a", "span", "context", "from", "a", "string", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/TextCodec.php#L159-L173
jonahgeorge/jaeger-client-php
src/Jaeger/Sampler/ProbabilisticSampler.php
ProbabilisticSampler.isSampled
public function isSampled(string $traceId, string $operation = ''): array { return [($traceId < $this->boundary), $this->tags]; }
php
public function isSampled(string $traceId, string $operation = ''): array { return [($traceId < $this->boundary), $this->tags]; }
[ "public", "function", "isSampled", "(", "string", "$", "traceId", ",", "string", "$", "operation", "=", "''", ")", ":", "array", "{", "return", "[", "(", "$", "traceId", "<", "$", "this", "->", "boundary", ")", ",", "$", "this", "->", "tags", "]", ...
{@inheritdoc} @param string $traceId The traceId on the span. @param string $operation The operation name set on the span. @return array
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sampler/ProbabilisticSampler.php#L72-L75
jonahgeorge/jaeger-client-php
src/Jaeger/Sender/UdpSender.php
UdpSender.send
private function send(array $thrifts) { foreach ($this->chunkSplit($thrifts) as $chunk) { /* @var $chunk ThriftSpan[] */ $this->client->emitZipkinBatch($chunk); } }
php
private function send(array $thrifts) { foreach ($this->chunkSplit($thrifts) as $chunk) { /* @var $chunk ThriftSpan[] */ $this->client->emitZipkinBatch($chunk); } }
[ "private", "function", "send", "(", "array", "$", "thrifts", ")", "{", "foreach", "(", "$", "this", "->", "chunkSplit", "(", "$", "thrifts", ")", "as", "$", "chunk", ")", "{", "/* @var $chunk ThriftSpan[] */", "$", "this", "->", "client", "->", "emitZipkin...
Emits the thrift-objects. @param array|ThriftSpan[]|TBase[] $thrifts
[ "Emits", "the", "thrift", "-", "objects", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sender/UdpSender.php#L112-L118
jonahgeorge/jaeger-client-php
src/Jaeger/Sender/UdpSender.php
UdpSender.makePeerAddressTag
private function makePeerAddressTag(string $key, Endpoint $host): BinaryAnnotation { return new BinaryAnnotation([ "key" => $key, "value" => '0x01', "annotation_type" => AnnotationType::BOOL, "host" => $host, ]); }
php
private function makePeerAddressTag(string $key, Endpoint $host): BinaryAnnotation { return new BinaryAnnotation([ "key" => $key, "value" => '0x01', "annotation_type" => AnnotationType::BOOL, "host" => $host, ]); }
[ "private", "function", "makePeerAddressTag", "(", "string", "$", "key", ",", "Endpoint", "$", "host", ")", ":", "BinaryAnnotation", "{", "return", "new", "BinaryAnnotation", "(", "[", "\"key\"", "=>", "$", "key", ",", "\"value\"", "=>", "'0x01'", ",", "\"ann...
They are modeled as Boolean type with '0x01' as the value.
[ "They", "are", "modeled", "as", "Boolean", "type", "with", "0x01", "as", "the", "value", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sender/UdpSender.php#L224-L232
jonahgeorge/jaeger-client-php
src/Jaeger/Sender/UdpSender.php
UdpSender.chunkSplit
private function chunkSplit(array $thrifts): array { $actualBufferSize = $this->zipkinBatchOverheadLength; $chunkId = 0; $chunks = []; foreach ($thrifts as $thrift) { $spanBufferLength = $this->getBufferLength($thrift); if (!empty($chunks[$chunkId]) && ($act...
php
private function chunkSplit(array $thrifts): array { $actualBufferSize = $this->zipkinBatchOverheadLength; $chunkId = 0; $chunks = []; foreach ($thrifts as $thrift) { $spanBufferLength = $this->getBufferLength($thrift); if (!empty($chunks[$chunkId]) && ($act...
[ "private", "function", "chunkSplit", "(", "array", "$", "thrifts", ")", ":", "array", "{", "$", "actualBufferSize", "=", "$", "this", "->", "zipkinBatchOverheadLength", ";", "$", "chunkId", "=", "0", ";", "$", "chunks", "=", "[", "]", ";", "foreach", "("...
Splits an array of thrift-objects into several chunks when the buffer limit has been reached. @param array|ThriftSpan[]|TBase[] $thrifts @return array
[ "Splits", "an", "array", "of", "thrift", "-", "objects", "into", "several", "chunks", "when", "the", "buffer", "limit", "has", "been", "reached", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sender/UdpSender.php#L241-L267
jonahgeorge/jaeger-client-php
src/Jaeger/Sender/UdpSender.php
UdpSender.getBufferLength
private function getBufferLength($thrift): int { $memoryBuffer = new TMemoryBuffer(); $thrift->write(new TCompactProtocol($memoryBuffer)); return $memoryBuffer->available(); }
php
private function getBufferLength($thrift): int { $memoryBuffer = new TMemoryBuffer(); $thrift->write(new TCompactProtocol($memoryBuffer)); return $memoryBuffer->available(); }
[ "private", "function", "getBufferLength", "(", "$", "thrift", ")", ":", "int", "{", "$", "memoryBuffer", "=", "new", "TMemoryBuffer", "(", ")", ";", "$", "thrift", "->", "write", "(", "new", "TCompactProtocol", "(", "$", "memoryBuffer", ")", ")", ";", "r...
Returns the length of a thrift-object. @param ThriftSpan|TBase $thrift @return int
[ "Returns", "the", "length", "of", "a", "thrift", "-", "object", "." ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sender/UdpSender.php#L276-L283
jonahgeorge/jaeger-client-php
src/Jaeger/Sender/UdpSender.php
UdpSender.createAnnotations
private function createAnnotations(JaegerSpan $span, Endpoint $endpoint): array { $annotations = []; foreach ($span->getLogs() as $values) { $annotations[] = new Annotation([ 'timestamp' => $values['timestamp'], 'value' => json_encode($values['fields']), ...
php
private function createAnnotations(JaegerSpan $span, Endpoint $endpoint): array { $annotations = []; foreach ($span->getLogs() as $values) { $annotations[] = new Annotation([ 'timestamp' => $values['timestamp'], 'value' => json_encode($values['fields']), ...
[ "private", "function", "createAnnotations", "(", "JaegerSpan", "$", "span", ",", "Endpoint", "$", "endpoint", ")", ":", "array", "{", "$", "annotations", "=", "[", "]", ";", "foreach", "(", "$", "span", "->", "getLogs", "(", ")", "as", "$", "values", "...
/* @param JaegerSpan $span @param Endpoint $endpoint @return array|Annotation[]
[ "/", "*", "@param", "JaegerSpan", "$span", "@param", "Endpoint", "$endpoint" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Sender/UdpSender.php#L291-L304
jonahgeorge/jaeger-client-php
src/Jaeger/Codec/CodecUtility.php
CodecUtility.hexToInt64
public static function hexToInt64($hex) { // If we're on a 32-bit architecture, fall back to base_convert. if (PHP_INT_SIZE === 4) { return base_convert($hex, 16, 10); } $hi = intval(substr($hex, -16, -8), 16); $lo = intval(substr($hex, -8, 8), 16); retu...
php
public static function hexToInt64($hex) { // If we're on a 32-bit architecture, fall back to base_convert. if (PHP_INT_SIZE === 4) { return base_convert($hex, 16, 10); } $hi = intval(substr($hex, -16, -8), 16); $lo = intval(substr($hex, -8, 8), 16); retu...
[ "public", "static", "function", "hexToInt64", "(", "$", "hex", ")", "{", "// If we're on a 32-bit architecture, fall back to base_convert.", "if", "(", "PHP_INT_SIZE", "===", "4", ")", "{", "return", "base_convert", "(", "$", "hex", ",", "16", ",", "10", ")", ";...
Incoming trace/span IDs are hex representations of 64-bit values. PHP represents ints internally as signed 32- or 64-bit values, but base_convert converts to string representations of arbitrarily large positive numbers. This means at least half the incoming IDs will be larger than PHP_INT_MAX. Thrift, while building a...
[ "Incoming", "trace", "/", "span", "IDs", "are", "hex", "representations", "of", "64", "-", "bit", "values", ".", "PHP", "represents", "ints", "internally", "as", "signed", "32", "-", "or", "64", "-", "bit", "values", "but", "base_convert", "converts", "to"...
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Codec/CodecUtility.php#L29-L40
jonahgeorge/jaeger-client-php
src/Jaeger/SpanContext.php
SpanContext.getBaggageItem
public function getBaggageItem($key) { return array_key_exists($key, $this->baggage) ? $this->baggage[$key] : null; }
php
public function getBaggageItem($key) { return array_key_exists($key, $this->baggage) ? $this->baggage[$key] : null; }
[ "public", "function", "getBaggageItem", "(", "$", "key", ")", "{", "return", "array_key_exists", "(", "$", "key", ",", "$", "this", "->", "baggage", ")", "?", "$", "this", "->", "baggage", "[", "$", "key", "]", ":", "null", ";", "}" ]
{@inheritdoc}
[ "{" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/SpanContext.php#L56-L59
jonahgeorge/jaeger-client-php
src/Jaeger/SpanContext.php
SpanContext.withBaggageItem
public function withBaggageItem($key, $value) { return new self( $this->traceId, $this->spanId, $this->parentId, $this->flags, [$key => $value] + $this->baggage ); }
php
public function withBaggageItem($key, $value) { return new self( $this->traceId, $this->spanId, $this->parentId, $this->flags, [$key => $value] + $this->baggage ); }
[ "public", "function", "withBaggageItem", "(", "$", "key", ",", "$", "value", ")", "{", "return", "new", "self", "(", "$", "this", "->", "traceId", ",", "$", "this", "->", "spanId", ",", "$", "this", "->", "parentId", ",", "$", "this", "->", "flags", ...
{@inheritdoc} @param string $key @param string $value @return SpanContext
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/SpanContext.php#L68-L77
jonahgeorge/jaeger-client-php
src/Jaeger/Reporter/CompositeReporter.php
CompositeReporter.reportSpan
public function reportSpan(Span $span) { foreach ($this->reporters as $reporter) { $reporter->reportSpan($span); } }
php
public function reportSpan(Span $span) { foreach ($this->reporters as $reporter) { $reporter->reportSpan($span); } }
[ "public", "function", "reportSpan", "(", "Span", "$", "span", ")", "{", "foreach", "(", "$", "this", "->", "reporters", "as", "$", "reporter", ")", "{", "$", "reporter", "->", "reportSpan", "(", "$", "span", ")", ";", "}", "}" ]
{@inheritdoc} @param Span $span @return void
[ "{", "@inheritdoc", "}" ]
train
https://github.com/jonahgeorge/jaeger-client-php/blob/70965d835ad523f9b02b557c0c0e9413cd3d3a3d/src/Jaeger/Reporter/CompositeReporter.php#L33-L38
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_user/src/Plugin/Block/UserDropdownBlock.php
UserDropdownBlock.build
public function build() { $block = []; $links_cache_contexts = []; // Display different links to depending on whether the user is logged in. if ($this->user->isAnonymous()) { // Create a 'person' icon that toggles a login form. $markup = ''; $markup .= '<a class="login-dropdown-button...
php
public function build() { $block = []; $links_cache_contexts = []; // Display different links to depending on whether the user is logged in. if ($this->user->isAnonymous()) { // Create a 'person' icon that toggles a login form. $markup = ''; $markup .= '<a class="login-dropdown-button...
[ "public", "function", "build", "(", ")", "{", "$", "block", "=", "[", "]", ";", "$", "links_cache_contexts", "=", "[", "]", ";", "// Display different links to depending on whether the user is logged in.", "if", "(", "$", "this", "->", "user", "->", "isAnonymous",...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_user/src/Plugin/Block/UserDropdownBlock.php#L60-L135
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_breadcrumb/src/Breadcrumb/MainBreadcrumbBuilder.php
MainBreadcrumbBuilder.applies
public function applies(RouteMatchInterface $route_match) { $parameters = $route_match->getParameters()->all(); $this->menuBreadcrumb = new MenuBasedBreadcrumbBuilder($this->configFactory, $this->menuActiveTrail, $this->menuLinkManager, $this->adminContext, $this->titleResolver, $this->requestStack, $this->lang...
php
public function applies(RouteMatchInterface $route_match) { $parameters = $route_match->getParameters()->all(); $this->menuBreadcrumb = new MenuBasedBreadcrumbBuilder($this->configFactory, $this->menuActiveTrail, $this->menuLinkManager, $this->adminContext, $this->titleResolver, $this->requestStack, $this->lang...
[ "public", "function", "applies", "(", "RouteMatchInterface", "$", "route_match", ")", "{", "$", "parameters", "=", "$", "route_match", "->", "getParameters", "(", ")", "->", "all", "(", ")", ";", "$", "this", "->", "menuBreadcrumb", "=", "new", "MenuBasedBre...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_breadcrumb/src/Breadcrumb/MainBreadcrumbBuilder.php#L181-L186
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_breadcrumb/src/Breadcrumb/MainBreadcrumbBuilder.php
MainBreadcrumbBuilder.build
public function build(RouteMatchInterface $route_match) { $breadcrumb = new Breadcrumb(); $links = []; // Add the url.path.parent cache context. This code ignores the last path // part so the result only depends on the path parents. $breadcrumb->addCacheContexts(['url.path.parent']); $links[] ...
php
public function build(RouteMatchInterface $route_match) { $breadcrumb = new Breadcrumb(); $links = []; // Add the url.path.parent cache context. This code ignores the last path // part so the result only depends on the path parents. $breadcrumb->addCacheContexts(['url.path.parent']); $links[] ...
[ "public", "function", "build", "(", "RouteMatchInterface", "$", "route_match", ")", "{", "$", "breadcrumb", "=", "new", "Breadcrumb", "(", ")", ";", "$", "links", "=", "[", "]", ";", "// Add the url.path.parent cache context. This code ignores the last path", "// part...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_breadcrumb/src/Breadcrumb/MainBreadcrumbBuilder.php#L191-L224
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/BlockPluginId.php
BlockPluginId.create
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) { $entity_manager = $container->get('entity.manager'); $migration_configuration = [ 'migration' => [ 'wxt_media', ], ]; // Handle ...
php
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) { $entity_manager = $container->get('entity.manager'); $migration_configuration = [ 'migration' => [ 'wxt_media', ], ]; // Handle ...
[ "public", "static", "function", "create", "(", "ContainerInterface", "$", "container", ",", "array", "$", "configuration", ",", "$", "plugin_id", ",", "$", "plugin_definition", ",", "MigrationInterface", "$", "migration", "=", "NULL", ")", "{", "$", "entity_mana...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/BlockPluginId.php#L85-L115
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/BlockPluginId.php
BlockPluginId.transform
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { $blocks = []; foreach ($value as $tmp_block) { $uuid = $this->uuidService->generate(); if (is_array($tmp_block)) { list($module, $delta) = explode(":", $tmp_block['id'], 2); ...
php
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { $blocks = []; foreach ($value as $tmp_block) { $uuid = $this->uuidService->generate(); if (is_array($tmp_block)) { list($module, $delta) = explode(":", $tmp_block['id'], 2); ...
[ "public", "function", "transform", "(", "$", "value", ",", "MigrateExecutableInterface", "$", "migrate_executable", ",", "Row", "$", "row", ",", "$", "destination_property", ")", "{", "$", "blocks", "=", "[", "]", ";", "foreach", "(", "$", "value", "as", "...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/BlockPluginId.php#L120-L236
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_breadcrumb/src/Breadcrumb/TaxonomyBreadcrumbBuilder.php
TaxonomyBreadcrumbBuilder.applies
public function applies(RouteMatchInterface $route_match) { $parameters = $route_match->getParameters()->all(); $path = trim($this->context->getPathInfo(), '/'); $path_elements = explode('/', $path); // Content type determination. if (!empty($path_elements[1]) && $path_elements[1] == 'taxonomy') { ...
php
public function applies(RouteMatchInterface $route_match) { $parameters = $route_match->getParameters()->all(); $path = trim($this->context->getPathInfo(), '/'); $path_elements = explode('/', $path); // Content type determination. if (!empty($path_elements[1]) && $path_elements[1] == 'taxonomy') { ...
[ "public", "function", "applies", "(", "RouteMatchInterface", "$", "route_match", ")", "{", "$", "parameters", "=", "$", "route_match", "->", "getParameters", "(", ")", "->", "all", "(", ")", ";", "$", "path", "=", "trim", "(", "$", "this", "->", "context...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_breadcrumb/src/Breadcrumb/TaxonomyBreadcrumbBuilder.php#L149-L162
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_queue/src/Plugin/views/argument_default/SubTaxonomyQueue.php
SubTaxonomyQueue.getArgument
public function getArgument() { // Load default argument from taxonomy page. if (!empty($this->options['term_page'])) { if (($taxonomy_term = $this->routeMatch->getParameter('taxonomy_term')) && $taxonomy_term instanceof TermInterface) { return $taxonomy_term->id(); } } }
php
public function getArgument() { // Load default argument from taxonomy page. if (!empty($this->options['term_page'])) { if (($taxonomy_term = $this->routeMatch->getParameter('taxonomy_term')) && $taxonomy_term instanceof TermInterface) { return $taxonomy_term->id(); } } }
[ "public", "function", "getArgument", "(", ")", "{", "// Load default argument from taxonomy page.", "if", "(", "!", "empty", "(", "$", "this", "->", "options", "[", "'term_page'", "]", ")", ")", "{", "if", "(", "(", "$", "taxonomy_term", "=", "$", "this", ...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_queue/src/Plugin/views/argument_default/SubTaxonomyQueue.php#L57-L64
drupalwxt/wxt
src/ComponentDiscovery.php
ComponentDiscovery.getAll
public function getAll() { if (is_null($this->components)) { $base_path = $this->getBaseComponentPath(); $filter = function (Extension $module) use ($base_path) { return strpos($module->getPath(), $base_path) === 0; }; $this->components = array_filter($this->discovery->scan('module...
php
public function getAll() { if (is_null($this->components)) { $base_path = $this->getBaseComponentPath(); $filter = function (Extension $module) use ($base_path) { return strpos($module->getPath(), $base_path) === 0; }; $this->components = array_filter($this->discovery->scan('module...
[ "public", "function", "getAll", "(", ")", "{", "if", "(", "is_null", "(", "$", "this", "->", "components", ")", ")", "{", "$", "base_path", "=", "$", "this", "->", "getBaseComponentPath", "(", ")", ";", "$", "filter", "=", "function", "(", "Extension",...
Returns extension objects for all WxT components. @return Extension[] Array of extension objects for all WxT components.
[ "Returns", "extension", "objects", "for", "all", "WxT", "components", "." ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/src/ComponentDiscovery.php#L81-L92
drupalwxt/wxt
src/ComponentDiscovery.php
ComponentDiscovery.getMainComponents
public function getMainComponents() { $base_path = $this->getBaseComponentPath(); $filter = function (Extension $module) use ($base_path) { return dirname($module->getPath()) == $base_path; }; return array_filter($this->getAll(), $filter); }
php
public function getMainComponents() { $base_path = $this->getBaseComponentPath(); $filter = function (Extension $module) use ($base_path) { return dirname($module->getPath()) == $base_path; }; return array_filter($this->getAll(), $filter); }
[ "public", "function", "getMainComponents", "(", ")", "{", "$", "base_path", "=", "$", "this", "->", "getBaseComponentPath", "(", ")", ";", "$", "filter", "=", "function", "(", "Extension", "$", "module", ")", "use", "(", "$", "base_path", ")", "{", "retu...
Returns extension objects for all main WxT components. @return Extension[] Array of extension objects for top-level WxT components.
[ "Returns", "extension", "objects", "for", "all", "main", "WxT", "components", "." ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/src/ComponentDiscovery.php#L100-L108
drupalwxt/wxt
src/ComponentDiscovery.php
ComponentDiscovery.getSubComponents
public function getSubComponents() { $base_path = $this->getBaseComponentPath(); $filter = function (Extension $module) use ($base_path) { return strlen(dirname($module->getPath())) > strlen($base_path); }; return array_filter($this->getAll(), $filter); }
php
public function getSubComponents() { $base_path = $this->getBaseComponentPath(); $filter = function (Extension $module) use ($base_path) { return strlen(dirname($module->getPath())) > strlen($base_path); }; return array_filter($this->getAll(), $filter); }
[ "public", "function", "getSubComponents", "(", ")", "{", "$", "base_path", "=", "$", "this", "->", "getBaseComponentPath", "(", ")", ";", "$", "filter", "=", "function", "(", "Extension", "$", "module", ")", "use", "(", "$", "base_path", ")", "{", "retur...
Returns extension object for all WxT sub-components. @return Extension[] Array of extension objects for WxT sub-components.
[ "Returns", "extension", "object", "for", "all", "WxT", "sub", "-", "components", "." ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/src/ComponentDiscovery.php#L116-L124
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/UUIDLink.php
UUIDLink.create
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) { // Default required migration configuration. $migration_configuration = [ 'migration' => [ 'wxt_ext_db_file', ], ]; // Handle an...
php
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) { // Default required migration configuration. $migration_configuration = [ 'migration' => [ 'wxt_ext_db_file', ], ]; // Handle an...
[ "public", "static", "function", "create", "(", "ContainerInterface", "$", "container", ",", "array", "$", "configuration", ",", "$", "plugin_id", ",", "$", "plugin_definition", ",", "MigrationInterface", "$", "migration", "=", "NULL", ")", "{", "// Default require...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/UUIDLink.php#L44-L68
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/UUIDLink.php
UUIDLink.transform
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { if (!$value) { throw new MigrateSkipProcessException(); } $value = ' ' . $value . ' '; $value = preg_replace_callback( "/<a(.*?)href=\"(\[uuid-link:.*?\])\"\s?(.*?)>/i", ...
php
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { if (!$value) { throw new MigrateSkipProcessException(); } $value = ' ' . $value . ' '; $value = preg_replace_callback( "/<a(.*?)href=\"(\[uuid-link:.*?\])\"\s?(.*?)>/i", ...
[ "public", "function", "transform", "(", "$", "value", ",", "MigrateExecutableInterface", "$", "migrate_executable", ",", "Row", "$", "row", ",", "$", "destination_property", ")", "{", "if", "(", "!", "$", "value", ")", "{", "throw", "new", "MigrateSkipProcessE...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/UUIDLink.php#L73-L88
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/UUIDLink.php
UUIDLink.replaceToken
private function replaceToken($match, $migrate_executable, $row, $destination_property) { $tmp = str_replace("[", "", $match[2]); $tmp = str_replace("]", "", $tmp); $tmp = substr($tmp, 15); $uuid = $tmp; $output = ''; try { if (!is_string($uuid)) { throw new MigrateException('Unab...
php
private function replaceToken($match, $migrate_executable, $row, $destination_property) { $tmp = str_replace("[", "", $match[2]); $tmp = str_replace("]", "", $tmp); $tmp = substr($tmp, 15); $uuid = $tmp; $output = ''; try { if (!is_string($uuid)) { throw new MigrateException('Unab...
[ "private", "function", "replaceToken", "(", "$", "match", ",", "$", "migrate_executable", ",", "$", "row", ",", "$", "destination_property", ")", "{", "$", "tmp", "=", "str_replace", "(", "\"[\"", ",", "\"\"", ",", "$", "match", "[", "2", "]", ")", ";"...
Replace callback to convert a Drupal 7 UUID link into a Drupal 8 UUID Link. @param string $match Takes a match of tag code @param \Drupal\migrate\MigrateExecutableInterface $migrate_executable The migrate executable helper class. @param \Drupal\migrate\Row $row The current row after processing. @param string $destinat...
[ "Replace", "callback", "to", "convert", "a", "Drupal", "7", "UUID", "link", "into", "a", "Drupal", "8", "UUID", "Link", "." ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_migration/src/Plugin/migrate/process/UUIDLink.php#L102-L152
drupalwxt/wxt
modules/custom/wxt_core/src/Controller/WxTHttp4xxController.php
WxTHttp4xxController.on404
public function on404() { // 404 Fallback message. $response = ' <div class="box"> <div class="row"> <div class="col-xs-3 col-sm-2 col-md-2 text-center mrgn-tp-md"> <span class="glyphicon glyphicon-warning-sign glyphicon-error"></span> </div> <div class="col-xs-9 col...
php
public function on404() { // 404 Fallback message. $response = ' <div class="box"> <div class="row"> <div class="col-xs-3 col-sm-2 col-md-2 text-center mrgn-tp-md"> <span class="glyphicon glyphicon-warning-sign glyphicon-error"></span> </div> <div class="col-xs-9 col...
[ "public", "function", "on404", "(", ")", "{", "// 404 Fallback message.", "$", "response", "=", "'\n <div class=\"box\">\n <div class=\"row\">\n <div class=\"col-xs-3 col-sm-2 col-md-2 text-center mrgn-tp-md\">\n <span class=\"glyphicon glyphicon-warning-sign glyphicon-er...
The default 404 content. @return array A render array containing the message to display for 404 pages.
[ "The", "default", "404", "content", "." ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_core/src/Controller/WxTHttp4xxController.php#L59-L93
drupalwxt/wxt
modules/custom/wxt_ext/wxt_ext_queue/src/Plugin/views/argument_default/SubNodeQueue.php
SubNodeQueue.getArgument
public function getArgument() { // Use the argument_default_node plugin to get the nid argument. $nid = parent::getArgument(); if (!empty($nid)) { $node = $this->nodeStorage->load($nid); if ($node->hasField('field_queue')) { return $node->get('field_queue')->getString(); } } ...
php
public function getArgument() { // Use the argument_default_node plugin to get the nid argument. $nid = parent::getArgument(); if (!empty($nid)) { $node = $this->nodeStorage->load($nid); if ($node->hasField('field_queue')) { return $node->get('field_queue')->getString(); } } ...
[ "public", "function", "getArgument", "(", ")", "{", "// Use the argument_default_node plugin to get the nid argument.", "$", "nid", "=", "parent", "::", "getArgument", "(", ")", ";", "if", "(", "!", "empty", "(", "$", "nid", ")", ")", "{", "$", "node", "=", ...
{@inheritdoc}
[ "{" ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/modules/custom/wxt_ext/wxt_ext_queue/src/Plugin/views/argument_default/SubNodeQueue.php#L62-L71
drupalwxt/wxt
src/Composer/ReleaseVersion.php
ReleaseVersion.execute
public static function execute(Event $event) { $arguments = $event->getArguments(); $version = reset($arguments); static::updateMakeFile($version); // Find all .info files in WxT...except in the installed code base. $finder = (new Finder()) ->name('*.info.yml') ->in('.') ->exclud...
php
public static function execute(Event $event) { $arguments = $event->getArguments(); $version = reset($arguments); static::updateMakeFile($version); // Find all .info files in WxT...except in the installed code base. $finder = (new Finder()) ->name('*.info.yml') ->in('.') ->exclud...
[ "public", "static", "function", "execute", "(", "Event", "$", "event", ")", "{", "$", "arguments", "=", "$", "event", "->", "getArguments", "(", ")", ";", "$", "version", "=", "reset", "(", "$", "arguments", ")", ";", "static", "::", "updateMakeFile", ...
Script entry point. @param \Composer\Script\Event $event The script event.
[ "Script", "entry", "point", "." ]
train
https://github.com/drupalwxt/wxt/blob/f0a3730065d9dba1ffb68237e329bf575da410d4/src/Composer/ReleaseVersion.php#L21-L48