id
int32
0
241k
repo
stringlengths
6
63
path
stringlengths
5
140
func_name
stringlengths
3
151
original_string
stringlengths
84
13k
language
stringclasses
1 value
code
stringlengths
84
13k
code_tokens
list
docstring
stringlengths
3
47.2k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
91
247
221,600
radphp/radphp
src/Network/Session/Flash/FlashBag.php
FlashBag.getSessionBag
public function getSessionBag() { if (null === $this->sessionBag) { if (!$this->container) { throw new Exception('A container object is required to access the \'session_bag\' service.'); } $this->sessionBag = $this->container->get('session_bag', [$this->b...
php
public function getSessionBag() { if (null === $this->sessionBag) { if (!$this->container) { throw new Exception('A container object is required to access the \'session_bag\' service.'); } $this->sessionBag = $this->container->get('session_bag', [$this->b...
[ "public", "function", "getSessionBag", "(", ")", "{", "if", "(", "null", "===", "$", "this", "->", "sessionBag", ")", "{", "if", "(", "!", "$", "this", "->", "container", ")", "{", "throw", "new", "Exception", "(", "'A container object is required to access ...
Get session bag @throws Exception @throws \Rad\DependencyInjection\Exception\ServiceNotFoundException @return SessionBag
[ "Get", "session", "bag" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Session/Flash/FlashBag.php#L69-L80
221,601
radphp/radphp
src/Network/Session/Flash/FlashBag.php
FlashBag.get
public function get($type, array $default = [], $remove = true) { if ($this->has($type)) { if (true === $remove) { unset($this->messages[$type]); } return $this->messages[$type]; } return $default; }
php
public function get($type, array $default = [], $remove = true) { if ($this->has($type)) { if (true === $remove) { unset($this->messages[$type]); } return $this->messages[$type]; } return $default; }
[ "public", "function", "get", "(", "$", "type", ",", "array", "$", "default", "=", "[", "]", ",", "$", "remove", "=", "true", ")", "{", "if", "(", "$", "this", "->", "has", "(", "$", "type", ")", ")", "{", "if", "(", "true", "===", "$", "remov...
Peek type messages @param string $type @param array $default @param bool $remove @return array
[ "Peek", "type", "messages" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Session/Flash/FlashBag.php#L143-L154
221,602
radphp/radphp
src/Network/Session/Flash/FlashBag.php
FlashBag.getAll
public function getAll($remove = true) { $output = $this->messages; if (true === $remove) { $this->clear(); } return $output; }
php
public function getAll($remove = true) { $output = $this->messages; if (true === $remove) { $this->clear(); } return $output; }
[ "public", "function", "getAll", "(", "$", "remove", "=", "true", ")", "{", "$", "output", "=", "$", "this", "->", "messages", ";", "if", "(", "true", "===", "$", "remove", ")", "{", "$", "this", "->", "clear", "(", ")", ";", "}", "return", "$", ...
Get all messages and remove theirs @param bool $remove Remove all messages @return array
[ "Get", "all", "messages", "and", "remove", "theirs" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Session/Flash/FlashBag.php#L163-L171
221,603
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/TagBuilder.php
TagBuilder.reset
public function reset() { $this->tagName = ''; $this->content = ''; $this->attributes = array(); $this->forceClosingTag = false; }
php
public function reset() { $this->tagName = ''; $this->content = ''; $this->attributes = array(); $this->forceClosingTag = false; }
[ "public", "function", "reset", "(", ")", "{", "$", "this", "->", "tagName", "=", "''", ";", "$", "this", "->", "content", "=", "''", ";", "$", "this", "->", "attributes", "=", "array", "(", ")", ";", "$", "this", "->", "forceClosingTag", "=", "fals...
Resets the TagBuilder by setting all members to their default value @return void @api
[ "Resets", "the", "TagBuilder", "by", "setting", "all", "members", "to", "their", "default", "value" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/TagBuilder.php#L223-L229
221,604
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/TagBuilder.php
TagBuilder.render
public function render() { if (empty($this->tagName)) { return ''; } $output = '<' . $this->tagName; foreach ($this->attributes as $attributeName => $attributeValue) { $output .= ' ' . $attributeName . '="' . $attributeValue . '"'; } if ($this-...
php
public function render() { if (empty($this->tagName)) { return ''; } $output = '<' . $this->tagName; foreach ($this->attributes as $attributeName => $attributeValue) { $output .= ' ' . $attributeName . '="' . $attributeValue . '"'; } if ($this-...
[ "public", "function", "render", "(", ")", "{", "if", "(", "empty", "(", "$", "this", "->", "tagName", ")", ")", "{", "return", "''", ";", "}", "$", "output", "=", "'<'", ".", "$", "this", "->", "tagName", ";", "foreach", "(", "$", "this", "->", ...
Renders and returns the tag @return string @api
[ "Renders", "and", "returns", "the", "tag" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/TagBuilder.php#L237-L252
221,605
neos/fluid
Classes/TYPO3/Fluid/Core/Parser/SyntaxTree/ArrayNode.php
ArrayNode.evaluate
public function evaluate(RenderingContextInterface $renderingContext) { $arrayToBuild = array(); foreach ($this->internalArray as $key => $value) { if ($value instanceof AbstractNode) { $arrayToBuild[$key] = $value->evaluate($renderingContext); } else { ...
php
public function evaluate(RenderingContextInterface $renderingContext) { $arrayToBuild = array(); foreach ($this->internalArray as $key => $value) { if ($value instanceof AbstractNode) { $arrayToBuild[$key] = $value->evaluate($renderingContext); } else { ...
[ "public", "function", "evaluate", "(", "RenderingContextInterface", "$", "renderingContext", ")", "{", "$", "arrayToBuild", "=", "array", "(", ")", ";", "foreach", "(", "$", "this", "->", "internalArray", "as", "$", "key", "=>", "$", "value", ")", "{", "if...
Evaluate the array and return an evaluated array @param RenderingContextInterface $renderingContext @return array An associative array with literal values
[ "Evaluate", "the", "array", "and", "return", "an", "evaluated", "array" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Parser/SyntaxTree/ArrayNode.php#L44-L56
221,606
radphp/radphp
src/OAuthentication/Provider/GithubProvider.php
GithubProvider.getEmail
protected function getEmail($token) { if (in_array(self::SCOPE_USER_EMAIL, $this->getScopes())) { $request = new Request(self::USER_API_URI . '/emails?access_token=' . $token, Request::METHOD_GET); $request = $this->request($request); $client = new Curl(); $r...
php
protected function getEmail($token) { if (in_array(self::SCOPE_USER_EMAIL, $this->getScopes())) { $request = new Request(self::USER_API_URI . '/emails?access_token=' . $token, Request::METHOD_GET); $request = $this->request($request); $client = new Curl(); $r...
[ "protected", "function", "getEmail", "(", "$", "token", ")", "{", "if", "(", "in_array", "(", "self", "::", "SCOPE_USER_EMAIL", ",", "$", "this", "->", "getScopes", "(", ")", ")", ")", "{", "$", "request", "=", "new", "Request", "(", "self", "::", "U...
Get user email @param string $token Access token @return null|string @throws Exception
[ "Get", "user", "email" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/OAuthentication/Provider/GithubProvider.php#L247-L275
221,607
paquettg/leaguewrap
src/LeagueWrap/Dto/Game.php
Game.player
public function player($playerId) { if ( ! isset($this->info['fellowPlayers'])) { // no players return null; } $players = $this->info['fellowPlayers']; if (isset($players[$playerId])) { return $players[$playerId]; } return null; }
php
public function player($playerId) { if ( ! isset($this->info['fellowPlayers'])) { // no players return null; } $players = $this->info['fellowPlayers']; if (isset($players[$playerId])) { return $players[$playerId]; } return null; }
[ "public", "function", "player", "(", "$", "playerId", ")", "{", "if", "(", "!", "isset", "(", "$", "this", "->", "info", "[", "'fellowPlayers'", "]", ")", ")", "{", "// no players", "return", "null", ";", "}", "$", "players", "=", "$", "this", "->", ...
Attempts to get a fellow player from this game. @param int $playerId @return Player|null
[ "Attempts", "to", "get", "a", "fellow", "player", "from", "this", "game", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Dto/Game.php#L53-L67
221,608
thiagof/laravelrpc
src/RpcClientWrapper.php
RpcClientWrapper.connection_init
private function connection_init() { $opts = $this->config; // Headers format $headers = []; foreach ($opts['headers'] as $key => $value) $headers[] = "$key: $value"; $connection = new JsonRPC\Client($opts['url'], $opts['timeout'], $headers); $connectio...
php
private function connection_init() { $opts = $this->config; // Headers format $headers = []; foreach ($opts['headers'] as $key => $value) $headers[] = "$key: $value"; $connection = new JsonRPC\Client($opts['url'], $opts['timeout'], $headers); $connectio...
[ "private", "function", "connection_init", "(", ")", "{", "$", "opts", "=", "$", "this", "->", "config", ";", "// Headers format", "$", "headers", "=", "[", "]", ";", "foreach", "(", "$", "opts", "[", "'headers'", "]", "as", "$", "key", "=>", "$", "va...
Inits Client Connection based on instance params @return JsonRPC\Client
[ "Inits", "Client", "Connection", "based", "on", "instance", "params" ]
a6634abec6e299c6b91835f1c46481afedf3c4bc
https://github.com/thiagof/laravelrpc/blob/a6634abec6e299c6b91835f1c46481afedf3c4bc/src/RpcClientWrapper.php#L45-L65
221,609
thiagof/laravelrpc
src/RpcClientWrapper.php
RpcClientWrapper.request
protected function request($method, $params) { Log::debug('RpcClient call', ['method'=>$method, 'params'=>$params, 'config'=>$this->config]); return call_user_func_array( [$this->connection(), 'execute'], [$method,$params] ); }
php
protected function request($method, $params) { Log::debug('RpcClient call', ['method'=>$method, 'params'=>$params, 'config'=>$this->config]); return call_user_func_array( [$this->connection(), 'execute'], [$method,$params] ); }
[ "protected", "function", "request", "(", "$", "method", ",", "$", "params", ")", "{", "Log", "::", "debug", "(", "'RpcClient call'", ",", "[", "'method'", "=>", "$", "method", ",", "'params'", "=>", "$", "params", ",", "'config'", "=>", "$", "this", "-...
Execute a remote method @param string $method Remote method @param array $params Params to be run @return mixed Response from remote execution
[ "Execute", "a", "remote", "method" ]
a6634abec6e299c6b91835f1c46481afedf3c4bc
https://github.com/thiagof/laravelrpc/blob/a6634abec6e299c6b91835f1c46481afedf3c4bc/src/RpcClientWrapper.php#L73-L81
221,610
radphp/radphp
src/DependencyInjection/Registry.php
Registry.set
public static function set($key, $value, $scope = self::DEFAULT_SCOPE) { self::$storage[$scope][$key] = $value; }
php
public static function set($key, $value, $scope = self::DEFAULT_SCOPE) { self::$storage[$scope][$key] = $value; }
[ "public", "static", "function", "set", "(", "$", "key", ",", "$", "value", ",", "$", "scope", "=", "self", "::", "DEFAULT_SCOPE", ")", "{", "self", "::", "$", "storage", "[", "$", "scope", "]", "[", "$", "key", "]", "=", "$", "value", ";", "}" ]
Store key in registry @param string $key @param mixed $value @param string $scope
[ "Store", "key", "in", "registry" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/DependencyInjection/Registry.php#L27-L30
221,611
radphp/radphp
src/DependencyInjection/Registry.php
Registry.get
public static function get($key, $scope = self::DEFAULT_SCOPE) { if (isset(self::$storage[$scope][$key])) { return self::$storage[$scope][$key]; } return null; }
php
public static function get($key, $scope = self::DEFAULT_SCOPE) { if (isset(self::$storage[$scope][$key])) { return self::$storage[$scope][$key]; } return null; }
[ "public", "static", "function", "get", "(", "$", "key", ",", "$", "scope", "=", "self", "::", "DEFAULT_SCOPE", ")", "{", "if", "(", "isset", "(", "self", "::", "$", "storage", "[", "$", "scope", "]", "[", "$", "key", "]", ")", ")", "{", "return",...
Get key from registry @param string $key @param string $scope @return null
[ "Get", "key", "from", "registry" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/DependencyInjection/Registry.php#L40-L47
221,612
radphp/radphp
src/DependencyInjection/Registry.php
Registry.has
public static function has($key, $scope = self::DEFAULT_SCOPE) { return isset(self::$storage[$scope][$key]); }
php
public static function has($key, $scope = self::DEFAULT_SCOPE) { return isset(self::$storage[$scope][$key]); }
[ "public", "static", "function", "has", "(", "$", "key", ",", "$", "scope", "=", "self", "::", "DEFAULT_SCOPE", ")", "{", "return", "isset", "(", "self", "::", "$", "storage", "[", "$", "scope", "]", "[", "$", "key", "]", ")", ";", "}" ]
Check key exist or not @param string $key @param string $scope @return bool
[ "Check", "key", "exist", "or", "not" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/DependencyInjection/Registry.php#L57-L60
221,613
paquettg/leaguewrap
src/LeagueWrap/StaticOptimizer.php
StaticOptimizer.setStaticInfo
public function setStaticInfo(Staticdata $staticData) { $results = []; foreach ($this->requests as $source => $ids) { $result = []; $method = 'get'.ucfirst($source); if (count($ids) > 1) { // group up the calls if (preg_match('/(?<![aeiou])y$/', $method)) { // if last cha...
php
public function setStaticInfo(Staticdata $staticData) { $results = []; foreach ($this->requests as $source => $ids) { $result = []; $method = 'get'.ucfirst($source); if (count($ids) > 1) { // group up the calls if (preg_match('/(?<![aeiou])y$/', $method)) { // if last cha...
[ "public", "function", "setStaticInfo", "(", "Staticdata", "$", "staticData", ")", "{", "$", "results", "=", "[", "]", ";", "foreach", "(", "$", "this", "->", "requests", "as", "$", "source", "=>", "$", "ids", ")", "{", "$", "result", "=", "[", "]", ...
Uses the static api to get all the static information we need that have already been optimized. @param Staticdata $staticData @return void
[ "Uses", "the", "static", "api", "to", "get", "all", "the", "static", "information", "we", "need", "that", "have", "already", "been", "optimized", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/StaticOptimizer.php#L68-L99
221,614
paquettg/leaguewrap
src/LeagueWrap/StaticOptimizer.php
StaticOptimizer.getDataFromHash
public function getDataFromHash($hash) { $data = []; $fields = $this->fields[$hash]; foreach ($fields as $source => $ids) { $result = []; $results = $this->results[$source]; foreach ($ids as $id) { $result[$id] = $results[$id]; } $data[$source] = $result; } return $...
php
public function getDataFromHash($hash) { $data = []; $fields = $this->fields[$hash]; foreach ($fields as $source => $ids) { $result = []; $results = $this->results[$source]; foreach ($ids as $id) { $result[$id] = $results[$id]; } $data[$source] = $result; } return $...
[ "public", "function", "getDataFromHash", "(", "$", "hash", ")", "{", "$", "data", "=", "[", "]", ";", "$", "fields", "=", "$", "this", "->", "fields", "[", "$", "hash", "]", ";", "foreach", "(", "$", "fields", "as", "$", "source", "=>", "$", "ids...
Gets the result data array from the static api by the given hash. @param string $hash @return array
[ "Gets", "the", "result", "data", "array", "from", "the", "static", "api", "by", "the", "given", "hash", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/StaticOptimizer.php#L108-L124
221,615
ThibaudDauce/mattermost-php
src/Attachment.php
Attachment.field
public function field($title, $value, $short = true) { $this->fields[] = [ 'title' => (string) $title, 'value' => $value, 'short' => $short, ]; return $this; }
php
public function field($title, $value, $short = true) { $this->fields[] = [ 'title' => (string) $title, 'value' => $value, 'short' => $short, ]; return $this; }
[ "public", "function", "field", "(", "$", "title", ",", "$", "value", ",", "$", "short", "=", "true", ")", "{", "$", "this", "->", "fields", "[", "]", "=", "[", "'title'", "=>", "(", "string", ")", "$", "title", ",", "'value'", "=>", "$", "value",...
Add a field to the attachment @param string $title A title shown in the table above the value. @param string $value The text value of the field. It can be formatted using markdown. @param bool $short Optionally set to “True” or “False” to indicate whether the value is short enough to be displayed beside oth...
[ "Add", "a", "field", "to", "the", "attachment" ]
7542208205ba160589f54cd8636cbba6fee29a37
https://github.com/ThibaudDauce/mattermost-php/blob/7542208205ba160589f54cd8636cbba6fee29a37/src/Attachment.php#L253-L262
221,616
neos/fluid
Classes/TYPO3/Fluid/Core/Widget/AbstractWidgetViewHelper.php
AbstractWidgetViewHelper.resetState
public function resetState() { if ($this->ajaxWidget) { $this->widgetContext = $this->objectManager->get(\TYPO3\Fluid\Core\Widget\WidgetContext::class); } }
php
public function resetState() { if ($this->ajaxWidget) { $this->widgetContext = $this->objectManager->get(\TYPO3\Fluid\Core\Widget\WidgetContext::class); } }
[ "public", "function", "resetState", "(", ")", "{", "if", "(", "$", "this", "->", "ajaxWidget", ")", "{", "$", "this", "->", "widgetContext", "=", "$", "this", "->", "objectManager", "->", "get", "(", "\\", "TYPO3", "\\", "Fluid", "\\", "Core", "\\", ...
Resets the ViewHelper state by creating a fresh WidgetContext @return void
[ "Resets", "the", "ViewHelper", "state", "by", "creating", "a", "fresh", "WidgetContext" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Widget/AbstractWidgetViewHelper.php#L288-L293
221,617
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/ViewHelperVariableContainer.php
ViewHelperVariableContainer.get
public function get($viewHelperName, $key) { if (!$this->exists($viewHelperName, $key)) { throw new InvalidVariableException(sprintf('No value found for key "%s->%s"', $viewHelperName, $key), 1243325768); } return $this->objects[$viewHelperName][$key]; }
php
public function get($viewHelperName, $key) { if (!$this->exists($viewHelperName, $key)) { throw new InvalidVariableException(sprintf('No value found for key "%s->%s"', $viewHelperName, $key), 1243325768); } return $this->objects[$viewHelperName][$key]; }
[ "public", "function", "get", "(", "$", "viewHelperName", ",", "$", "key", ")", "{", "if", "(", "!", "$", "this", "->", "exists", "(", "$", "viewHelperName", ",", "$", "key", ")", ")", "{", "throw", "new", "InvalidVariableException", "(", "sprintf", "("...
Gets a variable which is stored @param string $viewHelperName The ViewHelper Class name (Fully qualified, like "TYPO3\Fluid\ViewHelpers\ForViewHelper") @param string $key Key of the data @return mixed The object stored @throws InvalidVariableException if there was no key with the specified name @api
[ "Gets", "a", "variable", "which", "is", "stored" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/ViewHelperVariableContainer.php#L86-L92
221,618
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/ViewHelperVariableContainer.php
ViewHelperVariableContainer.exists
public function exists($viewHelperName, $key) { return isset($this->objects[$viewHelperName]) && array_key_exists($key, $this->objects[$viewHelperName]); }
php
public function exists($viewHelperName, $key) { return isset($this->objects[$viewHelperName]) && array_key_exists($key, $this->objects[$viewHelperName]); }
[ "public", "function", "exists", "(", "$", "viewHelperName", ",", "$", "key", ")", "{", "return", "isset", "(", "$", "this", "->", "objects", "[", "$", "viewHelperName", "]", ")", "&&", "array_key_exists", "(", "$", "key", ",", "$", "this", "->", "objec...
Determine whether there is a variable stored for the given key @param string $viewHelperName The ViewHelper Class name (Fully qualified, like "TYPO3\Fluid\ViewHelpers\ForViewHelper") @param string $key Key of the data @return boolean TRUE if a value for the given ViewHelperName / Key is stored, FALSE otherwise. @api
[ "Determine", "whether", "there", "is", "a", "variable", "stored", "for", "the", "given", "key" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/ViewHelperVariableContainer.php#L102-L105
221,619
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/ViewHelperVariableContainer.php
ViewHelperVariableContainer.remove
public function remove($viewHelperName, $key) { if (!$this->exists($viewHelperName, $key)) { throw new InvalidVariableException(sprintf('No value found for key "%s->%s", thus the key cannot be removed.', $viewHelperName, $key), 1243352249); } unset($this->objects[$viewHelperName]...
php
public function remove($viewHelperName, $key) { if (!$this->exists($viewHelperName, $key)) { throw new InvalidVariableException(sprintf('No value found for key "%s->%s", thus the key cannot be removed.', $viewHelperName, $key), 1243352249); } unset($this->objects[$viewHelperName]...
[ "public", "function", "remove", "(", "$", "viewHelperName", ",", "$", "key", ")", "{", "if", "(", "!", "$", "this", "->", "exists", "(", "$", "viewHelperName", ",", "$", "key", ")", ")", "{", "throw", "new", "InvalidVariableException", "(", "sprintf", ...
Remove a value from the variable container @param string $viewHelperName The ViewHelper Class name (Fully qualified, like "TYPO3\Fluid\ViewHelpers\ForViewHelper") @param string $key Key of the data to remove @return void @throws InvalidVariableException if there was no key with the specified name @api
[ "Remove", "a", "value", "from", "the", "variable", "container" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/ViewHelperVariableContainer.php#L116-L122
221,620
neos/fluid
Classes/TYPO3/Fluid/Core/Parser/Interceptor/Escape.php
Escape.process
public function process(NodeInterface $node, $interceptorPosition, ParsingState $parsingState) { if ($interceptorPosition === InterceptorInterface::INTERCEPT_OPENING_VIEWHELPER) { /** @var $node ViewHelperNode */ if (!$node->getUninitializedViewHelper()->isChildrenEscapingEnabled()) ...
php
public function process(NodeInterface $node, $interceptorPosition, ParsingState $parsingState) { if ($interceptorPosition === InterceptorInterface::INTERCEPT_OPENING_VIEWHELPER) { /** @var $node ViewHelperNode */ if (!$node->getUninitializedViewHelper()->isChildrenEscapingEnabled()) ...
[ "public", "function", "process", "(", "NodeInterface", "$", "node", ",", "$", "interceptorPosition", ",", "ParsingState", "$", "parsingState", ")", "{", "if", "(", "$", "interceptorPosition", "===", "InterceptorInterface", "::", "INTERCEPT_OPENING_VIEWHELPER", ")", ...
Adds a ViewHelper node using the Format\HtmlspecialcharsViewHelper to the given node. If "escapingInterceptorEnabled" in the ViewHelper is FALSE, will disable itself inside the ViewHelpers body. @param NodeInterface $node @param integer $interceptorPosition One of the INTERCEPT_* constants for the current interception...
[ "Adds", "a", "ViewHelper", "node", "using", "the", "Format", "\\", "HtmlspecialcharsViewHelper", "to", "the", "given", "node", ".", "If", "escapingInterceptorEnabled", "in", "the", "ViewHelper", "is", "FALSE", "will", "disable", "itself", "inside", "the", "ViewHel...
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Parser/Interceptor/Escape.php#L66-L89
221,621
twizoapi/lib-api-php
src/Entity/Application/VerificationTypes.php
VerificationTypes.loadData
public function loadData() { $response = $this->sendApiCall(self::ACTION_RETRIEVE, $this->getCreateUrl()); $this->verificationTypes = $response->getBody(); }
php
public function loadData() { $response = $this->sendApiCall(self::ACTION_RETRIEVE, $this->getCreateUrl()); $this->verificationTypes = $response->getBody(); }
[ "public", "function", "loadData", "(", ")", "{", "$", "response", "=", "$", "this", "->", "sendApiCall", "(", "self", "::", "ACTION_RETRIEVE", ",", "$", "this", "->", "getCreateUrl", "(", ")", ")", ";", "$", "this", "->", "verificationTypes", "=", "$", ...
Load the balance data from the server @throws Exception
[ "Load", "the", "balance", "data", "from", "the", "server" ]
2e545d859784184138332c9b5bfc063940e3c926
https://github.com/twizoapi/lib-api-php/blob/2e545d859784184138332c9b5bfc063940e3c926/src/Entity/Application/VerificationTypes.php#L46-L50
221,622
neos/fluid
Classes/TYPO3/Fluid/Core/Compiler/TemplateCompiler.php
TemplateCompiler.convertViewHelperNode
protected function convertViewHelperNode(ViewHelperNode $node) { $initializationPhpCode = '// Rendering ViewHelper ' . $node->getViewHelperClassName() . chr(10); // Build up $arguments array $argumentsVariableName = $this->variableName('arguments'); $initializationPhpCode .= sprintf...
php
protected function convertViewHelperNode(ViewHelperNode $node) { $initializationPhpCode = '// Rendering ViewHelper ' . $node->getViewHelperClassName() . chr(10); // Build up $arguments array $argumentsVariableName = $this->variableName('arguments'); $initializationPhpCode .= sprintf...
[ "protected", "function", "convertViewHelperNode", "(", "ViewHelperNode", "$", "node", ")", "{", "$", "initializationPhpCode", "=", "'// Rendering ViewHelper '", ".", "$", "node", "->", "getViewHelperClassName", "(", ")", ".", "chr", "(", "10", ")", ";", "// Build ...
Convert a single ViewHelperNode into its cached representation. If the ViewHelper implements the "Compilable" facet, the ViewHelper itself is asked for its cached PHP code representation. If not, a ViewHelper is built and then invoked. @param ViewHelperNode $node @return array @see convert()
[ "Convert", "a", "single", "ViewHelperNode", "into", "its", "cached", "representation", ".", "If", "the", "ViewHelper", "implements", "the", "Compilable", "facet", "the", "ViewHelper", "itself", "is", "asked", "for", "its", "cached", "PHP", "code", "representation"...
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Compiler/TemplateCompiler.php#L245-L300
221,623
neos/fluid
Classes/TYPO3/Fluid/Core/Compiler/TemplateCompiler.php
TemplateCompiler.flushTemplatesOnViewHelperChanges
public function flushTemplatesOnViewHelperChanges(array $changedFiles) { if (!$this->templateCache instanceof FrontendInterface) { return; } foreach ($changedFiles as $pathAndFilename => $status) { if (strrpos($pathAndFilename, 'ViewHelper.php') !== false) { ...
php
public function flushTemplatesOnViewHelperChanges(array $changedFiles) { if (!$this->templateCache instanceof FrontendInterface) { return; } foreach ($changedFiles as $pathAndFilename => $status) { if (strrpos($pathAndFilename, 'ViewHelper.php') !== false) { ...
[ "public", "function", "flushTemplatesOnViewHelperChanges", "(", "array", "$", "changedFiles", ")", "{", "if", "(", "!", "$", "this", "->", "templateCache", "instanceof", "FrontendInterface", ")", "{", "return", ";", "}", "foreach", "(", "$", "changedFiles", "as"...
Flush cached templates if a ViewHelper class is changed @param array $changedFiles An array of changed class files @return void
[ "Flush", "cached", "templates", "if", "a", "ViewHelper", "class", "is", "changed" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Compiler/TemplateCompiler.php#L448-L460
221,624
salebab/database
src/database/DB.php
DB.setConfig
static function setConfig($config, $instance = 'default') { self::$config[$instance]['dsn'] = array_key_exists('dsn', $config) ? $config['dsn'] : ""; self::$config[$instance]['username'] = array_key_exists('username', $config) ? $config['username'] : null; self::$config[$instance]['password'...
php
static function setConfig($config, $instance = 'default') { self::$config[$instance]['dsn'] = array_key_exists('dsn', $config) ? $config['dsn'] : ""; self::$config[$instance]['username'] = array_key_exists('username', $config) ? $config['username'] : null; self::$config[$instance]['password'...
[ "static", "function", "setConfig", "(", "$", "config", ",", "$", "instance", "=", "'default'", ")", "{", "self", "::", "$", "config", "[", "$", "instance", "]", "[", "'dsn'", "]", "=", "array_key_exists", "(", "'dsn'", ",", "$", "config", ")", "?", "...
Set database config params config param should contains dsn, username, password and options @param array $config @param string $instance
[ "Set", "database", "config", "params", "config", "param", "should", "contains", "dsn", "username", "password", "and", "options" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L91-L97
221,625
salebab/database
src/database/DB.php
DB.getSetStmt
private function getSetStmt($syntax, $table, $data, $where = null) { $columns = array(); foreach (array_keys($data) as $column) { $columns[] = "`" . $column . "` = ?"; } $columns = implode(", ", $columns); $sql = "$syntax `$table` SET " . $columns . $this->build...
php
private function getSetStmt($syntax, $table, $data, $where = null) { $columns = array(); foreach (array_keys($data) as $column) { $columns[] = "`" . $column . "` = ?"; } $columns = implode(", ", $columns); $sql = "$syntax `$table` SET " . $columns . $this->build...
[ "private", "function", "getSetStmt", "(", "$", "syntax", ",", "$", "table", ",", "$", "data", ",", "$", "where", "=", "null", ")", "{", "$", "columns", "=", "array", "(", ")", ";", "foreach", "(", "array_keys", "(", "$", "data", ")", "as", "$", "...
Build and Get SET statement $this->getSetStmt(DB::INSERT, "mytable", array("name" => "John")); will return: INSERT INTO @param string $syntax INSERT, UPDATE, REPLACE @param string $table @param array $data @param null $where @return \PDOStatement
[ "Build", "and", "Get", "SET", "statement" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L188-L200
221,626
salebab/database
src/database/DB.php
DB.executeBySyntax
private function executeBySyntax($syntax, $table, $data, $where = null, $where_params = array(), $stmt_key = null) { if (!is_null($where) && !is_array($where)) { $where = array($where); } if (is_object($data)) { $data = (array) $data; } $data = $this...
php
private function executeBySyntax($syntax, $table, $data, $where = null, $where_params = array(), $stmt_key = null) { if (!is_null($where) && !is_array($where)) { $where = array($where); } if (is_object($data)) { $data = (array) $data; } $data = $this...
[ "private", "function", "executeBySyntax", "(", "$", "syntax", ",", "$", "table", ",", "$", "data", ",", "$", "where", "=", "null", ",", "$", "where_params", "=", "array", "(", ")", ",", "$", "stmt_key", "=", "null", ")", "{", "if", "(", "!", "is_nu...
Perform INSERT, UPDATE, REPLACE @param string $syntax @param string $table @param array $data @param null $where @param array $where_params @param null $stmt_key @return Statement|\PDOStatement
[ "Perform", "INSERT", "UPDATE", "REPLACE" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L213-L242
221,627
salebab/database
src/database/DB.php
DB.insert
function insert($table, $data, $stmt_key = null) { return $this->executeBySyntax(self::INSERT, $table, $data, null, array(), $stmt_key); }
php
function insert($table, $data, $stmt_key = null) { return $this->executeBySyntax(self::INSERT, $table, $data, null, array(), $stmt_key); }
[ "function", "insert", "(", "$", "table", ",", "$", "data", ",", "$", "stmt_key", "=", "null", ")", "{", "return", "$", "this", "->", "executeBySyntax", "(", "self", "::", "INSERT", ",", "$", "table", ",", "$", "data", ",", "null", ",", "array", "("...
Insert one row @throw PDOException @param string $table @param array $data @param int|string|null $stmt_key Unique key to use previous prepared stmt @return Statement
[ "Insert", "one", "row" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L253-L256
221,628
salebab/database
src/database/DB.php
DB.update
function update($table, $data, $where, $where_params = array(), $stmt_key = null) { return $this->executeBySyntax(self::UPDATE, $table, $data, $where, $where_params, $stmt_key); }
php
function update($table, $data, $where, $where_params = array(), $stmt_key = null) { return $this->executeBySyntax(self::UPDATE, $table, $data, $where, $where_params, $stmt_key); }
[ "function", "update", "(", "$", "table", ",", "$", "data", ",", "$", "where", ",", "$", "where_params", "=", "array", "(", ")", ",", "$", "stmt_key", "=", "null", ")", "{", "return", "$", "this", "->", "executeBySyntax", "(", "self", "::", "UPDATE", ...
Update row in table, optionally use previous prepared stmt by stmt_key @throw PDOException @param string $table @param array $data @param mixed $where @param mixed|array $where_params @param int|string|null $stmt_key Unique key to use previous prepared stmt @return Statement
[ "Update", "row", "in", "table", "optionally", "use", "previous", "prepared", "stmt", "by", "stmt_key" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L270-L273
221,629
salebab/database
src/database/DB.php
DB.replace
function replace($table, $data, $stmt_key = null) { return $this->executeBySyntax(self::REPLACE, $table, $data, null, array(), $stmt_key); }
php
function replace($table, $data, $stmt_key = null) { return $this->executeBySyntax(self::REPLACE, $table, $data, null, array(), $stmt_key); }
[ "function", "replace", "(", "$", "table", ",", "$", "data", ",", "$", "stmt_key", "=", "null", ")", "{", "return", "$", "this", "->", "executeBySyntax", "(", "self", "::", "REPLACE", ",", "$", "table", ",", "$", "data", ",", "null", ",", "array", "...
Insert or replace row in a table @throw PDOException @param string $table @param array $data @param int|string|null $stmt_key @return Statement
[ "Insert", "or", "replace", "row", "in", "a", "table" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L285-L288
221,630
salebab/database
src/database/DB.php
DB.count
function count($table, $where, $where_params = null) { $sql = "SELECT COUNT(*) FROM " . $table . $this->buildWhere($where); $stmt = $this->executeQuery($sql, $where_params); return $stmt->fetchColumn(); }
php
function count($table, $where, $where_params = null) { $sql = "SELECT COUNT(*) FROM " . $table . $this->buildWhere($where); $stmt = $this->executeQuery($sql, $where_params); return $stmt->fetchColumn(); }
[ "function", "count", "(", "$", "table", ",", "$", "where", ",", "$", "where_params", "=", "null", ")", "{", "$", "sql", "=", "\"SELECT COUNT(*) FROM \"", ".", "$", "table", ".", "$", "this", "->", "buildWhere", "(", "$", "where", ")", ";", "$", "stmt...
Count rows in one table - very simple implementation @param string $table @param mixed $where @param array $where_params @return int
[ "Count", "rows", "in", "one", "table", "-", "very", "simple", "implementation" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L316-L322
221,631
salebab/database
src/database/DB.php
DB.execQueryString
function execQueryString($sql, $params = null) { if (!is_array($params) && !is_null($params)) { $params = array($params); } $stmt = $this->prepare($sql); $stmt->execute($params); return $stmt; }
php
function execQueryString($sql, $params = null) { if (!is_array($params) && !is_null($params)) { $params = array($params); } $stmt = $this->prepare($sql); $stmt->execute($params); return $stmt; }
[ "function", "execQueryString", "(", "$", "sql", ",", "$", "params", "=", "null", ")", "{", "if", "(", "!", "is_array", "(", "$", "params", ")", "&&", "!", "is_null", "(", "$", "params", ")", ")", "{", "$", "params", "=", "array", "(", "$", "param...
Prepare & execute query with params @throw PDOException @param string $sql @param array|null $params @return Statement
[ "Prepare", "&", "execute", "query", "with", "params" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L341-L350
221,632
salebab/database
src/database/DB.php
DB.buildWhere
function buildWhere($where, $operand = "AND") { if (empty($where)) { return ""; } if (is_array($where)) { $wheres = array(); foreach ($where as $k => $w) { $wheres[] = "(" . $w . ")"; } $where = implode(" $operand "...
php
function buildWhere($where, $operand = "AND") { if (empty($where)) { return ""; } if (is_array($where)) { $wheres = array(); foreach ($where as $k => $w) { $wheres[] = "(" . $w . ")"; } $where = implode(" $operand "...
[ "function", "buildWhere", "(", "$", "where", ",", "$", "operand", "=", "\"AND\"", ")", "{", "if", "(", "empty", "(", "$", "where", ")", ")", "{", "return", "\"\"", ";", "}", "if", "(", "is_array", "(", "$", "where", ")", ")", "{", "$", "wheres", ...
Build where statement for SQL query @param mixed $where @param string $operand AND | OR @return string
[ "Build", "where", "statement", "for", "SQL", "query" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L368-L383
221,633
salebab/database
src/database/DB.php
DB.save
function save($table, $data, $primary_key, $stmt_key = null) { // Update if primary key exists in data set or insert new row if (!empty($data[$primary_key])) { return $this->update($table, $data, $primary_key . " = ?", $data[$primary_key], $stmt_key); } else { return ...
php
function save($table, $data, $primary_key, $stmt_key = null) { // Update if primary key exists in data set or insert new row if (!empty($data[$primary_key])) { return $this->update($table, $data, $primary_key . " = ?", $data[$primary_key], $stmt_key); } else { return ...
[ "function", "save", "(", "$", "table", ",", "$", "data", ",", "$", "primary_key", ",", "$", "stmt_key", "=", "null", ")", "{", "// Update if primary key exists in data set or insert new row", "if", "(", "!", "empty", "(", "$", "data", "[", "$", "primary_key", ...
Save data to table @throw PDOException @param string $table @param array $data @param string $primary_key Name of primary key column @param string|int $stmt_key @return Statement
[ "Save", "data", "to", "table" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L432-L440
221,634
salebab/database
src/database/DB.php
DB.setFetchTableNames
function setFetchTableNames($option = 1) { $this->setAttribute(self::ATTR_FETCH_TABLE_NAMES, $option); $this->fetch_table_names = $option; }
php
function setFetchTableNames($option = 1) { $this->setAttribute(self::ATTR_FETCH_TABLE_NAMES, $option); $this->fetch_table_names = $option; }
[ "function", "setFetchTableNames", "(", "$", "option", "=", "1", ")", "{", "$", "this", "->", "setAttribute", "(", "self", "::", "ATTR_FETCH_TABLE_NAMES", ",", "$", "option", ")", ";", "$", "this", "->", "fetch_table_names", "=", "$", "option", ";", "}" ]
Set fetch table names attribute @param int $option 1 or 0
[ "Set", "fetch", "table", "names", "attribute" ]
26e9253f274fb0719ad86c1db6e25ea5400b58a6
https://github.com/salebab/database/blob/26e9253f274fb0719ad86c1db6e25ea5400b58a6/src/database/DB.php#L448-L452
221,635
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.get
public function get($key) { $key = strtolower($key); if (isset($this->summoners[$key])) { return $this->summoners[$key]; } return null; }
php
public function get($key) { $key = strtolower($key); if (isset($this->summoners[$key])) { return $this->summoners[$key]; } return null; }
[ "public", "function", "get", "(", "$", "key", ")", "{", "$", "key", "=", "strtolower", "(", "$", "key", ")", ";", "if", "(", "isset", "(", "$", "this", "->", "summoners", "[", "$", "key", "]", ")", ")", "{", "return", "$", "this", "->", "summon...
Attempt to get a summoner by key. @param string $key @return object|null
[ "Attempt", "to", "get", "a", "summoner", "by", "key", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L80-L89
221,636
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.info
public function info($identities) { $ids = []; $names = []; if (is_array($identities)) { foreach ($identities as $identity) { if (gettype($identity) === 'integer') { // it's the id $ids[] = $identity; } else { // the summoner name $names[] = $identity; } }...
php
public function info($identities) { $ids = []; $names = []; if (is_array($identities)) { foreach ($identities as $identity) { if (gettype($identity) === 'integer') { // it's the id $ids[] = $identity; } else { // the summoner name $names[] = $identity; } }...
[ "public", "function", "info", "(", "$", "identities", ")", "{", "$", "ids", "=", "[", "]", ";", "$", "names", "=", "[", "]", ";", "if", "(", "is_array", "(", "$", "identities", ")", ")", "{", "foreach", "(", "$", "identities", "as", "$", "identit...
Gets the information about the user by the given identification. IDs must be of type integer, otherwise, numeric string values will be assumed to be names. @param mixed $identities @return Dto\Summoner
[ "Gets", "the", "information", "about", "the", "user", "by", "the", "given", "identification", ".", "IDs", "must", "be", "of", "type", "integer", "otherwise", "numeric", "string", "values", "will", "be", "assumed", "to", "be", "names", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L98-L154
221,637
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.allInfo
public function allInfo($identities) { $summoners = $this->info($identities); $this->runePages($summoners); $this->masteryPages($summoners); return $summoners; }
php
public function allInfo($identities) { $summoners = $this->info($identities); $this->runePages($summoners); $this->masteryPages($summoners); return $summoners; }
[ "public", "function", "allInfo", "(", "$", "identities", ")", "{", "$", "summoners", "=", "$", "this", "->", "info", "(", "$", "identities", ")", ";", "$", "this", "->", "runePages", "(", "$", "summoners", ")", ";", "$", "this", "->", "masteryPages", ...
Attempts to get all information about this user. This method will make 3 requests! @param mixed $identities @return Dto\Summoner;
[ "Attempts", "to", "get", "all", "information", "about", "this", "user", ".", "This", "method", "will", "make", "3", "requests!" ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L163-L170
221,638
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.name
public function name($identities) { $ids = $this->extractIds($identities); $ids = implode(',', $ids); $array = $this->request('summoner/'.$ids.'/name'); $names = []; foreach ($array as $id => $name) { $names[$id] = $name; } return $names; }
php
public function name($identities) { $ids = $this->extractIds($identities); $ids = implode(',', $ids); $array = $this->request('summoner/'.$ids.'/name'); $names = []; foreach ($array as $id => $name) { $names[$id] = $name; } return $names; }
[ "public", "function", "name", "(", "$", "identities", ")", "{", "$", "ids", "=", "$", "this", "->", "extractIds", "(", "$", "identities", ")", ";", "$", "ids", "=", "implode", "(", "','", ",", "$", "ids", ")", ";", "$", "array", "=", "$", "this",...
Gets the name of each summoner from a list of ids. @param mixed $identities @return array
[ "Gets", "the", "name", "of", "each", "summoner", "from", "a", "list", "of", "ids", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L178-L191
221,639
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.runePages
public function runePages($identities) { $ids = $this->extractIds($identities); $ids = implode(',', $ids); $array = $this->request('summoner/'.$ids.'/runes'); $summoners = []; foreach ($array as $summonerId => $data) { $runePages = []; foreach ($data['pages'] as $info) { if ( ! isset($inf...
php
public function runePages($identities) { $ids = $this->extractIds($identities); $ids = implode(',', $ids); $array = $this->request('summoner/'.$ids.'/runes'); $summoners = []; foreach ($array as $summonerId => $data) { $runePages = []; foreach ($data['pages'] as $info) { if ( ! isset($inf...
[ "public", "function", "runePages", "(", "$", "identities", ")", "{", "$", "ids", "=", "$", "this", "->", "extractIds", "(", "$", "identities", ")", ";", "$", "ids", "=", "implode", "(", "','", ",", "$", "ids", ")", ";", "$", "array", "=", "$", "t...
Gets all rune pages of the given user object or id. @param mixed $identities @return array
[ "Gets", "all", "rune", "pages", "of", "the", "given", "user", "object", "or", "id", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L199-L246
221,640
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.masteryPages
public function masteryPages($identities) { $ids = $this->extractIds($identities); $ids = implode(',', $ids); $array = $this->request('summoner/'.$ids.'/masteries'); $summoners = []; foreach ($array as $summonerId => $data) { $masteryPages = []; foreach ($data['pages'] as $info) { if ( ! ...
php
public function masteryPages($identities) { $ids = $this->extractIds($identities); $ids = implode(',', $ids); $array = $this->request('summoner/'.$ids.'/masteries'); $summoners = []; foreach ($array as $summonerId => $data) { $masteryPages = []; foreach ($data['pages'] as $info) { if ( ! ...
[ "public", "function", "masteryPages", "(", "$", "identities", ")", "{", "$", "ids", "=", "$", "this", "->", "extractIds", "(", "$", "identities", ")", ";", "$", "ids", "=", "implode", "(", "','", ",", "$", "ids", ")", ";", "$", "array", "=", "$", ...
Gets all the mastery pages of the given user object or id. @param mixed $identities @return array
[ "Gets", "all", "the", "mastery", "pages", "of", "the", "given", "user", "object", "or", "id", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L254-L299
221,641
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.infoByIds
protected function infoByIds($ids) { if (count($ids) > 40) { throw new ListMaxException('This request can only support a list of 40 elements, '.count($ids).' given.'); } $idList = implode(',', $ids); $array = $this->request('summoner/'.$idList); $summoners = []; foreach ($array as $info) { $...
php
protected function infoByIds($ids) { if (count($ids) > 40) { throw new ListMaxException('This request can only support a list of 40 elements, '.count($ids).' given.'); } $idList = implode(',', $ids); $array = $this->request('summoner/'.$idList); $summoners = []; foreach ($array as $info) { $...
[ "protected", "function", "infoByIds", "(", "$", "ids", ")", "{", "if", "(", "count", "(", "$", "ids", ")", ">", "40", ")", "{", "throw", "new", "ListMaxException", "(", "'This request can only support a list of 40 elements, '", ".", "count", "(", "$", "ids", ...
Gets the information by the id of the summoner. @param array $ids @return Dto\Summoner|Dto\Summoner[]; @throws ListMaxException
[ "Gets", "the", "information", "by", "the", "id", "of", "the", "summoner", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L308-L327
221,642
paquettg/leaguewrap
src/LeagueWrap/Api/Summoner.php
Summoner.infoByNames
protected function infoByNames(array $names) { if (count($names) > 40) { throw new ListMaxException('this request can only support a list of 40 elements, '.count($names).' given.'); } $nameList = implode(',', $names); // clean the name $nameList = htmlspecialchars($nameList); $array = $this->req...
php
protected function infoByNames(array $names) { if (count($names) > 40) { throw new ListMaxException('this request can only support a list of 40 elements, '.count($names).' given.'); } $nameList = implode(',', $names); // clean the name $nameList = htmlspecialchars($nameList); $array = $this->req...
[ "protected", "function", "infoByNames", "(", "array", "$", "names", ")", "{", "if", "(", "count", "(", "$", "names", ")", ">", "40", ")", "{", "throw", "new", "ListMaxException", "(", "'this request can only support a list of 40 elements, '", ".", "count", "(", ...
Gets the information by the name of the summoner. @param array $names @return Dto\Summoner|Dto\Summoner[]; @throws ListMaxException
[ "Gets", "the", "information", "by", "the", "name", "of", "the", "summoner", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Api/Summoner.php#L336-L360
221,643
neos/fluid
Classes/TYPO3/Fluid/Core/Parser/Configuration.php
Configuration.addInterceptorToArray
protected function addInterceptorToArray(InterceptorInterface $interceptor, array &$interceptorArray) { foreach ($interceptor->getInterceptionPoints() as $interceptionPoint) { if (!isset($interceptorArray[$interceptionPoint])) { $interceptorArray[$interceptionPoint] = new \SplObj...
php
protected function addInterceptorToArray(InterceptorInterface $interceptor, array &$interceptorArray) { foreach ($interceptor->getInterceptionPoints() as $interceptionPoint) { if (!isset($interceptorArray[$interceptionPoint])) { $interceptorArray[$interceptionPoint] = new \SplObj...
[ "protected", "function", "addInterceptorToArray", "(", "InterceptorInterface", "$", "interceptor", ",", "array", "&", "$", "interceptorArray", ")", "{", "foreach", "(", "$", "interceptor", "->", "getInterceptionPoints", "(", ")", "as", "$", "interceptionPoint", ")",...
Adds an interceptor to apply to values coming from object accessors. @param InterceptorInterface $interceptor @param array $interceptorArray @return void
[ "Adds", "an", "interceptor", "to", "apply", "to", "values", "coming", "from", "object", "accessors", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Parser/Configuration.php#L64-L76
221,644
neos/fluid
Classes/TYPO3/Fluid/Core/Parser/Configuration.php
Configuration.getInterceptors
public function getInterceptors($interceptionPoint) { return isset($this->interceptors[$interceptionPoint]) ? $this->interceptors[$interceptionPoint] : new \SplObjectStorage(); }
php
public function getInterceptors($interceptionPoint) { return isset($this->interceptors[$interceptionPoint]) ? $this->interceptors[$interceptionPoint] : new \SplObjectStorage(); }
[ "public", "function", "getInterceptors", "(", "$", "interceptionPoint", ")", "{", "return", "isset", "(", "$", "this", "->", "interceptors", "[", "$", "interceptionPoint", "]", ")", "?", "$", "this", "->", "interceptors", "[", "$", "interceptionPoint", "]", ...
Returns all interceptors for a given Interception Point. @param integer $interceptionPoint one of the \TYPO3\Fluid\Core\Parser\InterceptorInterface::INTERCEPT_* constants, @return \SplObjectStorage<\TYPO3\Fluid\Core\Parser\InterceptorInterface>
[ "Returns", "all", "interceptors", "for", "a", "given", "Interception", "Point", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Parser/Configuration.php#L84-L87
221,645
neos/fluid
Classes/TYPO3/Fluid/Core/Parser/Configuration.php
Configuration.getEscapingInterceptors
public function getEscapingInterceptors($interceptionPoint) { return isset($this->escapingInterceptors[$interceptionPoint]) ? $this->escapingInterceptors[$interceptionPoint] : new \SplObjectStorage(); }
php
public function getEscapingInterceptors($interceptionPoint) { return isset($this->escapingInterceptors[$interceptionPoint]) ? $this->escapingInterceptors[$interceptionPoint] : new \SplObjectStorage(); }
[ "public", "function", "getEscapingInterceptors", "(", "$", "interceptionPoint", ")", "{", "return", "isset", "(", "$", "this", "->", "escapingInterceptors", "[", "$", "interceptionPoint", "]", ")", "?", "$", "this", "->", "escapingInterceptors", "[", "$", "inter...
Returns all escaping interceptors for a given Interception Point. @param integer $interceptionPoint one of the \TYPO3\Fluid\Core\Parser\InterceptorInterface::INTERCEPT_* constants, @return \SplObjectStorage<\TYPO3\Fluid\Core\Parser\InterceptorInterface>
[ "Returns", "all", "escaping", "interceptors", "for", "a", "given", "Interception", "Point", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/Parser/Configuration.php#L95-L98
221,646
neos/fluid
Classes/TYPO3/Fluid/ViewHelpers/CountViewHelper.php
CountViewHelper.render
public function render($subject = null) { if ($subject === null) { $subject = $this->renderChildren(); } if (is_object($subject) && !$subject instanceof \Countable) { throw new ViewHelper\Exception('CountViewHelper only supports arrays and objects implementing \Counta...
php
public function render($subject = null) { if ($subject === null) { $subject = $this->renderChildren(); } if (is_object($subject) && !$subject instanceof \Countable) { throw new ViewHelper\Exception('CountViewHelper only supports arrays and objects implementing \Counta...
[ "public", "function", "render", "(", "$", "subject", "=", "null", ")", "{", "if", "(", "$", "subject", "===", "null", ")", "{", "$", "subject", "=", "$", "this", "->", "renderChildren", "(", ")", ";", "}", "if", "(", "is_object", "(", "$", "subject...
Counts the items of a given property. @param array|\Countable $subject The array or \Countable to be counted @return integer The number of elements @throws ViewHelper\Exception @api
[ "Counts", "the", "items", "of", "a", "given", "property", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/ViewHelpers/CountViewHelper.php#L58-L67
221,647
radphp/radphp
src/Network/Http/Response/JsonResponse.php
JsonResponse.throwJsonException
protected function throwJsonException() { if (JSON_ERROR_NONE === json_last_error()) { return; } switch (json_last_error()) { case JSON_ERROR_DEPTH: $error = 'The maximum stack depth has been exceeded'; break; case JSON_ER...
php
protected function throwJsonException() { if (JSON_ERROR_NONE === json_last_error()) { return; } switch (json_last_error()) { case JSON_ERROR_DEPTH: $error = 'The maximum stack depth has been exceeded'; break; case JSON_ER...
[ "protected", "function", "throwJsonException", "(", ")", "{", "if", "(", "JSON_ERROR_NONE", "===", "json_last_error", "(", ")", ")", "{", "return", ";", "}", "switch", "(", "json_last_error", "(", ")", ")", "{", "case", "JSON_ERROR_DEPTH", ":", "$", "error",...
Throw Json exception
[ "Throw", "Json", "exception" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Http/Response/JsonResponse.php#L53-L98
221,648
paquettg/leaguewrap
src/LeagueWrap/Region.php
Region.isLocked
public function isLocked(array $regions) { if (count($regions) == 0) { // no regions are locked from this call. return true; } foreach ($regions as $region) { if ($this->region == strtolower($region)) { // the region is fine return false; } } // the region was not found return ...
php
public function isLocked(array $regions) { if (count($regions) == 0) { // no regions are locked from this call. return true; } foreach ($regions as $region) { if ($this->region == strtolower($region)) { // the region is fine return false; } } // the region was not found return ...
[ "public", "function", "isLocked", "(", "array", "$", "regions", ")", "{", "if", "(", "count", "(", "$", "regions", ")", "==", "0", ")", "{", "// no regions are locked from this call.", "return", "true", ";", "}", "foreach", "(", "$", "regions", "as", "$", ...
Determines wether the given region is locked out. @param array $regions @return bool
[ "Determines", "wether", "the", "given", "region", "is", "locked", "out", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Region.php#L127-L146
221,649
radphp/radphp
src/Authorization/Rbac/ResourceCollection.php
ResourceCollection.add
public function add(ResourceInterface $resource) { $this->resources[$resource->getName()] = $resource; $this->indexes[] = $resource->getName(); return $this; }
php
public function add(ResourceInterface $resource) { $this->resources[$resource->getName()] = $resource; $this->indexes[] = $resource->getName(); return $this; }
[ "public", "function", "add", "(", "ResourceInterface", "$", "resource", ")", "{", "$", "this", "->", "resources", "[", "$", "resource", "->", "getName", "(", ")", "]", "=", "$", "resource", ";", "$", "this", "->", "indexes", "[", "]", "=", "$", "reso...
Adds a resource in the collection @param ResourceInterface $resource The Resource to add. @return self
[ "Adds", "a", "resource", "in", "the", "collection" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Authorization/Rbac/ResourceCollection.php#L68-L74
221,650
radphp/radphp
src/Authorization/Rbac/ResourceCollection.php
ResourceCollection.remove
public function remove($resource) { $resourceName = $this->getResourceName($resource); $index = array_search($resourceName, $this->indexes, true); if (false !== $index) { unset($this->indexes[$index]); unset($this->resources[$resourceName]); return true;...
php
public function remove($resource) { $resourceName = $this->getResourceName($resource); $index = array_search($resourceName, $this->indexes, true); if (false !== $index) { unset($this->indexes[$index]); unset($this->resources[$resourceName]); return true;...
[ "public", "function", "remove", "(", "$", "resource", ")", "{", "$", "resourceName", "=", "$", "this", "->", "getResourceName", "(", "$", "resource", ")", ";", "$", "index", "=", "array_search", "(", "$", "resourceName", ",", "$", "this", "->", "indexes"...
Removes an resource from the collection @param ResourceInterface|string $resource The object or resource name to remove. @return bool If resource exists remove it and return true otherwise return false.
[ "Removes", "an", "resource", "from", "the", "collection" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Authorization/Rbac/ResourceCollection.php#L123-L136
221,651
radphp/radphp
src/Network/Session/SessionBag.php
SessionBag.initialize
public function initialize() { if (false === $this->initialized) { if (!$this->container) { throw new Exception('A container object is required to access the \'session\' service.'); } $this->session = $this->container->get('session'); $this->d...
php
public function initialize() { if (false === $this->initialized) { if (!$this->container) { throw new Exception('A container object is required to access the \'session\' service.'); } $this->session = $this->container->get('session'); $this->d...
[ "public", "function", "initialize", "(", ")", "{", "if", "(", "false", "===", "$", "this", "->", "initialized", ")", "{", "if", "(", "!", "$", "this", "->", "container", ")", "{", "throw", "new", "Exception", "(", "'A container object is required to access t...
Initialize session bag @throws Exception @throws \Rad\DependencyInjection\Exception\ServiceNotFoundException
[ "Initialize", "session", "bag" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Session/SessionBag.php#L68-L80
221,652
radphp/radphp
src/Network/Session/SessionBag.php
SessionBag.set
public function set($key, $value) { $this->initialize(); $ids = explode('.', $key); $base = &$this->data; while ($current = array_shift($ids)) { if (is_array($base) && array_key_exists($current, $base)) { $base = &$base[$current]; } else { ...
php
public function set($key, $value) { $this->initialize(); $ids = explode('.', $key); $base = &$this->data; while ($current = array_shift($ids)) { if (is_array($base) && array_key_exists($current, $base)) { $base = &$base[$current]; } else { ...
[ "public", "function", "set", "(", "$", "key", ",", "$", "value", ")", "{", "$", "this", "->", "initialize", "(", ")", ";", "$", "ids", "=", "explode", "(", "'.'", ",", "$", "key", ")", ";", "$", "base", "=", "&", "$", "this", "->", "data", ";...
Set in bag @param string $key @param mixed $value @throws Exception
[ "Set", "in", "bag" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Session/SessionBag.php#L90-L108
221,653
radphp/radphp
src/Network/Session/SessionBag.php
SessionBag.get
public function get($key) { $this->initialize(); $ids = explode('.', $key); $base = &$this->data; while ($current = array_shift($ids)) { if (is_array($base) && array_key_exists($current, $base)) { $base = &$base[$current]; } else { ...
php
public function get($key) { $this->initialize(); $ids = explode('.', $key); $base = &$this->data; while ($current = array_shift($ids)) { if (is_array($base) && array_key_exists($current, $base)) { $base = &$base[$current]; } else { ...
[ "public", "function", "get", "(", "$", "key", ")", "{", "$", "this", "->", "initialize", "(", ")", ";", "$", "ids", "=", "explode", "(", "'.'", ",", "$", "key", ")", ";", "$", "base", "=", "&", "$", "this", "->", "data", ";", "while", "(", "$...
Get from bag @param string $key @return array|null @throws Exception
[ "Get", "from", "bag" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Session/SessionBag.php#L118-L134
221,654
radphp/radphp
src/AbstractApplication.php
AbstractApplication.handleWeb
public function handleWeb(ServerRequestInterface $request) { $this->container->set('request', $request); /** @var Router $router */ $router = $this->container->get('router'); $router->handle(); $dispatcher = new Dispatcher(); $response = $dispatcher->setAction($rout...
php
public function handleWeb(ServerRequestInterface $request) { $this->container->set('request', $request); /** @var Router $router */ $router = $this->container->get('router'); $router->handle(); $dispatcher = new Dispatcher(); $response = $dispatcher->setAction($rout...
[ "public", "function", "handleWeb", "(", "ServerRequestInterface", "$", "request", ")", "{", "$", "this", "->", "container", "->", "set", "(", "'request'", ",", "$", "request", ")", ";", "/** @var Router $router */", "$", "router", "=", "$", "this", "->", "co...
Handle Web Request @param ServerRequestInterface $request @throws BaseException @throws DependencyInjection\Exception\ServiceLockedException @throws DependencyInjection\Exception\ServiceNotFoundException @throws NotFoundException @throws Response\Exception
[ "Handle", "Web", "Request" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/AbstractApplication.php#L111-L133
221,655
radphp/radphp
src/AbstractApplication.php
AbstractApplication.handleCli
public function handleCli($argv) { if (!$this->run) { if (!(count($argv) >= 2)) { return; } $route = str_replace(':', '/', $argv[1]); unset($argv[0]); $this->getRouter()->handle($route); $this->callCli(array_values($ar...
php
public function handleCli($argv) { if (!$this->run) { if (!(count($argv) >= 2)) { return; } $route = str_replace(':', '/', $argv[1]); unset($argv[0]); $this->getRouter()->handle($route); $this->callCli(array_values($ar...
[ "public", "function", "handleCli", "(", "$", "argv", ")", "{", "if", "(", "!", "$", "this", "->", "run", ")", "{", "if", "(", "!", "(", "count", "(", "$", "argv", ")", ">=", "2", ")", ")", "{", "return", ";", "}", "$", "route", "=", "str_repl...
Run application in cli request @param $argv @throws BaseException @throws MissingMethodException
[ "Run", "application", "in", "cli", "request" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/AbstractApplication.php#L143-L159
221,656
radphp/radphp
src/AbstractApplication.php
AbstractApplication.loadConfig
private function loadConfig() { $appBundle = null; $this->getEventManager()->dispatch(self::EVENT_BEFORE_LOAD_CONFIG, $this); foreach ($this->registerBundles() as $bundle) { if ($bundle instanceof \App\AppBundle) { $appBundle = $bundle; continue; ...
php
private function loadConfig() { $appBundle = null; $this->getEventManager()->dispatch(self::EVENT_BEFORE_LOAD_CONFIG, $this); foreach ($this->registerBundles() as $bundle) { if ($bundle instanceof \App\AppBundle) { $appBundle = $bundle; continue; ...
[ "private", "function", "loadConfig", "(", ")", "{", "$", "appBundle", "=", "null", ";", "$", "this", "->", "getEventManager", "(", ")", "->", "dispatch", "(", "self", "::", "EVENT_BEFORE_LOAD_CONFIG", ",", "$", "this", ")", ";", "foreach", "(", "$", "thi...
Load config from bundles @throws BaseException
[ "Load", "config", "from", "bundles" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/AbstractApplication.php#L261-L281
221,657
radphp/radphp
src/AbstractApplication.php
AbstractApplication.loadService
private function loadService() { $this->getEventManager()->dispatch(self::EVENT_BEFORE_LOAD_SERVICE, $this); foreach ($this->registerBundles() as $bundle) { $bundle->loadService(); } $this->getEventManager()->dispatch(self::EVENT_AFTER_LOAD_SERVICE, $this); }
php
private function loadService() { $this->getEventManager()->dispatch(self::EVENT_BEFORE_LOAD_SERVICE, $this); foreach ($this->registerBundles() as $bundle) { $bundle->loadService(); } $this->getEventManager()->dispatch(self::EVENT_AFTER_LOAD_SERVICE, $this); }
[ "private", "function", "loadService", "(", ")", "{", "$", "this", "->", "getEventManager", "(", ")", "->", "dispatch", "(", "self", "::", "EVENT_BEFORE_LOAD_SERVICE", ",", "$", "this", ")", ";", "foreach", "(", "$", "this", "->", "registerBundles", "(", ")...
Load services from bundles
[ "Load", "services", "from", "bundles" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/AbstractApplication.php#L286-L295
221,658
radphp/radphp
src/AbstractApplication.php
AbstractApplication.loadServicesFromConfig
protected function loadServicesFromConfig() { foreach (Config::get('services', []) as $name => $service) { $service += [ 'shared' => false, 'locked' => false, 'definition' => [] ]; $this->container->set($name, $service['def...
php
protected function loadServicesFromConfig() { foreach (Config::get('services', []) as $name => $service) { $service += [ 'shared' => false, 'locked' => false, 'definition' => [] ]; $this->container->set($name, $service['def...
[ "protected", "function", "loadServicesFromConfig", "(", ")", "{", "foreach", "(", "Config", "::", "get", "(", "'services'", ",", "[", "]", ")", "as", "$", "name", "=>", "$", "service", ")", "{", "$", "service", "+=", "[", "'shared'", "=>", "false", ","...
Load services from config @throws DependencyInjection\Exception\ServiceLockedException
[ "Load", "services", "from", "config" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/AbstractApplication.php#L302-L313
221,659
neos/fluid
Classes/TYPO3/Fluid/ViewHelpers/Form/UploadViewHelper.php
UploadViewHelper.render
public function render() { $nameAttribute = $this->getName(); $this->registerFieldNameForFormTokenGeneration($nameAttribute); $output = ''; $resource = $this->getUploadedResource(); if ($resource !== null) { $resourceIdentityAttribute = ''; if ($this-...
php
public function render() { $nameAttribute = $this->getName(); $this->registerFieldNameForFormTokenGeneration($nameAttribute); $output = ''; $resource = $this->getUploadedResource(); if ($resource !== null) { $resourceIdentityAttribute = ''; if ($this-...
[ "public", "function", "render", "(", ")", "{", "$", "nameAttribute", "=", "$", "this", "->", "getName", "(", ")", ";", "$", "this", "->", "registerFieldNameForFormTokenGeneration", "(", "$", "nameAttribute", ")", ";", "$", "output", "=", "''", ";", "$", ...
Renders the upload field. @return string @api
[ "Renders", "the", "upload", "field", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/ViewHelpers/Form/UploadViewHelper.php#L96-L123
221,660
mediamonks/php-rest-api
src/EventSubscriber/RestApiEventSubscriber.php
RestApiEventSubscriber.onException
public function onException(GetResponseForExceptionEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $event->setResponse($this->responseTransformer->createResponseFromContent($event->getException())); }
php
public function onException(GetResponseForExceptionEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $event->setResponse($this->responseTransformer->createResponseFromContent($event->getException())); }
[ "public", "function", "onException", "(", "GetResponseForExceptionEvent", "$", "event", ")", "{", "if", "(", "!", "$", "this", "->", "eventRequestMatches", "(", "$", "event", ")", ")", "{", "return", ";", "}", "$", "event", "->", "setResponse", "(", "$", ...
convert exception to rest api response @param GetResponseForExceptionEvent $event
[ "convert", "exception", "to", "rest", "api", "response" ]
96253c974238771ec3229c9a09a561c83c484c00
https://github.com/mediamonks/php-rest-api/blob/96253c974238771ec3229c9a09a561c83c484c00/src/EventSubscriber/RestApiEventSubscriber.php#L86-L92
221,661
mediamonks/php-rest-api
src/EventSubscriber/RestApiEventSubscriber.php
RestApiEventSubscriber.onView
public function onView(GetResponseForControllerResultEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $event->setResponse($this->responseTransformer->createResponseFromContent($event->getControllerResult())); }
php
public function onView(GetResponseForControllerResultEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $event->setResponse($this->responseTransformer->createResponseFromContent($event->getControllerResult())); }
[ "public", "function", "onView", "(", "GetResponseForControllerResultEvent", "$", "event", ")", "{", "if", "(", "!", "$", "this", "->", "eventRequestMatches", "(", "$", "event", ")", ")", "{", "return", ";", "}", "$", "event", "->", "setResponse", "(", "$",...
convert response to rest api response @param GetResponseForControllerResultEvent $event
[ "convert", "response", "to", "rest", "api", "response" ]
96253c974238771ec3229c9a09a561c83c484c00
https://github.com/mediamonks/php-rest-api/blob/96253c974238771ec3229c9a09a561c83c484c00/src/EventSubscriber/RestApiEventSubscriber.php#L99-L105
221,662
mediamonks/php-rest-api
src/EventSubscriber/RestApiEventSubscriber.php
RestApiEventSubscriber.onResponseEarly
public function onResponseEarly(FilterResponseEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $event->setResponse($this->responseTransformer->transformEarly($event->getRequest(), $event->getResponse())); }
php
public function onResponseEarly(FilterResponseEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $event->setResponse($this->responseTransformer->transformEarly($event->getRequest(), $event->getResponse())); }
[ "public", "function", "onResponseEarly", "(", "FilterResponseEvent", "$", "event", ")", "{", "if", "(", "!", "$", "this", "->", "eventRequestMatches", "(", "$", "event", ")", ")", "{", "return", ";", "}", "$", "event", "->", "setResponse", "(", "$", "thi...
converts content to correct output format @param FilterResponseEvent $event
[ "converts", "content", "to", "correct", "output", "format" ]
96253c974238771ec3229c9a09a561c83c484c00
https://github.com/mediamonks/php-rest-api/blob/96253c974238771ec3229c9a09a561c83c484c00/src/EventSubscriber/RestApiEventSubscriber.php#L112-L118
221,663
mediamonks/php-rest-api
src/EventSubscriber/RestApiEventSubscriber.php
RestApiEventSubscriber.onResponseLate
public function onResponseLate(FilterResponseEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $this->responseTransformer->transformLate($event->getRequest(), $event->getResponse()); }
php
public function onResponseLate(FilterResponseEvent $event) { if (!$this->eventRequestMatches($event)) { return; } $this->responseTransformer->transformLate($event->getRequest(), $event->getResponse()); }
[ "public", "function", "onResponseLate", "(", "FilterResponseEvent", "$", "event", ")", "{", "if", "(", "!", "$", "this", "->", "eventRequestMatches", "(", "$", "event", ")", ")", "{", "return", ";", "}", "$", "this", "->", "responseTransformer", "->", "tra...
wrap the content if needed @param FilterResponseEvent $event
[ "wrap", "the", "content", "if", "needed" ]
96253c974238771ec3229c9a09a561c83c484c00
https://github.com/mediamonks/php-rest-api/blob/96253c974238771ec3229c9a09a561c83c484c00/src/EventSubscriber/RestApiEventSubscriber.php#L125-L131
221,664
radphp/radphp
src/Network/Http/Cookie.php
Cookie.send
public function send() { if ($this->useEncryption && !empty($this->value)) { $value = $this->encrypt($this->value); } else { $value = $this->value; } setcookie($this->name, $value, $this->expire, $this->path, $this->domain, $this->secure, $this->httpOnly); ...
php
public function send() { if ($this->useEncryption && !empty($this->value)) { $value = $this->encrypt($this->value); } else { $value = $this->value; } setcookie($this->name, $value, $this->expire, $this->path, $this->domain, $this->secure, $this->httpOnly); ...
[ "public", "function", "send", "(", ")", "{", "if", "(", "$", "this", "->", "useEncryption", "&&", "!", "empty", "(", "$", "this", "->", "value", ")", ")", "{", "$", "value", "=", "$", "this", "->", "encrypt", "(", "$", "this", "->", "value", ")",...
Sends the cookie to the HTTP client Stores the cookie definition in session @return Cookie
[ "Sends", "the", "cookie", "to", "the", "HTTP", "client", "Stores", "the", "cookie", "definition", "in", "session" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Http/Cookie.php#L150-L161
221,665
radphp/radphp
src/Network/Http/Cookie.php
Cookie.delete
public function delete() { return setcookie( $this->name, null, 1, $this->path, $this->domain, $this->secure, $this->httpOnly ); }
php
public function delete() { return setcookie( $this->name, null, 1, $this->path, $this->domain, $this->secure, $this->httpOnly ); }
[ "public", "function", "delete", "(", ")", "{", "return", "setcookie", "(", "$", "this", "->", "name", ",", "null", ",", "1", ",", "$", "this", "->", "path", ",", "$", "this", "->", "domain", ",", "$", "this", "->", "secure", ",", "$", "this", "->...
Deletes the cookie by setting an expire time in the past @return bool
[ "Deletes", "the", "cookie", "by", "setting", "an", "expire", "time", "in", "the", "past" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Http/Cookie.php#L168-L179
221,666
radphp/radphp
src/Network/Http/Cookie.php
Cookie.encrypt
protected function encrypt($string) { $iv = mcrypt_create_iv(mcrypt_get_iv_size($this->cipher, $this->cipherMode), MCRYPT_RAND); return mcrypt_encrypt($this->cipher, $this->secretKey, $string, $this->cipherMode, $iv); }
php
protected function encrypt($string) { $iv = mcrypt_create_iv(mcrypt_get_iv_size($this->cipher, $this->cipherMode), MCRYPT_RAND); return mcrypt_encrypt($this->cipher, $this->secretKey, $string, $this->cipherMode, $iv); }
[ "protected", "function", "encrypt", "(", "$", "string", ")", "{", "$", "iv", "=", "mcrypt_create_iv", "(", "mcrypt_get_iv_size", "(", "$", "this", "->", "cipher", ",", "$", "this", "->", "cipherMode", ")", ",", "MCRYPT_RAND", ")", ";", "return", "mcrypt_en...
Encrypt cookie value @param string $string @return string
[ "Encrypt", "cookie", "value" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Http/Cookie.php#L342-L347
221,667
radphp/radphp
src/Network/Http/Cookie.php
Cookie.decrypt
protected function decrypt($encryptedString) { $iv = mcrypt_create_iv(mcrypt_get_iv_size($this->cipher, $this->cipherMode), MCRYPT_RAND); return mcrypt_decrypt($this->cipher, $this->secretKey, $encryptedString, $this->cipherMode, $iv); }
php
protected function decrypt($encryptedString) { $iv = mcrypt_create_iv(mcrypt_get_iv_size($this->cipher, $this->cipherMode), MCRYPT_RAND); return mcrypt_decrypt($this->cipher, $this->secretKey, $encryptedString, $this->cipherMode, $iv); }
[ "protected", "function", "decrypt", "(", "$", "encryptedString", ")", "{", "$", "iv", "=", "mcrypt_create_iv", "(", "mcrypt_get_iv_size", "(", "$", "this", "->", "cipher", ",", "$", "this", "->", "cipherMode", ")", ",", "MCRYPT_RAND", ")", ";", "return", "...
Decrypt cookie value @param string $encryptedString @return string
[ "Decrypt", "cookie", "value" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Network/Http/Cookie.php#L356-L361
221,668
radphp/radphp
src/Authorization/Rbac.php
Rbac.addRole
public function addRole($role, array $resources = []) { if ($role instanceof RoleInterface) { $this->roles[$role->getName()] = $role; } else { $role = new Role($role, $resources); $this->roles[$role->getName()] = $role; } }
php
public function addRole($role, array $resources = []) { if ($role instanceof RoleInterface) { $this->roles[$role->getName()] = $role; } else { $role = new Role($role, $resources); $this->roles[$role->getName()] = $role; } }
[ "public", "function", "addRole", "(", "$", "role", ",", "array", "$", "resources", "=", "[", "]", ")", "{", "if", "(", "$", "role", "instanceof", "RoleInterface", ")", "{", "$", "this", "->", "roles", "[", "$", "role", "->", "getName", "(", ")", "]...
Add role override if exists @param RoleInterface|string $role Role name or object @param ResourceCollection|array $resources Role resources
[ "Add", "role", "override", "if", "exists" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Authorization/Rbac.php#L31-L39
221,669
radphp/radphp
src/Authorization/Rbac.php
Rbac.hasRole
public function hasRole($role) { if ($role instanceof RoleInterface) { $role = $role->getName(); } if (!is_string($role)) { throw new InvalidArgumentException( 'Role argument must be string or an object implemented "Rad\Authorization\Rbac\RoleInterfac...
php
public function hasRole($role) { if ($role instanceof RoleInterface) { $role = $role->getName(); } if (!is_string($role)) { throw new InvalidArgumentException( 'Role argument must be string or an object implemented "Rad\Authorization\Rbac\RoleInterfac...
[ "public", "function", "hasRole", "(", "$", "role", ")", "{", "if", "(", "$", "role", "instanceof", "RoleInterface", ")", "{", "$", "role", "=", "$", "role", "->", "getName", "(", ")", ";", "}", "if", "(", "!", "is_string", "(", "$", "role", ")", ...
Has role exists @param RoleInterface|string $role Role name or object @return bool
[ "Has", "role", "exists" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Authorization/Rbac.php#L64-L77
221,670
radphp/radphp
src/Authorization/Rbac.php
Rbac.isGranted
public function isGranted($resource) { foreach ($this->roles as $role) { if (true === $role->hasResource($resource)) { return true; } } return false; }
php
public function isGranted($resource) { foreach ($this->roles as $role) { if (true === $role->hasResource($resource)) { return true; } } return false; }
[ "public", "function", "isGranted", "(", "$", "resource", ")", "{", "foreach", "(", "$", "this", "->", "roles", "as", "$", "role", ")", "{", "if", "(", "true", "===", "$", "role", "->", "hasResource", "(", "$", "resource", ")", ")", "{", "return", "...
User is granted @param ResourceInterface|string $resource Resource name or object @return bool
[ "User", "is", "granted" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Authorization/Rbac.php#L86-L95
221,671
radphp/radphp
src/DependencyInjection/DefinitionResolver.php
DefinitionResolver.fromArray
protected function fromArray(array $definition) { $definition += $this->defaultDefinition; $refClass = new ReflectionClass($definition['class']); $instance = $refClass->newInstanceArgs(self::parseArguments($definition['arguments'])); foreach ($definition['call'] as $methodName => $...
php
protected function fromArray(array $definition) { $definition += $this->defaultDefinition; $refClass = new ReflectionClass($definition['class']); $instance = $refClass->newInstanceArgs(self::parseArguments($definition['arguments'])); foreach ($definition['call'] as $methodName => $...
[ "protected", "function", "fromArray", "(", "array", "$", "definition", ")", "{", "$", "definition", "+=", "$", "this", "->", "defaultDefinition", ";", "$", "refClass", "=", "new", "ReflectionClass", "(", "$", "definition", "[", "'class'", "]", ")", ";", "$...
Load definition from array @param array $definition @return object
[ "Load", "definition", "from", "array" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/DependencyInjection/DefinitionResolver.php#L71-L84
221,672
twizoapi/lib-api-php
src/AbstractClient.php
AbstractClient.generateResponse
protected function generateResponse($statusCode, $json) { if (empty($json) && $statusCode == Response::REST_SUCCESS_NO_CONTENT) { return new Response(array(), $statusCode); } else { $body = json_decode($json, true); if ($body == null) { throw new C...
php
protected function generateResponse($statusCode, $json) { if (empty($json) && $statusCode == Response::REST_SUCCESS_NO_CONTENT) { return new Response(array(), $statusCode); } else { $body = json_decode($json, true); if ($body == null) { throw new C...
[ "protected", "function", "generateResponse", "(", "$", "statusCode", ",", "$", "json", ")", "{", "if", "(", "empty", "(", "$", "json", ")", "&&", "$", "statusCode", "==", "Response", "::", "REST_SUCCESS_NO_CONTENT", ")", "{", "return", "new", "Response", "...
Decode json array and convert it to an array @param int $statusCode @param string $json @return Response @throws ClientException
[ "Decode", "json", "array", "and", "convert", "it", "to", "an", "array" ]
2e545d859784184138332c9b5bfc063940e3c926
https://github.com/twizoapi/lib-api-php/blob/2e545d859784184138332c9b5bfc063940e3c926/src/AbstractClient.php#L55-L69
221,673
twizoapi/lib-api-php
src/AbstractClient.php
AbstractClient.validateServerResponse
protected function validateServerResponse(Response $response) { switch ($response->getStatusCode()) { case Response::REST_CLIENT_ERROR_UNAUTHORIZED: throw new ClientException('You have provided an invalid API key', ClientException::INVALID_APPLICATION_SECRET, $response); ...
php
protected function validateServerResponse(Response $response) { switch ($response->getStatusCode()) { case Response::REST_CLIENT_ERROR_UNAUTHORIZED: throw new ClientException('You have provided an invalid API key', ClientException::INVALID_APPLICATION_SECRET, $response); ...
[ "protected", "function", "validateServerResponse", "(", "Response", "$", "response", ")", "{", "switch", "(", "$", "response", "->", "getStatusCode", "(", ")", ")", "{", "case", "Response", "::", "REST_CLIENT_ERROR_UNAUTHORIZED", ":", "throw", "new", "ClientExcept...
Validate response from server @param Response $response @throws ClientException
[ "Validate", "response", "from", "server" ]
2e545d859784184138332c9b5bfc063940e3c926
https://github.com/twizoapi/lib-api-php/blob/2e545d859784184138332c9b5bfc063940e3c926/src/AbstractClient.php#L119-L162
221,674
paquettg/leaguewrap
src/LeagueWrap/Client.php
Client.addMock
public function addMock($mock) { // Replace the current guzzle client with the mocked version $this->guzzle = $this->buildGuzzle( $this->guzzle->getConfig()['base_uri'], $mock ); }
php
public function addMock($mock) { // Replace the current guzzle client with the mocked version $this->guzzle = $this->buildGuzzle( $this->guzzle->getConfig()['base_uri'], $mock ); }
[ "public", "function", "addMock", "(", "$", "mock", ")", "{", "// Replace the current guzzle client with the mocked version", "$", "this", "->", "guzzle", "=", "$", "this", "->", "buildGuzzle", "(", "$", "this", "->", "guzzle", "->", "getConfig", "(", ")", "[", ...
Attempt to add a mocked handler stack to guzzle, primary usage is to be able to test this code. @param \GuzzleHttp\HandlerStack $mock @return void
[ "Attempt", "to", "add", "a", "mocked", "handler", "stack", "to", "guzzle", "primary", "usage", "is", "to", "be", "able", "to", "test", "this", "code", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Client.php#L58-L65
221,675
paquettg/leaguewrap
src/LeagueWrap/Client.php
Client.request
public function request($path, array $params = []) { if ( ! $this->guzzle instanceof Guzzle) { throw new BaseUrlException('BaseUrl was never set. Please call baseUrl($url).'); } $uri = $path.'?'.http_build_query($params); $response = $this->guzzle ->get($uri, ['timeout' => $this->timeout, ...
php
public function request($path, array $params = []) { if ( ! $this->guzzle instanceof Guzzle) { throw new BaseUrlException('BaseUrl was never set. Please call baseUrl($url).'); } $uri = $path.'?'.http_build_query($params); $response = $this->guzzle ->get($uri, ['timeout' => $this->timeout, ...
[ "public", "function", "request", "(", "$", "path", ",", "array", "$", "params", "=", "[", "]", ")", "{", "if", "(", "!", "$", "this", "->", "guzzle", "instanceof", "Guzzle", ")", "{", "throw", "new", "BaseUrlException", "(", "'BaseUrl was never set. Please...
Attempts to do a request of the given path. @param string $path @param array $params @return \LeagueWrap\Response @throws BaseUrlException
[ "Attempts", "to", "do", "a", "request", "of", "the", "given", "path", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Client.php#L75-L102
221,676
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php
AbstractViewHelper.renderChildren
public function renderChildren() { if ($this->renderChildrenClosure !== null) { $closure = $this->renderChildrenClosure; return $closure(); } return $this->viewHelperNode->evaluateChildNodes($this->renderingContext); }
php
public function renderChildren() { if ($this->renderChildrenClosure !== null) { $closure = $this->renderChildrenClosure; return $closure(); } return $this->viewHelperNode->evaluateChildNodes($this->renderingContext); }
[ "public", "function", "renderChildren", "(", ")", "{", "if", "(", "$", "this", "->", "renderChildrenClosure", "!==", "null", ")", "{", "$", "closure", "=", "$", "this", "->", "renderChildrenClosure", ";", "return", "$", "closure", "(", ")", ";", "}", "re...
Helper method which triggers the rendering of everything between the opening and the closing tag. @return mixed The finally rendered child nodes. @api
[ "Helper", "method", "which", "triggers", "the", "rendering", "of", "everything", "between", "the", "opening", "and", "the", "closing", "tag", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php#L345-L352
221,677
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php
AbstractViewHelper.prepareArguments
public function prepareArguments() { if (!$this->argumentsInitialized) { $thisClassName = get_class($this); if (isset(self::$argumentDefinitionCache[$thisClassName])) { $this->argumentDefinitions = self::$argumentDefinitionCache[$thisClassName]; } else { ...
php
public function prepareArguments() { if (!$this->argumentsInitialized) { $thisClassName = get_class($this); if (isset(self::$argumentDefinitionCache[$thisClassName])) { $this->argumentDefinitions = self::$argumentDefinitionCache[$thisClassName]; } else { ...
[ "public", "function", "prepareArguments", "(", ")", "{", "if", "(", "!", "$", "this", "->", "argumentsInitialized", ")", "{", "$", "thisClassName", "=", "get_class", "(", "$", "this", ")", ";", "if", "(", "isset", "(", "self", "::", "$", "argumentDefinit...
Initialize all arguments and return them @return array Array of \TYPO3\Fluid\Core\ViewHelper\ArgumentDefinition instances.
[ "Initialize", "all", "arguments", "and", "return", "them" ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php#L375-L389
221,678
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php
AbstractViewHelper.registerRenderMethodArguments
private function registerRenderMethodArguments() { $methodParameters = static::getRenderMethodParameters($this->objectManager); if (count($methodParameters) === 0) { return; } if (Fluid::$debugMode) { $methodTags = static::getRenderMethodTagsValues($this->obj...
php
private function registerRenderMethodArguments() { $methodParameters = static::getRenderMethodParameters($this->objectManager); if (count($methodParameters) === 0) { return; } if (Fluid::$debugMode) { $methodTags = static::getRenderMethodTagsValues($this->obj...
[ "private", "function", "registerRenderMethodArguments", "(", ")", "{", "$", "methodParameters", "=", "static", "::", "getRenderMethodParameters", "(", "$", "this", "->", "objectManager", ")", ";", "if", "(", "count", "(", "$", "methodParameters", ")", "===", "0"...
Register method arguments for "render" by analysing the doc comment above. @return void @throws Parser\Exception
[ "Register", "method", "arguments", "for", "render", "by", "analysing", "the", "doc", "comment", "above", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php#L397-L439
221,679
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php
AbstractViewHelper.getRenderMethodParameters
public static function getRenderMethodParameters($objectManager) { $className = get_called_class(); if (!is_callable(array($className, 'render'))) { return array(); } $reflectionService = $objectManager->get(\TYPO3\Flow\Reflection\ReflectionService::class); retur...
php
public static function getRenderMethodParameters($objectManager) { $className = get_called_class(); if (!is_callable(array($className, 'render'))) { return array(); } $reflectionService = $objectManager->get(\TYPO3\Flow\Reflection\ReflectionService::class); retur...
[ "public", "static", "function", "getRenderMethodParameters", "(", "$", "objectManager", ")", "{", "$", "className", "=", "get_called_class", "(", ")", ";", "if", "(", "!", "is_callable", "(", "array", "(", "$", "className", ",", "'render'", ")", ")", ")", ...
Returns a map of render method parameters. @param \TYPO3\Flow\Object\ObjectManagerInterface $objectManager @return array Array of render method parameters @Flow\CompileStatic
[ "Returns", "a", "map", "of", "render", "method", "parameters", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php#L448-L457
221,680
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php
AbstractViewHelper.getRenderMethodTagsValues
public static function getRenderMethodTagsValues($objectManager) { $className = get_called_class(); if (!is_callable(array($className, 'render'))) { return array(); } $reflectionService = $objectManager->get(\TYPO3\Flow\Reflection\ReflectionService::class); retur...
php
public static function getRenderMethodTagsValues($objectManager) { $className = get_called_class(); if (!is_callable(array($className, 'render'))) { return array(); } $reflectionService = $objectManager->get(\TYPO3\Flow\Reflection\ReflectionService::class); retur...
[ "public", "static", "function", "getRenderMethodTagsValues", "(", "$", "objectManager", ")", "{", "$", "className", "=", "get_called_class", "(", ")", ";", "if", "(", "!", "is_callable", "(", "array", "(", "$", "className", ",", "'render'", ")", ")", ")", ...
Returns a map of render method tag values. @param \TYPO3\Flow\Object\ObjectManagerInterface $objectManager @return array An array of tags and their values or an empty array if no tags were found @Flow\CompileStatic
[ "Returns", "a", "map", "of", "render", "method", "tag", "values", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php#L466-L475
221,681
neos/fluid
Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php
AbstractViewHelper.validateArguments
public function validateArguments() { $argumentDefinitions = $this->prepareArguments(); if (!count($argumentDefinitions)) { return; } /** @var $registeredArgument ArgumentDefinition */ foreach ($argumentDefinitions as $argumentName => $registeredArgument) { ...
php
public function validateArguments() { $argumentDefinitions = $this->prepareArguments(); if (!count($argumentDefinitions)) { return; } /** @var $registeredArgument ArgumentDefinition */ foreach ($argumentDefinitions as $argumentName => $registeredArgument) { ...
[ "public", "function", "validateArguments", "(", ")", "{", "$", "argumentDefinitions", "=", "$", "this", "->", "prepareArguments", "(", ")", ";", "if", "(", "!", "count", "(", "$", "argumentDefinitions", ")", ")", "{", "return", ";", "}", "/** @var $registere...
Validate arguments, and throw exception if arguments do not validate. @return void @throws \InvalidArgumentException
[ "Validate", "arguments", "and", "throw", "exception", "if", "arguments", "do", "not", "validate", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php#L483-L517
221,682
neos/fluid
Classes/TYPO3/Fluid/ViewHelpers/SectionViewHelper.php
SectionViewHelper.postParseEvent
public static function postParseEvent(ViewHelperNode $syntaxTreeNode, array $viewHelperArguments, TemplateVariableContainer $variableContainer) { /** @var $nameArgument TextNode */ $nameArgument = $viewHelperArguments['name']; $sectionName = $nameArgument->getText(); if (!$variableCo...
php
public static function postParseEvent(ViewHelperNode $syntaxTreeNode, array $viewHelperArguments, TemplateVariableContainer $variableContainer) { /** @var $nameArgument TextNode */ $nameArgument = $viewHelperArguments['name']; $sectionName = $nameArgument->getText(); if (!$variableCo...
[ "public", "static", "function", "postParseEvent", "(", "ViewHelperNode", "$", "syntaxTreeNode", ",", "array", "$", "viewHelperArguments", ",", "TemplateVariableContainer", "$", "variableContainer", ")", "{", "/** @var $nameArgument TextNode */", "$", "nameArgument", "=", ...
Save the associated ViewHelper node in a static public class variable. called directly after the ViewHelper was built. @param ViewHelperNode $syntaxTreeNode @param array $viewHelperArguments<TextNode> @param TemplateVariableContainer $variableContainer @return void
[ "Save", "the", "associated", "ViewHelper", "node", "in", "a", "static", "public", "class", "variable", ".", "called", "directly", "after", "the", "ViewHelper", "was", "built", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/ViewHelpers/SectionViewHelper.php#L92-L104
221,683
neos/fluid
Classes/TYPO3/Fluid/ViewHelpers/SectionViewHelper.php
SectionViewHelper.render
public function render() { if ($this->viewHelperVariableContainer->exists(\TYPO3\Fluid\ViewHelpers\SectionViewHelper::class, 'isCurrentlyRenderingSection')) { $this->viewHelperVariableContainer->remove(\TYPO3\Fluid\ViewHelpers\SectionViewHelper::class, 'isCurrentlyRenderingSection'); ...
php
public function render() { if ($this->viewHelperVariableContainer->exists(\TYPO3\Fluid\ViewHelpers\SectionViewHelper::class, 'isCurrentlyRenderingSection')) { $this->viewHelperVariableContainer->remove(\TYPO3\Fluid\ViewHelpers\SectionViewHelper::class, 'isCurrentlyRenderingSection'); ...
[ "public", "function", "render", "(", ")", "{", "if", "(", "$", "this", "->", "viewHelperVariableContainer", "->", "exists", "(", "\\", "TYPO3", "\\", "Fluid", "\\", "ViewHelpers", "\\", "SectionViewHelper", "::", "class", ",", "'isCurrentlyRenderingSection'", ")...
Rendering directly returns all child nodes. @return string HTML String of all child nodes. @api
[ "Rendering", "directly", "returns", "all", "child", "nodes", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/ViewHelpers/SectionViewHelper.php#L112-L119
221,684
CapMousse/React-Restify
src/Http/Response.php
Response.write
public function write($data) { $this->contentLength += strlen($data); $this->data .= $data; return $this; }
php
public function write($data) { $this->contentLength += strlen($data); $this->data .= $data; return $this; }
[ "public", "function", "write", "(", "$", "data", ")", "{", "$", "this", "->", "contentLength", "+=", "strlen", "(", "$", "data", ")", ";", "$", "this", "->", "data", ".=", "$", "data", ";", "return", "$", "this", ";", "}" ]
Write data to the response @param string $data @return Reponse
[ "Write", "data", "to", "the", "response" ]
51fe94d6e4c7fafec06fb304f9e44badde4bfe71
https://github.com/CapMousse/React-Restify/blob/51fe94d6e4c7fafec06fb304f9e44badde4bfe71/src/Http/Response.php#L116-L122
221,685
CapMousse/React-Restify
src/Http/Response.php
Response.writeJson
public function writeJson($data) { $data = json_encode($data); $this->write($data); $this->addHeader("Content-Type", "application/json"); return $this; }
php
public function writeJson($data) { $data = json_encode($data); $this->write($data); $this->addHeader("Content-Type", "application/json"); return $this; }
[ "public", "function", "writeJson", "(", "$", "data", ")", "{", "$", "data", "=", "json_encode", "(", "$", "data", ")", ";", "$", "this", "->", "write", "(", "$", "data", ")", ";", "$", "this", "->", "addHeader", "(", "\"Content-Type\"", ",", "\"appli...
Write json to the response @param mixed $data @return Reponse
[ "Write", "json", "to", "the", "response" ]
51fe94d6e4c7fafec06fb304f9e44badde4bfe71
https://github.com/CapMousse/React-Restify/blob/51fe94d6e4c7fafec06fb304f9e44badde4bfe71/src/Http/Response.php#L130-L138
221,686
CapMousse/React-Restify
src/Http/Response.php
Response.reset
public function reset() { $this->contentLength = 0; $this->data = ""; $this->headers = []; $this->status = 200; return $this; }
php
public function reset() { $this->contentLength = 0; $this->data = ""; $this->headers = []; $this->status = 200; return $this; }
[ "public", "function", "reset", "(", ")", "{", "$", "this", "->", "contentLength", "=", "0", ";", "$", "this", "->", "data", "=", "\"\"", ";", "$", "this", "->", "headers", "=", "[", "]", ";", "$", "this", "->", "status", "=", "200", ";", "return"...
Empty current response @return Reponse
[ "Empty", "current", "response" ]
51fe94d6e4c7fafec06fb304f9e44badde4bfe71
https://github.com/CapMousse/React-Restify/blob/51fe94d6e4c7fafec06fb304f9e44badde4bfe71/src/Http/Response.php#L145-L153
221,687
CapMousse/React-Restify
src/Http/Response.php
Response.end
public function end() { $this->sendHeaders(); $this->httpResponse->write($this->data); $this->httpResponse->end(); }
php
public function end() { $this->sendHeaders(); $this->httpResponse->write($this->data); $this->httpResponse->end(); }
[ "public", "function", "end", "(", ")", "{", "$", "this", "->", "sendHeaders", "(", ")", ";", "$", "this", "->", "httpResponse", "->", "write", "(", "$", "this", "->", "data", ")", ";", "$", "this", "->", "httpResponse", "->", "end", "(", ")", ";", ...
End the connexion
[ "End", "the", "connexion" ]
51fe94d6e4c7fafec06fb304f9e44badde4bfe71
https://github.com/CapMousse/React-Restify/blob/51fe94d6e4c7fafec06fb304f9e44badde4bfe71/src/Http/Response.php#L158-L163
221,688
CapMousse/React-Restify
src/Http/Response.php
Response.close
public function close() { $this->sendHeaders(); $this->httpResponse->write($this->data); $this->httpResponse->close(); }
php
public function close() { $this->sendHeaders(); $this->httpResponse->write($this->data); $this->httpResponse->close(); }
[ "public", "function", "close", "(", ")", "{", "$", "this", "->", "sendHeaders", "(", ")", ";", "$", "this", "->", "httpResponse", "->", "write", "(", "$", "this", "->", "data", ")", ";", "$", "this", "->", "httpResponse", "->", "close", "(", ")", "...
Close the connexion
[ "Close", "the", "connexion" ]
51fe94d6e4c7fafec06fb304f9e44badde4bfe71
https://github.com/CapMousse/React-Restify/blob/51fe94d6e4c7fafec06fb304f9e44badde4bfe71/src/Http/Response.php#L168-L173
221,689
CapMousse/React-Restify
src/Http/Response.php
Response.sendHeaders
public function sendHeaders() { if ($this->headersSent) { return; } if (!isset($this->headers["Content-Length"])) { $this->sendContentLengthHeaders(); } $this->httpResponse->writeHead($this->status, $this->headers); $this->headersSent = true;...
php
public function sendHeaders() { if ($this->headersSent) { return; } if (!isset($this->headers["Content-Length"])) { $this->sendContentLengthHeaders(); } $this->httpResponse->writeHead($this->status, $this->headers); $this->headersSent = true;...
[ "public", "function", "sendHeaders", "(", ")", "{", "if", "(", "$", "this", "->", "headersSent", ")", "{", "return", ";", "}", "if", "(", "!", "isset", "(", "$", "this", "->", "headers", "[", "\"Content-Length\"", "]", ")", ")", "{", "$", "this", "...
Send all headers to the response
[ "Send", "all", "headers", "to", "the", "response" ]
51fe94d6e4c7fafec06fb304f9e44badde4bfe71
https://github.com/CapMousse/React-Restify/blob/51fe94d6e4c7fafec06fb304f9e44badde4bfe71/src/Http/Response.php#L178-L190
221,690
paquettg/leaguewrap
src/LeagueWrap/Dto/AbstractListDto.php
AbstractListDto.offsetGet
public function offsetGet($offset) { $info = $this->getListByKey(); if ( ! isset($info[$offset])) { return null; } return $info[$offset]; }
php
public function offsetGet($offset) { $info = $this->getListByKey(); if ( ! isset($info[$offset])) { return null; } return $info[$offset]; }
[ "public", "function", "offsetGet", "(", "$", "offset", ")", "{", "$", "info", "=", "$", "this", "->", "getListByKey", "(", ")", ";", "if", "(", "!", "isset", "(", "$", "info", "[", "$", "offset", "]", ")", ")", "{", "return", "null", ";", "}", ...
Get the value at the given offset. @param mixed $offset @return null @throws ListKeyNotSetException
[ "Get", "the", "value", "at", "the", "given", "offset", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Dto/AbstractListDto.php#L35-L44
221,691
paquettg/leaguewrap
src/LeagueWrap/Dto/AbstractListDto.php
AbstractListDto.offsetSet
public function offsetSet($offset, $value) { // just to make sure the listKey exists $this->getListByKey(); if (is_null($offset)) { $this->info[$this->listKey][] = $value; } else { $this->info[$this->listKey][$offset] = $value; } }
php
public function offsetSet($offset, $value) { // just to make sure the listKey exists $this->getListByKey(); if (is_null($offset)) { $this->info[$this->listKey][] = $value; } else { $this->info[$this->listKey][$offset] = $value; } }
[ "public", "function", "offsetSet", "(", "$", "offset", ",", "$", "value", ")", "{", "// just to make sure the listKey exists", "$", "this", "->", "getListByKey", "(", ")", ";", "if", "(", "is_null", "(", "$", "offset", ")", ")", "{", "$", "this", "->", "...
Set a value at the given offset. @param mixed $offset @param mixed $value @throws ListKeyNotSetException
[ "Set", "a", "value", "at", "the", "given", "offset", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Dto/AbstractListDto.php#L53-L65
221,692
paquettg/leaguewrap
src/LeagueWrap/Dto/AbstractListDto.php
AbstractListDto.getListByKey
protected function getListByKey() { if($this->listKey == "") return $this->info; if (is_null($this->listKey) || ! isset($this->info[$this->listKey]) ) { throw new ListKeyNotSetException('The listKey is not found in the abstract list DTO'); } return $this->info[$this->listKey]; }
php
protected function getListByKey() { if($this->listKey == "") return $this->info; if (is_null($this->listKey) || ! isset($this->info[$this->listKey]) ) { throw new ListKeyNotSetException('The listKey is not found in the abstract list DTO'); } return $this->info[$this->listKey]; }
[ "protected", "function", "getListByKey", "(", ")", "{", "if", "(", "$", "this", "->", "listKey", "==", "\"\"", ")", "return", "$", "this", "->", "info", ";", "if", "(", "is_null", "(", "$", "this", "->", "listKey", ")", "||", "!", "isset", "(", "$"...
Returns the list by key. @return mixed @throws ListKeyNotSetException
[ "Returns", "the", "list", "by", "key", "." ]
0f91813b5d8292054e5e13619d591b6b14dc63e6
https://github.com/paquettg/leaguewrap/blob/0f91813b5d8292054e5e13619d591b6b14dc63e6/src/LeagueWrap/Dto/AbstractListDto.php#L107-L120
221,693
radphp/radphp
src/DependencyInjection/Container.php
Container.setShared
public static function setShared($name, $definition, $locked = false) { if (isset(self::$services[$name]) && self::$services[$name]->isLocked()) { throw new ServiceLockedException(sprintf('Service "%s" is locked.', $name)); } self::$services[$name] = new Service($name, $definiti...
php
public static function setShared($name, $definition, $locked = false) { if (isset(self::$services[$name]) && self::$services[$name]->isLocked()) { throw new ServiceLockedException(sprintf('Service "%s" is locked.', $name)); } self::$services[$name] = new Service($name, $definiti...
[ "public", "static", "function", "setShared", "(", "$", "name", ",", "$", "definition", ",", "$", "locked", "=", "false", ")", "{", "if", "(", "isset", "(", "self", "::", "$", "services", "[", "$", "name", "]", ")", "&&", "self", "::", "$", "service...
Set service as shared @param string $name @param callable|object|string $definition @param bool $locked @throws Exception
[ "Set", "service", "as", "shared" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/DependencyInjection/Container.php#L52-L59
221,694
radphp/radphp
src/DependencyInjection/Container.php
Container.get
public static function get($name, array $args = []) { if (!isset(self::$services[$name])) { throw new ServiceNotFoundException(sprintf('Service "%s" does not exist.', $name)); } $instance = self::$services[$name]->resolve(self::getInstance(), $args); if ($instance insta...
php
public static function get($name, array $args = []) { if (!isset(self::$services[$name])) { throw new ServiceNotFoundException(sprintf('Service "%s" does not exist.', $name)); } $instance = self::$services[$name]->resolve(self::getInstance(), $args); if ($instance insta...
[ "public", "static", "function", "get", "(", "$", "name", ",", "array", "$", "args", "=", "[", "]", ")", "{", "if", "(", "!", "isset", "(", "self", "::", "$", "services", "[", "$", "name", "]", ")", ")", "{", "throw", "new", "ServiceNotFoundExceptio...
Get and resolve service @param string $name @param array $args @return mixed|object @throws Exception
[ "Get", "and", "resolve", "service" ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/DependencyInjection/Container.php#L70-L83
221,695
adhocore/php-cron-expr
src/Validator.php
Validator.inRange
public function inRange($value, $offset) { $parts = \explode('-', $offset); return $parts[0] <= $value && $value <= $parts[1]; }
php
public function inRange($value, $offset) { $parts = \explode('-', $offset); return $parts[0] <= $value && $value <= $parts[1]; }
[ "public", "function", "inRange", "(", "$", "value", ",", "$", "offset", ")", "{", "$", "parts", "=", "\\", "explode", "(", "'-'", ",", "$", "offset", ")", ";", "return", "$", "parts", "[", "0", "]", "<=", "$", "value", "&&", "$", "value", "<=", ...
Check if the value is in range of given offset. @param int $value @param string $offset @return bool
[ "Check", "if", "the", "value", "is", "in", "range", "of", "given", "offset", "." ]
d7bfd342d62795a50ad6377964cf567eb727961a
https://github.com/adhocore/php-cron-expr/blob/d7bfd342d62795a50ad6377964cf567eb727961a/src/Validator.php#L31-L36
221,696
adhocore/php-cron-expr
src/Validator.php
Validator.inStep
public function inStep($value, $offset) { $parts = \explode('/', $offset, 2); if (empty($parts[1])) { return false; } if (\strpos($offset, '*/') !== false || \strpos($offset, '0/') !== false) { return $value % $parts[1] === 0; } $parts = ...
php
public function inStep($value, $offset) { $parts = \explode('/', $offset, 2); if (empty($parts[1])) { return false; } if (\strpos($offset, '*/') !== false || \strpos($offset, '0/') !== false) { return $value % $parts[1] === 0; } $parts = ...
[ "public", "function", "inStep", "(", "$", "value", ",", "$", "offset", ")", "{", "$", "parts", "=", "\\", "explode", "(", "'/'", ",", "$", "offset", ",", "2", ")", ";", "if", "(", "empty", "(", "$", "parts", "[", "1", "]", ")", ")", "{", "ret...
Check if the value is in step of given offset. @param int $value @param string $offset @return bool
[ "Check", "if", "the", "value", "is", "in", "step", "of", "given", "offset", "." ]
d7bfd342d62795a50ad6377964cf567eb727961a
https://github.com/adhocore/php-cron-expr/blob/d7bfd342d62795a50ad6377964cf567eb727961a/src/Validator.php#L46-L62
221,697
adhocore/php-cron-expr
src/Validator.php
Validator.inStepRange
public function inStepRange($value, $start, $end, $step) { if (($start + $step) > $end) { return false; } if ($start <= $value && $value <= $end) { return \in_array($value, \range($start, $end, $step)); } return false; }
php
public function inStepRange($value, $start, $end, $step) { if (($start + $step) > $end) { return false; } if ($start <= $value && $value <= $end) { return \in_array($value, \range($start, $end, $step)); } return false; }
[ "public", "function", "inStepRange", "(", "$", "value", ",", "$", "start", ",", "$", "end", ",", "$", "step", ")", "{", "if", "(", "(", "$", "start", "+", "$", "step", ")", ">", "$", "end", ")", "{", "return", "false", ";", "}", "if", "(", "$...
Check if the value falls between start and end when advanved by step. @param int $value @param int $start @param int $end @param int $step @return bool
[ "Check", "if", "the", "value", "falls", "between", "start", "and", "end", "when", "advanved", "by", "step", "." ]
d7bfd342d62795a50ad6377964cf567eb727961a
https://github.com/adhocore/php-cron-expr/blob/d7bfd342d62795a50ad6377964cf567eb727961a/src/Validator.php#L74-L85
221,698
neos/fluid
Classes/TYPO3/Fluid/ViewHelpers/FormViewHelper.php
FormViewHelper.renderHiddenReferrerFields
protected function renderHiddenReferrerFields() { $result = chr(10); $request = $this->controllerContext->getRequest(); $argumentNamespace = null; if (!$request->isMainRequest()) { $argumentNamespace = $request->getArgumentNamespace(); $referrer = array( ...
php
protected function renderHiddenReferrerFields() { $result = chr(10); $request = $this->controllerContext->getRequest(); $argumentNamespace = null; if (!$request->isMainRequest()) { $argumentNamespace = $request->getArgumentNamespace(); $referrer = array( ...
[ "protected", "function", "renderHiddenReferrerFields", "(", ")", "{", "$", "result", "=", "chr", "(", "10", ")", ";", "$", "request", "=", "$", "this", "->", "controllerContext", "->", "getRequest", "(", ")", ";", "$", "argumentNamespace", "=", "null", ";"...
Renders hidden form fields for referrer information about the current controller and action. @return string Hidden fields with referrer information @todo filter out referrer information that is equal to the target (e.g. same packageKey)
[ "Renders", "hidden", "form", "fields", "for", "referrer", "information", "about", "the", "current", "controller", "and", "action", "." ]
ded6be84a9487f7e0e204703a30b12d2c58c0efd
https://github.com/neos/fluid/blob/ded6be84a9487f7e0e204703a30b12d2c58c0efd/Classes/TYPO3/Fluid/ViewHelpers/FormViewHelper.php#L281-L322
221,699
radphp/radphp
src/Utility/Inflection.php
Inflection.camelize
public static function camelize($word, $uppercaseFirstLetter = true) { $word = self::underscore($word); $word = str_replace(' ', '', ucwords(str_replace('_', ' ', $word))); if ($uppercaseFirstLetter === false) { $word = lcfirst($word); } return $word; }
php
public static function camelize($word, $uppercaseFirstLetter = true) { $word = self::underscore($word); $word = str_replace(' ', '', ucwords(str_replace('_', ' ', $word))); if ($uppercaseFirstLetter === false) { $word = lcfirst($word); } return $word; }
[ "public", "static", "function", "camelize", "(", "$", "word", ",", "$", "uppercaseFirstLetter", "=", "true", ")", "{", "$", "word", "=", "self", "::", "underscore", "(", "$", "word", ")", ";", "$", "word", "=", "str_replace", "(", "' '", ",", "''", "...
Convert strings to CamelCase. @param string $word @param bool $uppercaseFirstLetter @return mixed|string
[ "Convert", "strings", "to", "CamelCase", "." ]
2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a
https://github.com/radphp/radphp/blob/2cbde2c12dd7204b1aba3f8a6e351b287ae85f0a/src/Utility/Inflection.php#L20-L30