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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
191,800 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.normalizeClassname | private function normalizeClassname($classpath)
{
if (NAMESPACE_SEPARATOR == substr($classpath, 0, 1)) {
$classpath = substr($classpath, 1);
}
if (false !== ($pos = strrpos($classpath, NAMESPACE_SEPARATOR))) {
$namespace = substr($classpath, 0, $pos);
$cl... | php | private function normalizeClassname($classpath)
{
if (NAMESPACE_SEPARATOR == substr($classpath, 0, 1)) {
$classpath = substr($classpath, 1);
}
if (false !== ($pos = strrpos($classpath, NAMESPACE_SEPARATOR))) {
$namespace = substr($classpath, 0, $pos);
$cl... | [
"private",
"function",
"normalizeClassname",
"(",
"$",
"classpath",
")",
"{",
"if",
"(",
"NAMESPACE_SEPARATOR",
"==",
"substr",
"(",
"$",
"classpath",
",",
"0",
",",
"1",
")",
")",
"{",
"$",
"classpath",
"=",
"substr",
"(",
"$",
"classpath",
",",
"1",
... | Returns the namespace and the class name to be found.
@param string $classpath the absolute class name
@return array array($namespace, $classname)
@throws \BackBee\AutoLoader\Exception\InvalidNamespaceException Occurs when the namespace is not valid
@throws \BackBee\AutoLoader\Exception\InvalidClassnameException Occ... | [
"Returns",
"the",
"namespace",
"and",
"the",
"class",
"name",
"to",
"be",
"found",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L287-L310 |
191,801 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.registerStreams | private function registerStreams()
{
foreach ($this->_streamWrappers as $wrappers) {
foreach ($wrappers as $wrapper) {
if (false === in_array($wrapper['protocol'], $this->_availableWrappers)) {
stream_wrapper_register($wrapper['protocol'], $wrapper['classname'... | php | private function registerStreams()
{
foreach ($this->_streamWrappers as $wrappers) {
foreach ($wrappers as $wrapper) {
if (false === in_array($wrapper['protocol'], $this->_availableWrappers)) {
stream_wrapper_register($wrapper['protocol'], $wrapper['classname'... | [
"private",
"function",
"registerStreams",
"(",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"_streamWrappers",
"as",
"$",
"wrappers",
")",
"{",
"foreach",
"(",
"$",
"wrappers",
"as",
"$",
"wrapper",
")",
"{",
"if",
"(",
"false",
"===",
"in_array",
"(",
... | Registers pre-defined stream wrappers. | [
"Registers",
"pre",
"-",
"defined",
"stream",
"wrappers",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L315-L325 |
191,802 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.getStreamWrapperClassname | public function getStreamWrapperClassname($namespace, $protocol)
{
$namespace = (array) $namespace;
$protocol = (array) $protocol;
$result = array();
foreach ($this->_streamWrappers as $ns => $wrappers) {
if (true === in_array($ns, $namespace)) {
foreach ... | php | public function getStreamWrapperClassname($namespace, $protocol)
{
$namespace = (array) $namespace;
$protocol = (array) $protocol;
$result = array();
foreach ($this->_streamWrappers as $ns => $wrappers) {
if (true === in_array($ns, $namespace)) {
foreach ... | [
"public",
"function",
"getStreamWrapperClassname",
"(",
"$",
"namespace",
",",
"$",
"protocol",
")",
"{",
"$",
"namespace",
"=",
"(",
"array",
")",
"$",
"namespace",
";",
"$",
"protocol",
"=",
"(",
"array",
")",
"$",
"protocol",
";",
"$",
"result",
"=",
... | Returns the wrappers registered for provided namespaces and protocols.
@param string|array $namespace The namespaces to look for
@param string|array $protocol The protocols to use
@return array An array of wrappers registered for these namespaces and protocols | [
"Returns",
"the",
"wrappers",
"registered",
"for",
"provided",
"namespaces",
"and",
"protocols",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L386-L403 |
191,803 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.glob | public function glob($pattern)
{
// $pattern = 'Media'.DIRECTORY_SEPARATOR.'*'
$wrappers = $this->getStreamWrapperClassname('BackBee\ClassContent', 'bb.class');
if (0 == count($wrappers)) {
return false;
}
$classnames = array();
foreach ($wrappers as $cla... | php | public function glob($pattern)
{
// $pattern = 'Media'.DIRECTORY_SEPARATOR.'*'
$wrappers = $this->getStreamWrapperClassname('BackBee\ClassContent', 'bb.class');
if (0 == count($wrappers)) {
return false;
}
$classnames = array();
foreach ($wrappers as $cla... | [
"public",
"function",
"glob",
"(",
"$",
"pattern",
")",
"{",
"// $pattern = 'Media'.DIRECTORY_SEPARATOR.'*'",
"$",
"wrappers",
"=",
"$",
"this",
"->",
"getStreamWrapperClassname",
"(",
"'BackBee\\ClassContent'",
",",
"'bb.class'",
")",
";",
"if",
"(",
"0",
"==",
"... | Returns AClassContent whom classname matches the provided pattern.
@param string $pattern The pattern to test
@param string $pattern The pattern to test
@return array|FALSE An array of classnames matching the pattern of FALSE if none found | [
"Returns",
"AClassContent",
"whom",
"classname",
"matches",
"the",
"provided",
"pattern",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L413-L434 |
191,804 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.registerNamespace | public function registerNamespace($namespace, $paths)
{
if (false === isset($this->_namespaces[$namespace])) {
$this->_namespaces[$namespace] = array();
}
$this->_namespaces[$namespace] = array_merge($this->_namespaces[$namespace], (array) $paths);
return $this;
} | php | public function registerNamespace($namespace, $paths)
{
if (false === isset($this->_namespaces[$namespace])) {
$this->_namespaces[$namespace] = array();
}
$this->_namespaces[$namespace] = array_merge($this->_namespaces[$namespace], (array) $paths);
return $this;
} | [
"public",
"function",
"registerNamespace",
"(",
"$",
"namespace",
",",
"$",
"paths",
")",
"{",
"if",
"(",
"false",
"===",
"isset",
"(",
"$",
"this",
"->",
"_namespaces",
"[",
"$",
"namespace",
"]",
")",
")",
"{",
"$",
"this",
"->",
"_namespaces",
"[",
... | Registers namespace parts to look for class name.
@param string $namespace The namespace
@param string|array $paths One or an array of associated locations
@return \BackBee\AutoLoader\AutoLoader The current instance of the autoloader class | [
"Registers",
"namespace",
"parts",
"to",
"look",
"for",
"class",
"name",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L463-L472 |
191,805 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.registerListenerNamespace | public function registerListenerNamespace($path)
{
if (false === isset($this->_namespaces['BackBee\Event\Listener'])) {
$this->_namespaces['BackBee\Event\Listener'] = array();
}
array_unshift($this->_namespaces['BackBee\Event\Listener'], $path);
return $this;
} | php | public function registerListenerNamespace($path)
{
if (false === isset($this->_namespaces['BackBee\Event\Listener'])) {
$this->_namespaces['BackBee\Event\Listener'] = array();
}
array_unshift($this->_namespaces['BackBee\Event\Listener'], $path);
return $this;
} | [
"public",
"function",
"registerListenerNamespace",
"(",
"$",
"path",
")",
"{",
"if",
"(",
"false",
"===",
"isset",
"(",
"$",
"this",
"->",
"_namespaces",
"[",
"'BackBee\\Event\\Listener'",
"]",
")",
")",
"{",
"$",
"this",
"->",
"_namespaces",
"[",
"'BackBee\... | Registers listeners namespace parts to look for class name.
@param string $path
@return \BackBee\AutoLoader\AutoLoader The current instance of the autoloader class | [
"Registers",
"listeners",
"namespace",
"parts",
"to",
"look",
"for",
"class",
"name",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L481-L490 |
191,806 | backbee/backbee-php | AutoLoader/AutoLoader.php | AutoLoader.registerStreamWrapper | public function registerStreamWrapper($namespace, $protocol, $classname)
{
if (!isset($this->_namespaces[$namespace])) {
$this->_namespaces[$namespace] = array();
}
$this->_streamWrappers[$namespace][] = array('protocol' => $protocol, 'classname' => $classname);
ksort($t... | php | public function registerStreamWrapper($namespace, $protocol, $classname)
{
if (!isset($this->_namespaces[$namespace])) {
$this->_namespaces[$namespace] = array();
}
$this->_streamWrappers[$namespace][] = array('protocol' => $protocol, 'classname' => $classname);
ksort($t... | [
"public",
"function",
"registerStreamWrapper",
"(",
"$",
"namespace",
",",
"$",
"protocol",
",",
"$",
"classname",
")",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
"_namespaces",
"[",
"$",
"namespace",
"]",
")",
")",
"{",
"$",
"this",
"->",
... | Registers stream wrappers.
@param string $namespace The namespace
@param string $protocol The wrapper's protocol
@param string $classname The class name implementing the wrapper
@return \BackBee\AutoLoader\AutoLoader The current instance of the autoloader class | [
"Registers",
"stream",
"wrappers",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/AutoLoader/AutoLoader.php#L501-L513 |
191,807 | backbee/backbee-php | Bundle/Listener/BundleListener.php | BundleListener.onApplicationStop | public static function onApplicationStop(Event $event)
{
$container = $event->getTarget()->getContainer();
$eventDispatcher = $container->has('event.dispatcher') ? $container->get('event.dispatcher') : null;
foreach (array_keys($container->findTaggedServiceIds('bundle')) as $bundleId) {
... | php | public static function onApplicationStop(Event $event)
{
$container = $event->getTarget()->getContainer();
$eventDispatcher = $container->has('event.dispatcher') ? $container->get('event.dispatcher') : null;
foreach (array_keys($container->findTaggedServiceIds('bundle')) as $bundleId) {
... | [
"public",
"static",
"function",
"onApplicationStop",
"(",
"Event",
"$",
"event",
")",
"{",
"$",
"container",
"=",
"$",
"event",
"->",
"getTarget",
"(",
")",
"->",
"getContainer",
"(",
")",
";",
"$",
"eventDispatcher",
"=",
"$",
"container",
"->",
"has",
... | Occurs on `bbapplication.stop` event to stop every started bundles.
@param Event $event | [
"Occurs",
"on",
"bbapplication",
".",
"stop",
"event",
"to",
"stop",
"every",
"started",
"bundles",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Bundle/Listener/BundleListener.php#L45-L65 |
191,808 | backbee/backbee-php | Util/Transport/FileSystem.php | FileSystem.login | public function login($username = null, $password = null)
{
if (false === @$this->cd()) {
if (true === @$this->mkdir()) {
@$this->cd();
} else {
throw new Exception\AuthenticationException(sprintf('Unable to change dir to %s', $this->_remotepath));
... | php | public function login($username = null, $password = null)
{
if (false === @$this->cd()) {
if (true === @$this->mkdir()) {
@$this->cd();
} else {
throw new Exception\AuthenticationException(sprintf('Unable to change dir to %s', $this->_remotepath));
... | [
"public",
"function",
"login",
"(",
"$",
"username",
"=",
"null",
",",
"$",
"password",
"=",
"null",
")",
"{",
"if",
"(",
"false",
"===",
"@",
"$",
"this",
"->",
"cd",
"(",
")",
")",
"{",
"if",
"(",
"true",
"===",
"@",
"$",
"this",
"->",
"mkdir... | Tries to change dir to the defined remote path.
An error is triggered if failed.
@param string $username
@param string $password
@return \BackBee\Util\Transport\FileSystem
@throws \BackBee\Util\Transport\Exception\AuthenticationException | [
"Tries",
"to",
"change",
"dir",
"to",
"the",
"defined",
"remote",
"path",
".",
"An",
"error",
"is",
"triggered",
"if",
"failed",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Transport/FileSystem.php#L81-L92 |
191,809 | backbee/backbee-php | Util/Transport/FileSystem.php | FileSystem.sendRecursive | public function sendRecursive($local_path, $remote_path, $overwrite = false)
{
if (false === is_dir($local_path)) {
return $this->send($local_path, $remote_path, $overwrite);
}
if (false === $lls = @scandir($local_path)) {
return $this->_trigger_error(sprintf('Unable... | php | public function sendRecursive($local_path, $remote_path, $overwrite = false)
{
if (false === is_dir($local_path)) {
return $this->send($local_path, $remote_path, $overwrite);
}
if (false === $lls = @scandir($local_path)) {
return $this->_trigger_error(sprintf('Unable... | [
"public",
"function",
"sendRecursive",
"(",
"$",
"local_path",
",",
"$",
"remote_path",
",",
"$",
"overwrite",
"=",
"false",
")",
"{",
"if",
"(",
"false",
"===",
"is_dir",
"(",
"$",
"local_path",
")",
")",
"{",
"return",
"$",
"this",
"->",
"send",
"(",... | Copy recursively a local file and subfiles to the remote server.
@param string $local_file
@param string $remote_file
@param boolean $overwrite
@return boolean Returns TRUE on success or FALSE on error | [
"Copy",
"recursively",
"a",
"local",
"file",
"and",
"subfiles",
"to",
"the",
"remote",
"server",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Transport/FileSystem.php#L191-L220 |
191,810 | backbee/backbee-php | Security/Encoder/RequestSignatureEncoder.php | RequestSignatureEncoder.isApiSignatureValid | public function isApiSignatureValid(BBUserToken $token, $signaturePresented)
{
return StringUtils::equals($this->createSignature($token), $signaturePresented);
} | php | public function isApiSignatureValid(BBUserToken $token, $signaturePresented)
{
return StringUtils::equals($this->createSignature($token), $signaturePresented);
} | [
"public",
"function",
"isApiSignatureValid",
"(",
"BBUserToken",
"$",
"token",
",",
"$",
"signaturePresented",
")",
"{",
"return",
"StringUtils",
"::",
"equals",
"(",
"$",
"this",
"->",
"createSignature",
"(",
"$",
"token",
")",
",",
"$",
"signaturePresented",
... | Checks if the presented signature is valid or not according to token.
@param BBUserToken $token
@param string $signaturePresented signature we want to check if it's correct
@return boolean true if signature is valid, else false | [
"Checks",
"if",
"the",
"presented",
"signature",
"is",
"valid",
"or",
"not",
"according",
"to",
"token",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Encoder/RequestSignatureEncoder.php#L47-L50 |
191,811 | backbee/backbee-php | Security/Encoder/RequestSignatureEncoder.php | RequestSignatureEncoder.createSignature | public function createSignature(BBUserToken $token)
{
return md5($token->getUser()->getApiKeyPublic().$token->getUser()->getApiKeyPrivate().$token->getNonce());
} | php | public function createSignature(BBUserToken $token)
{
return md5($token->getUser()->getApiKeyPublic().$token->getUser()->getApiKeyPrivate().$token->getNonce());
} | [
"public",
"function",
"createSignature",
"(",
"BBUserToken",
"$",
"token",
")",
"{",
"return",
"md5",
"(",
"$",
"token",
"->",
"getUser",
"(",
")",
"->",
"getApiKeyPublic",
"(",
")",
".",
"$",
"token",
"->",
"getUser",
"(",
")",
"->",
"getApiKeyPrivate",
... | Create a signature for a given user.
@param BackBee\Security\Token\BBUserToken the token we want to generate API signature key
@return string the generated signature | [
"Create",
"a",
"signature",
"for",
"a",
"given",
"user",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Encoder/RequestSignatureEncoder.php#L59-L62 |
191,812 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.updateExpireByTag | public function updateExpireByTag($tag, $lifetime = null, $bypass_control = false)
{
$tags = (array) $tag;
if (0 == count($tags)) {
return false;
}
$expire = $this->getExpireTime($lifetime, $bypass_control);
try {
$this->_repository
... | php | public function updateExpireByTag($tag, $lifetime = null, $bypass_control = false)
{
$tags = (array) $tag;
if (0 == count($tags)) {
return false;
}
$expire = $this->getExpireTime($lifetime, $bypass_control);
try {
$this->_repository
... | [
"public",
"function",
"updateExpireByTag",
"(",
"$",
"tag",
",",
"$",
"lifetime",
"=",
"null",
",",
"$",
"bypass_control",
"=",
"false",
")",
"{",
"$",
"tags",
"=",
"(",
"array",
")",
"$",
"tag",
";",
"if",
"(",
"0",
"==",
"count",
"(",
"$",
"tags"... | Updates the expire date time for all cache records
associated to one of the provided tags.
@param string|array $tag
@param int $lifetime Optional, the specific lifetime for this record
(by default null, infinite lifetime)
@return boolean TRUE if cache is removed FALSE otherwise | [
"Updates",
"the",
"expire",
"date",
"time",
"for",
"all",
"cache",
"records",
"associated",
"to",
"one",
"of",
"the",
"provided",
"tags",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L288-L317 |
191,813 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.getMinExpireByTag | public function getMinExpireByTag($tag, $lifetime = 0)
{
$tags = (array) $tag;
if (0 == count($tags)) {
return $lifetime;
}
$now = new \DateTime();
$expire = $this->getExpireTime($lifetime);
try {
$min = $this->_repository
... | php | public function getMinExpireByTag($tag, $lifetime = 0)
{
$tags = (array) $tag;
if (0 == count($tags)) {
return $lifetime;
}
$now = new \DateTime();
$expire = $this->getExpireTime($lifetime);
try {
$min = $this->_repository
... | [
"public",
"function",
"getMinExpireByTag",
"(",
"$",
"tag",
",",
"$",
"lifetime",
"=",
"0",
")",
"{",
"$",
"tags",
"=",
"(",
"array",
")",
"$",
"tag",
";",
"if",
"(",
"0",
"==",
"count",
"(",
"$",
"tags",
")",
")",
"{",
"return",
"$",
"lifetime",... | Returns the minimum expire date time for all cache records
associated to one of the provided tags.
@param string|array $tag
@param int $lifetime Optional, the specific lifetime for this record
(by default 0, infinite lifetime)
@return int | [
"Returns",
"the",
"minimum",
"expire",
"date",
"time",
"for",
"all",
"cache",
"records",
"associated",
"to",
"one",
"of",
"the",
"provided",
"tags",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L329-L360 |
191,814 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.getContextualTags | private function getContextualTags(array $tags)
{
foreach ($tags as &$tag) {
$tag = $this->getContextualId($tag);
}
unset($tag);
return $tags;
} | php | private function getContextualTags(array $tags)
{
foreach ($tags as &$tag) {
$tag = $this->getContextualId($tag);
}
unset($tag);
return $tags;
} | [
"private",
"function",
"getContextualTags",
"(",
"array",
"$",
"tags",
")",
"{",
"foreach",
"(",
"$",
"tags",
"as",
"&",
"$",
"tag",
")",
"{",
"$",
"tag",
"=",
"$",
"this",
"->",
"getContextualId",
"(",
"$",
"tag",
")",
";",
"}",
"unset",
"(",
"$",... | Return an array of contextual tags, according to the defined prefix key.
@param array $tags
@return array
@codeCoverageIgnore | [
"Return",
"an",
"array",
"of",
"contextual",
"tags",
"according",
"to",
"the",
"defined",
"prefix",
"key",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L407-L415 |
191,815 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.getCacheEntity | private function getCacheEntity($id)
{
$contextual_id = $this->getContextualId($id);
if (null === $this->_entity || $this->_entity->getId() !== $contextual_id) {
$this->_entity = $this->_repository->find($contextual_id);
}
return $this->_entity;
} | php | private function getCacheEntity($id)
{
$contextual_id = $this->getContextualId($id);
if (null === $this->_entity || $this->_entity->getId() !== $contextual_id) {
$this->_entity = $this->_repository->find($contextual_id);
}
return $this->_entity;
} | [
"private",
"function",
"getCacheEntity",
"(",
"$",
"id",
")",
"{",
"$",
"contextual_id",
"=",
"$",
"this",
"->",
"getContextualId",
"(",
"$",
"id",
")",
";",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"_entity",
"||",
"$",
"this",
"->",
"_entity",
... | Returns the store entity for provided cache id.
@param string $id Cache id
@return \BackBee\Cache\DAO\Entity The cache entity or NULL
@codeCoverageIgnore | [
"Returns",
"the",
"store",
"entity",
"for",
"provided",
"cache",
"id",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L425-L434 |
191,816 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.resetCacheEntity | private function resetCacheEntity()
{
if (null !== $this->_entity) {
$this->_em->detach($this->_entity);
$this->_entity = null;
}
} | php | private function resetCacheEntity()
{
if (null !== $this->_entity) {
$this->_em->detach($this->_entity);
$this->_entity = null;
}
} | [
"private",
"function",
"resetCacheEntity",
"(",
")",
"{",
"if",
"(",
"null",
"!==",
"$",
"this",
"->",
"_entity",
")",
"{",
"$",
"this",
"->",
"_em",
"->",
"detach",
"(",
"$",
"this",
"->",
"_entity",
")",
";",
"$",
"this",
"->",
"_entity",
"=",
"n... | Resets the last stored entity.
@codeCoverageIgnore | [
"Resets",
"the",
"last",
"stored",
"entity",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L441-L447 |
191,817 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.setPrefixKey | private function setPrefixKey()
{
if (null !== $this->getContext()) {
$this->_prefix_key = md5($this->getContext());
}
return $this;
} | php | private function setPrefixKey()
{
if (null !== $this->getContext()) {
$this->_prefix_key = md5($this->getContext());
}
return $this;
} | [
"private",
"function",
"setPrefixKey",
"(",
")",
"{",
"if",
"(",
"null",
"!==",
"$",
"this",
"->",
"getContext",
"(",
")",
")",
"{",
"$",
"this",
"->",
"_prefix_key",
"=",
"md5",
"(",
"$",
"this",
"->",
"getContext",
"(",
")",
")",
";",
"}",
"retur... | Sets the cache prefix key according to the context.
@return \BackBee\Cache\DAO\Cache
@codeCoverageIgnore | [
"Sets",
"the",
"cache",
"prefix",
"key",
"according",
"to",
"the",
"context",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L470-L477 |
191,818 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.setEntityRepository | private function setEntityRepository()
{
try {
$this->_repository = $this->_em->getRepository(self::ENTITY_CLASSNAME);
} catch (\Exception $e) {
throw new CacheException('Enable to load the cache entity repository', null, $e);
}
return $this;
} | php | private function setEntityRepository()
{
try {
$this->_repository = $this->_em->getRepository(self::ENTITY_CLASSNAME);
} catch (\Exception $e) {
throw new CacheException('Enable to load the cache entity repository', null, $e);
}
return $this;
} | [
"private",
"function",
"setEntityRepository",
"(",
")",
"{",
"try",
"{",
"$",
"this",
"->",
"_repository",
"=",
"$",
"this",
"->",
"_em",
"->",
"getRepository",
"(",
"self",
"::",
"ENTITY_CLASSNAME",
")",
";",
"}",
"catch",
"(",
"\\",
"Exception",
"$",
"... | Sets the entity repository.
@return \BackBee\Cache\DAO\Cache
@throws \BackBee\Cache\Exception\CacheException Occurs if the entity repository cannot be found
@codeCoverageIgnore | [
"Sets",
"the",
"entity",
"repository",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L487-L496 |
191,819 | backbee/backbee-php | Cache/DAO/Cache.php | Cache.setEntityManager | private function setEntityManager()
{
try {
if ($this->_instance_options['em'] instanceof EntityManager) {
$this->_em = $this->_instance_options['em'];
} else {
$this->_em = EntityManagerCreator::create($this->_instance_options['dbal'], $this->getLogge... | php | private function setEntityManager()
{
try {
if ($this->_instance_options['em'] instanceof EntityManager) {
$this->_em = $this->_instance_options['em'];
} else {
$this->_em = EntityManagerCreator::create($this->_instance_options['dbal'], $this->getLogge... | [
"private",
"function",
"setEntityManager",
"(",
")",
"{",
"try",
"{",
"if",
"(",
"$",
"this",
"->",
"_instance_options",
"[",
"'em'",
"]",
"instanceof",
"EntityManager",
")",
"{",
"$",
"this",
"->",
"_em",
"=",
"$",
"this",
"->",
"_instance_options",
"[",
... | Sets the entity manager.
@return \BackBee\Cache\DAO\Cache
@throws \BackBee\Cache\Exception\CacheException Occurs if if enable to create a database connection. | [
"Sets",
"the",
"entity",
"manager",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/DAO/Cache.php#L505-L518 |
191,820 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getAcl | public function getAcl($objectIdentity)
{
$this->enforceObjectIdentity($objectIdentity);
try {
$acl = $this->securityContext->getACLProvider()->createAcl($objectIdentity);
} catch (AclAlreadyExistsException $e) {
$acl = $this->securityContext->getACLProvider()->findA... | php | public function getAcl($objectIdentity)
{
$this->enforceObjectIdentity($objectIdentity);
try {
$acl = $this->securityContext->getACLProvider()->createAcl($objectIdentity);
} catch (AclAlreadyExistsException $e) {
$acl = $this->securityContext->getACLProvider()->findA... | [
"public",
"function",
"getAcl",
"(",
"$",
"objectIdentity",
")",
"{",
"$",
"this",
"->",
"enforceObjectIdentity",
"(",
"$",
"objectIdentity",
")",
";",
"try",
"{",
"$",
"acl",
"=",
"$",
"this",
"->",
"securityContext",
"->",
"getACLProvider",
"(",
")",
"->... | Get ACL for the given domain object.
@param ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@return Acl | [
"Get",
"ACL",
"for",
"the",
"given",
"domain",
"object",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L85-L96 |
191,821 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.insertOrUpdateClassAce | public function insertOrUpdateClassAce($objectIdentity, $sid, $mask, $strategy = null)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$mask = $this->resolveMask($mask, $objectIdentity);
$acl = $this->getAcl($objectIdentity);
$found = ... | php | public function insertOrUpdateClassAce($objectIdentity, $sid, $mask, $strategy = null)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$mask = $this->resolveMask($mask, $objectIdentity);
$acl = $this->getAcl($objectIdentity);
$found = ... | [
"public",
"function",
"insertOrUpdateClassAce",
"(",
"$",
"objectIdentity",
",",
"$",
"sid",
",",
"$",
"mask",
",",
"$",
"strategy",
"=",
"null",
")",
"{",
"$",
"this",
"->",
"enforceObjectIdentity",
"(",
"$",
"objectIdentity",
")",
";",
"$",
"this",
"->",... | Updates an existing Class ACE, Inserts if it doesn't exist.
@param ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@param SecurityIdentityInterface|UserSecurityIdentity $sid
@param int $mask
@param string|null $strategy
@return $this | [
"Updates",
"an",
"existing",
"Class",
"ACE",
"Inserts",
"if",
"it",
"doesn",
"t",
"exist",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L207-L232 |
191,822 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.deleteClassAce | public function deleteClassAce($objectIdentity, $sid)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$acl = $this->getAcl($objectIdentity);
$found = false;
foreach ($acl->getClassAces() as $index => $ace) {
if ($ace->getS... | php | public function deleteClassAce($objectIdentity, $sid)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$acl = $this->getAcl($objectIdentity);
$found = false;
foreach ($acl->getClassAces() as $index => $ace) {
if ($ace->getS... | [
"public",
"function",
"deleteClassAce",
"(",
"$",
"objectIdentity",
",",
"$",
"sid",
")",
"{",
"$",
"this",
"->",
"enforceObjectIdentity",
"(",
"$",
"objectIdentity",
")",
";",
"$",
"this",
"->",
"enforceSecurityIdentity",
"(",
"$",
"sid",
")",
";",
"$",
"... | Deletes a class-scope ACE.
@param ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@param SecurityIdentityInterface|UserSecurityIdentity $sid | [
"Deletes",
"a",
"class",
"-",
"scope",
"ACE",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L240-L262 |
191,823 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getClassAce | public function getClassAce($objectIdentity, $sid)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$acl = $this->securityContext->getACLProvider()->findAcl($objectIdentity);
foreach ($acl->getClassAces() as $index => $ace) {
if ($a... | php | public function getClassAce($objectIdentity, $sid)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$acl = $this->securityContext->getACLProvider()->findAcl($objectIdentity);
foreach ($acl->getClassAces() as $index => $ace) {
if ($a... | [
"public",
"function",
"getClassAce",
"(",
"$",
"objectIdentity",
",",
"$",
"sid",
")",
"{",
"$",
"this",
"->",
"enforceObjectIdentity",
"(",
"$",
"objectIdentity",
")",
";",
"$",
"this",
"->",
"enforceSecurityIdentity",
"(",
"$",
"sid",
")",
";",
"$",
"acl... | Get a class-scope ACE.
@param ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@param SecurityIdentityInterface|UserSecurityIdentity $sid | [
"Get",
"a",
"class",
"-",
"scope",
"ACE",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L300-L314 |
191,824 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getObjectAce | public function getObjectAce($objectIdentity, $sid)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$acl = $this->securityContext->getACLProvider()->findAcl($objectIdentity);
foreach ($acl->getObjectAces() as $index => $ace) {
if (... | php | public function getObjectAce($objectIdentity, $sid)
{
$this->enforceObjectIdentity($objectIdentity);
$this->enforceSecurityIdentity($sid);
$acl = $this->securityContext->getACLProvider()->findAcl($objectIdentity);
foreach ($acl->getObjectAces() as $index => $ace) {
if (... | [
"public",
"function",
"getObjectAce",
"(",
"$",
"objectIdentity",
",",
"$",
"sid",
")",
"{",
"$",
"this",
"->",
"enforceObjectIdentity",
"(",
"$",
"objectIdentity",
")",
";",
"$",
"this",
"->",
"enforceSecurityIdentity",
"(",
"$",
"sid",
")",
";",
"$",
"ac... | Get an object-scope ACE.
@param ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@param SecurityIdentityInterface|UserSecurityIdentity $sid | [
"Get",
"an",
"object",
"-",
"scope",
"ACE",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L322-L335 |
191,825 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getMask | public function getMask(array $permissions)
{
$maskBuilder = new MaskBuilder();
foreach ($permissions as $permission) {
try {
$maskBuilder->add($permission);
} catch (InvalidArgumentException $e) {
throw new InvalidPermissionException('Invalid... | php | public function getMask(array $permissions)
{
$maskBuilder = new MaskBuilder();
foreach ($permissions as $permission) {
try {
$maskBuilder->add($permission);
} catch (InvalidArgumentException $e) {
throw new InvalidPermissionException('Invalid... | [
"public",
"function",
"getMask",
"(",
"array",
"$",
"permissions",
")",
"{",
"$",
"maskBuilder",
"=",
"new",
"MaskBuilder",
"(",
")",
";",
"foreach",
"(",
"$",
"permissions",
"as",
"$",
"permission",
")",
"{",
"try",
"{",
"$",
"maskBuilder",
"->",
"add",... | Calculate mask for a list of permissions.
['view', 'edit'] => (int) 5
@param array $permissions
@return int | [
"Calculate",
"mask",
"for",
"a",
"list",
"of",
"permissions",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L346-L359 |
191,826 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getPermissionCodes | public function getPermissionCodes()
{
$permissions = [
'view' => MaskBuilder::MASK_VIEW,
'create' => MaskBuilder::MASK_CREATE,
'edit' => MaskBuilder::MASK_EDIT,
'delete' => MaskBuilder::MASK_DELETE,
'undelete' => MaskBuilder::MASK_UNDELETE,
... | php | public function getPermissionCodes()
{
$permissions = [
'view' => MaskBuilder::MASK_VIEW,
'create' => MaskBuilder::MASK_CREATE,
'edit' => MaskBuilder::MASK_EDIT,
'delete' => MaskBuilder::MASK_DELETE,
'undelete' => MaskBuilder::MASK_UNDELETE,
... | [
"public",
"function",
"getPermissionCodes",
"(",
")",
"{",
"$",
"permissions",
"=",
"[",
"'view'",
"=>",
"MaskBuilder",
"::",
"MASK_VIEW",
",",
"'create'",
"=>",
"MaskBuilder",
"::",
"MASK_CREATE",
",",
"'edit'",
"=>",
"MaskBuilder",
"::",
"MASK_EDIT",
",",
"'... | Get a list of all available permission codes.
@return array | [
"Get",
"a",
"list",
"of",
"all",
"available",
"permission",
"codes",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L366-L384 |
191,827 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getPermissionsByPage | public function getPermissionsByPage($page, $sid)
{
$objectIdentity = $this->getClassScopeObjectIdentity($page);
try{
$ace = $this->getObjectAce($objectIdentity, $sid);
}
catch (\Exception $e){
if (null !== $page->getParent()) {
return $thi... | php | public function getPermissionsByPage($page, $sid)
{
$objectIdentity = $this->getClassScopeObjectIdentity($page);
try{
$ace = $this->getObjectAce($objectIdentity, $sid);
}
catch (\Exception $e){
if (null !== $page->getParent()) {
return $thi... | [
"public",
"function",
"getPermissionsByPage",
"(",
"$",
"page",
",",
"$",
"sid",
")",
"{",
"$",
"objectIdentity",
"=",
"$",
"this",
"->",
"getClassScopeObjectIdentity",
"(",
"$",
"page",
")",
";",
"try",
"{",
"$",
"ace",
"=",
"$",
"this",
"->",
"getObjec... | Get permissions by page
@param $page Page
@param $sid
@return array | [
"Get",
"permissions",
"by",
"page"
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L495-L524 |
191,828 | backbee/backbee-php | Security/Acl/AclManager.php | AclManager.getAccessGranted | private function getAccessGranted($ace)
{
$access = [
'total' => $ace->getMask()
];
foreach ($this->getPermissionCodes() as $permission => $code){
$access[$permission] = (0 !== ($ace->getMask() & $code)) ? 1 : 0;
}
$access['none'] = (0 === $ace->getM... | php | private function getAccessGranted($ace)
{
$access = [
'total' => $ace->getMask()
];
foreach ($this->getPermissionCodes() as $permission => $code){
$access[$permission] = (0 !== ($ace->getMask() & $code)) ? 1 : 0;
}
$access['none'] = (0 === $ace->getM... | [
"private",
"function",
"getAccessGranted",
"(",
"$",
"ace",
")",
"{",
"$",
"access",
"=",
"[",
"'total'",
"=>",
"$",
"ace",
"->",
"getMask",
"(",
")",
"]",
";",
"foreach",
"(",
"$",
"this",
"->",
"getPermissionCodes",
"(",
")",
"as",
"$",
"permission",... | Determines whether access is granted.
@param $ace
@return array | [
"Determines",
"whether",
"access",
"is",
"granted",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Acl/AclManager.php#L551-L565 |
191,829 | backbee/backbee-php | Cache/MemCache/AbstractMemcache.php | AbstractMemcache.addServers | public function addServers(array $servers = array())
{
$result = true;
foreach ($servers as $server) {
if (false === is_array($server)) {
throw new CacheException('Memcache adapter: server configuration is not an array.');
}
$server = array_merge... | php | public function addServers(array $servers = array())
{
$result = true;
foreach ($servers as $server) {
if (false === is_array($server)) {
throw new CacheException('Memcache adapter: server configuration is not an array.');
}
$server = array_merge... | [
"public",
"function",
"addServers",
"(",
"array",
"$",
"servers",
"=",
"array",
"(",
")",
")",
"{",
"$",
"result",
"=",
"true",
";",
"foreach",
"(",
"$",
"servers",
"as",
"$",
"server",
")",
"{",
"if",
"(",
"false",
"===",
"is_array",
"(",
"$",
"se... | Adds a set of servers to the memcache instance pool.
@param array $servers
@return boolean
@throws \BackBee\Cache\Exception\CacheException Occurs if one of the server configurations is not an array
@link http://php.net/manual/en/Memcache.addservers.php | [
"Adds",
"a",
"set",
"of",
"servers",
"to",
"the",
"memcache",
"instance",
"pool",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/MemCache/AbstractMemcache.php#L138-L154 |
191,830 | backbee/backbee-php | Cache/MemCache/AbstractMemcache.php | AbstractMemcache.addServer | public function addServer($host, $port, $weight = 0)
{
if (true === $this->_hasServer($host, $port)) {
return true;
}
if (false === $this->_cache->addServer($host, $port, $weight)) {
return $this->_onError('setOption');
}
return true;
} | php | public function addServer($host, $port, $weight = 0)
{
if (true === $this->_hasServer($host, $port)) {
return true;
}
if (false === $this->_cache->addServer($host, $port, $weight)) {
return $this->_onError('setOption');
}
return true;
} | [
"public",
"function",
"addServer",
"(",
"$",
"host",
",",
"$",
"port",
",",
"$",
"weight",
"=",
"0",
")",
"{",
"if",
"(",
"true",
"===",
"$",
"this",
"->",
"_hasServer",
"(",
"$",
"host",
",",
"$",
"port",
")",
")",
"{",
"return",
"true",
";",
... | Adds a server to the server pool.
@param string $host The hostname of the memcache server
@param int $port The port on which memcache is running, 11211 by default
@param int $weight The weight of the server
@return boolean TRUE on success or FALSE on failure.
@link http://php.net/manual/en/memcached.addser... | [
"Adds",
"a",
"server",
"to",
"the",
"server",
"pool",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/MemCache/AbstractMemcache.php#L172-L183 |
191,831 | backbee/backbee-php | Cache/MemCache/AbstractMemcache.php | AbstractMemcache.load | public function load($id, $bypassCheck = true, \DateTime $expire = null)
{
if (null === $expire) {
$expire = new \DateTime();
}
$last_timestamp = $this->test($id);
if (true === $bypassCheck) {
$last_timestamp = 0;
}
if (true === $bypassCheck... | php | public function load($id, $bypassCheck = true, \DateTime $expire = null)
{
if (null === $expire) {
$expire = new \DateTime();
}
$last_timestamp = $this->test($id);
if (true === $bypassCheck) {
$last_timestamp = 0;
}
if (true === $bypassCheck... | [
"public",
"function",
"load",
"(",
"$",
"id",
",",
"$",
"bypassCheck",
"=",
"true",
",",
"\\",
"DateTime",
"$",
"expire",
"=",
"null",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"expire",
")",
"{",
"$",
"expire",
"=",
"new",
"\\",
"DateTime",
"(",
... | Returns the available cache for the given id if found returns FALSE else.
@param string $id Cache id
@param boolean $bypassCheck Allow to find cache without test it before
@param \DateTime $expire Optionnal, the expiration time (now by default)
@return string|FALSE | [
"Returns",
"the",
"available",
"cache",
"for",
"the",
"given",
"id",
"if",
"found",
"returns",
"FALSE",
"else",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/MemCache/AbstractMemcache.php#L194-L215 |
191,832 | backbee/backbee-php | Cache/MemCache/AbstractMemcache.php | AbstractMemcache._hasServer | protected function _hasServer($host, $port)
{
$servers = $this->getServerList();
foreach ($servers as $server) {
if ($server['host'] === $host && $server['port'] === $port) {
return true;
}
}
return false;
} | php | protected function _hasServer($host, $port)
{
$servers = $this->getServerList();
foreach ($servers as $server) {
if ($server['host'] === $host && $server['port'] === $port) {
return true;
}
}
return false;
} | [
"protected",
"function",
"_hasServer",
"(",
"$",
"host",
",",
"$",
"port",
")",
"{",
"$",
"servers",
"=",
"$",
"this",
"->",
"getServerList",
"(",
")",
";",
"foreach",
"(",
"$",
"servers",
"as",
"$",
"server",
")",
"{",
"if",
"(",
"$",
"server",
"[... | Returns TRUE if the server is already added to Memcached, FALSE otherwise.
@param string $host
@param int $port
@return boolean
@throws \BackBee\Cache\Exception\CacheException Occurs if none memcached object is not initialized
@codeCoverageIgnore | [
"Returns",
"TRUE",
"if",
"the",
"server",
"is",
"already",
"added",
"to",
"Memcached",
"FALSE",
"otherwise",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/MemCache/AbstractMemcache.php#L388-L398 |
191,833 | backbee/backbee-php | Cache/MemCache/AbstractMemcache.php | AbstractMemcache._onError | protected function _onError($method)
{
$this->log('notice', sprintf('Error occured on Memcached::%s(): [%s] %s.', $method, $this->getResultCode(), $this->getResultMessage()));
return false;
} | php | protected function _onError($method)
{
$this->log('notice', sprintf('Error occured on Memcached::%s(): [%s] %s.', $method, $this->getResultCode(), $this->getResultMessage()));
return false;
} | [
"protected",
"function",
"_onError",
"(",
"$",
"method",
")",
"{",
"$",
"this",
"->",
"log",
"(",
"'notice'",
",",
"sprintf",
"(",
"'Error occured on Memcached::%s(): [%s] %s.'",
",",
"$",
"method",
",",
"$",
"this",
"->",
"getResultCode",
"(",
")",
",",
"$"... | Logs error result code and message.
@param string $method
@return boolean
@codeCoverageIgnore | [
"Logs",
"error",
"result",
"code",
"and",
"message",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/MemCache/AbstractMemcache.php#L408-L413 |
191,834 | backbee/backbee-php | Controller/FrontController.php | FrontController.getUrlByRoutePath | public function getUrlByRoutePath($route_path)
{
if (null === $url = $this->getRouteCollection()->getRoutePath($route_path)) {
$url = '/';
}
return $url;
} | php | public function getUrlByRoutePath($route_path)
{
if (null === $url = $this->getRouteCollection()->getRoutePath($route_path)) {
$url = '/';
}
return $url;
} | [
"public",
"function",
"getUrlByRoutePath",
"(",
"$",
"route_path",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"url",
"=",
"$",
"this",
"->",
"getRouteCollection",
"(",
")",
"->",
"getRoutePath",
"(",
"$",
"route_path",
")",
")",
"{",
"$",
"url",
"=",
"'/... | Return the url to the provided route path.
@param string $route_path
@return string | [
"Return",
"the",
"url",
"to",
"the",
"provided",
"route",
"path",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L393-L400 |
191,835 | backbee/backbee-php | Controller/FrontController.php | FrontController.terminate | public function terminate()
{
if (!$this->application || false === $this->application->isStarted()) {
return;
}
ob_implicit_flush(true);
flush();
// $response may not be set
if ($this->response instanceof Response) {
$this->application->getEv... | php | public function terminate()
{
if (!$this->application || false === $this->application->isStarted()) {
return;
}
ob_implicit_flush(true);
flush();
// $response may not be set
if ($this->response instanceof Response) {
$this->application->getEv... | [
"public",
"function",
"terminate",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"application",
"||",
"false",
"===",
"$",
"this",
"->",
"application",
"->",
"isStarted",
"(",
")",
")",
"{",
"return",
";",
"}",
"ob_implicit_flush",
"(",
"true",
")"... | This method executed on shutdown after the response is sent. | [
"This",
"method",
"executed",
"on",
"shutdown",
"after",
"the",
"response",
"is",
"sent",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L446-L462 |
191,836 | backbee/backbee-php | Controller/FrontController.php | FrontController.getRequestContext | protected function getRequestContext()
{
if (null === $this->requestContext) {
$this->requestContext = new RequestContext();
$this->requestContext->fromRequest($this->getRequest());
}
return $this->requestContext;
} | php | protected function getRequestContext()
{
if (null === $this->requestContext) {
$this->requestContext = new RequestContext();
$this->requestContext->fromRequest($this->getRequest());
}
return $this->requestContext;
} | [
"protected",
"function",
"getRequestContext",
"(",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"requestContext",
")",
"{",
"$",
"this",
"->",
"requestContext",
"=",
"new",
"RequestContext",
"(",
")",
";",
"$",
"this",
"->",
"requestContext",
"->... | Returns the current request context.
@access protected
@return RequestContext | [
"Returns",
"the",
"current",
"request",
"context",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L471-L479 |
191,837 | backbee/backbee-php | Controller/FrontController.php | FrontController.dispatch | private function dispatch($eventName, $controller = null, $type = self::MASTER_REQUEST, $stopWithResponse = true)
{
if (null === $this->application) {
return;
}
if (null !== $this->application->getEventDispatcher()) {
$event = new GetResponseEvent(null === $controlle... | php | private function dispatch($eventName, $controller = null, $type = self::MASTER_REQUEST, $stopWithResponse = true)
{
if (null === $this->application) {
return;
}
if (null !== $this->application->getEventDispatcher()) {
$event = new GetResponseEvent(null === $controlle... | [
"private",
"function",
"dispatch",
"(",
"$",
"eventName",
",",
"$",
"controller",
"=",
"null",
",",
"$",
"type",
"=",
"self",
"::",
"MASTER_REQUEST",
",",
"$",
"stopWithResponse",
"=",
"true",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"this",
"->",
"app... | Dispatches GetResponseEvent.
@access private
@param string $eventName The name of the event to dispatch
@param integer $type The type of the request
(one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
@param boolean $stopWithResponse Send response if TRUE and response ... | [
"Dispatches",
"GetResponseEvent",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L491-L505 |
191,838 | backbee/backbee-php | Controller/FrontController.php | FrontController.send | private function send(Response $response, $type = self::MASTER_REQUEST)
{
if (null !== $this->application && null !== $this->application->getEventDispatcher()) {
$event = new FilterResponseEvent($this, $this->getRequest(), $type, $response);
$this->application->getEventDispatcher()->... | php | private function send(Response $response, $type = self::MASTER_REQUEST)
{
if (null !== $this->application && null !== $this->application->getEventDispatcher()) {
$event = new FilterResponseEvent($this, $this->getRequest(), $type, $response);
$this->application->getEventDispatcher()->... | [
"private",
"function",
"send",
"(",
"Response",
"$",
"response",
",",
"$",
"type",
"=",
"self",
"::",
"MASTER_REQUEST",
")",
"{",
"if",
"(",
"null",
"!==",
"$",
"this",
"->",
"application",
"&&",
"null",
"!==",
"$",
"this",
"->",
"application",
"->",
"... | Dispatch FilterResponseEvent then send response.
@acces private
@param Response $response The response to filter then send
@param integer $type The type of the request
(one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) | [
"Dispatch",
"FilterResponseEvent",
"then",
"send",
"response",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L516-L527 |
191,839 | backbee/backbee-php | Controller/FrontController.php | FrontController.invokeAction | protected function invokeAction($type = self::MASTER_REQUEST)
{
$this->dispatch('frontcontroller.request');
$request = $this->getRequest();
$controllerResolver = $this->getApplication()->getContainer()->get('controller_resolver');
$controller = $controllerResolver->getController($re... | php | protected function invokeAction($type = self::MASTER_REQUEST)
{
$this->dispatch('frontcontroller.request');
$request = $this->getRequest();
$controllerResolver = $this->getApplication()->getContainer()->get('controller_resolver');
$controller = $controllerResolver->getController($re... | [
"protected",
"function",
"invokeAction",
"(",
"$",
"type",
"=",
"self",
"::",
"MASTER_REQUEST",
")",
"{",
"$",
"this",
"->",
"dispatch",
"(",
"'frontcontroller.request'",
")",
";",
"$",
"request",
"=",
"$",
"this",
"->",
"getRequest",
"(",
")",
";",
"$",
... | Invokes associated action to the current request.
@access private
@param int $type request type
@throws FrontControllerException | [
"Invokes",
"associated",
"action",
"to",
"the",
"current",
"request",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L538-L591 |
191,840 | backbee/backbee-php | Controller/FrontController.php | FrontController.getControllerActionEventName | private function getControllerActionEventName($controller, $actionName)
{
if (!is_object($controller)) {
throw new \InvalidArgumentException('Controller must be type of object, '.gettype($controller).' given.');
}
$eventName = str_replace('\\', '.', strtolower(get_class($control... | php | private function getControllerActionEventName($controller, $actionName)
{
if (!is_object($controller)) {
throw new \InvalidArgumentException('Controller must be type of object, '.gettype($controller).' given.');
}
$eventName = str_replace('\\', '.', strtolower(get_class($control... | [
"private",
"function",
"getControllerActionEventName",
"(",
"$",
"controller",
",",
"$",
"actionName",
")",
"{",
"if",
"(",
"!",
"is_object",
"(",
"$",
"controller",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'Controller must be type of... | Builds and returns controller's action event name.
@param object $controller
@param string $actionName
@return string
@throws \InvalidArgumentException if provided controller is not an object | [
"Builds",
"and",
"returns",
"controller",
"s",
"action",
"event",
"name",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Controller/FrontController.php#L620-L637 |
191,841 | backbee/backbee-php | Cache/CacheIdentifierGenerator.php | CacheIdentifierGenerator.addAppender | public function addAppender(IdentifierAppenderInterface $appender)
{
foreach ((array) $appender->getGroups() as $group_name) {
if (false === array_key_exists($group_name, $this->appenders)) {
$this->appenders[$group_name] = array();
}
$this->appenders[$gr... | php | public function addAppender(IdentifierAppenderInterface $appender)
{
foreach ((array) $appender->getGroups() as $group_name) {
if (false === array_key_exists($group_name, $this->appenders)) {
$this->appenders[$group_name] = array();
}
$this->appenders[$gr... | [
"public",
"function",
"addAppender",
"(",
"IdentifierAppenderInterface",
"$",
"appender",
")",
"{",
"foreach",
"(",
"(",
"array",
")",
"$",
"appender",
"->",
"getGroups",
"(",
")",
"as",
"$",
"group_name",
")",
"{",
"if",
"(",
"false",
"===",
"array_key_exis... | Add appender to current CacheIdentifierGenerator, sorted it by groups names.
@param IdentifierAppenderInterface $appender the appender to add | [
"Add",
"appender",
"to",
"current",
"CacheIdentifierGenerator",
"sorted",
"it",
"by",
"groups",
"names",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/CacheIdentifierGenerator.php#L68-L77 |
191,842 | backbee/backbee-php | Cache/CacheIdentifierGenerator.php | CacheIdentifierGenerator.compute | public function compute($group_name, $identifier, RendererInterface $renderer = null)
{
if (false === $this->isValidGroup($group_name)) {
throw new InvalidArgumentException("$group_name is not a valid cache identifier appender group.");
}
foreach ($this->appenders[$group_name] a... | php | public function compute($group_name, $identifier, RendererInterface $renderer = null)
{
if (false === $this->isValidGroup($group_name)) {
throw new InvalidArgumentException("$group_name is not a valid cache identifier appender group.");
}
foreach ($this->appenders[$group_name] a... | [
"public",
"function",
"compute",
"(",
"$",
"group_name",
",",
"$",
"identifier",
",",
"RendererInterface",
"$",
"renderer",
"=",
"null",
")",
"{",
"if",
"(",
"false",
"===",
"$",
"this",
"->",
"isValidGroup",
"(",
"$",
"group_name",
")",
")",
"{",
"throw... | This method will compute cache identifier with every appenders that belong to group name.
@param string $group_name the group name of appenders to apply
@param string $identifier identifier we want to update
@param RendererInterface $renderer the current renderer, can be null
@return string the identifier new... | [
"This",
"method",
"will",
"compute",
"cache",
"identifier",
"with",
"every",
"appenders",
"that",
"belong",
"to",
"group",
"name",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Cache/CacheIdentifierGenerator.php#L88-L99 |
191,843 | backbee/backbee-php | Bundle/AbstractBundleController.php | AbstractBundleController.decorateResponse | protected function decorateResponse($response, $method)
{
if (is_string($response)) {
$response = $this->createResponse($response);
}
if (!($response instanceof Response)) {
throw new \InvalidArgumentException(sprintf(
'%s must returns a string or an ... | php | protected function decorateResponse($response, $method)
{
if (is_string($response)) {
$response = $this->createResponse($response);
}
if (!($response instanceof Response)) {
throw new \InvalidArgumentException(sprintf(
'%s must returns a string or an ... | [
"protected",
"function",
"decorateResponse",
"(",
"$",
"response",
",",
"$",
"method",
")",
"{",
"if",
"(",
"is_string",
"(",
"$",
"response",
")",
")",
"{",
"$",
"response",
"=",
"$",
"this",
"->",
"createResponse",
"(",
"$",
"response",
")",
";",
"}"... | Decorate response to be sure to get Response Object
@param String|Response $response
@param String $method method called
@return Response
@throws \InvalidArgumentException | [
"Decorate",
"response",
"to",
"be",
"sure",
"to",
"get",
"Response",
"Object"
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Bundle/AbstractBundleController.php#L131-L147 |
191,844 | backbee/backbee-php | Bundle/AbstractBundleController.php | AbstractBundleController.invockeAction | protected function invockeAction($method, $arguments)
{
try {
$result = call_user_func_array([$this, $method], $arguments);
} catch (\Exception $e) {
$result = $this->createResponse(
sprintf('%s::%s - %s:%s', get_class($this), $method, get_class($e), $e->getMe... | php | protected function invockeAction($method, $arguments)
{
try {
$result = call_user_func_array([$this, $method], $arguments);
} catch (\Exception $e) {
$result = $this->createResponse(
sprintf('%s::%s - %s:%s', get_class($this), $method, get_class($e), $e->getMe... | [
"protected",
"function",
"invockeAction",
"(",
"$",
"method",
",",
"$",
"arguments",
")",
"{",
"try",
"{",
"$",
"result",
"=",
"call_user_func_array",
"(",
"[",
"$",
"this",
",",
"$",
"method",
"]",
",",
"$",
"arguments",
")",
";",
"}",
"catch",
"(",
... | Execute the controller method and return his response
@param String $method method to call
@param Array $arguments method arguments
@return String|Response | [
"Execute",
"the",
"controller",
"method",
"and",
"return",
"his",
"response"
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Bundle/AbstractBundleController.php#L156-L167 |
191,845 | backbee/backbee-php | Bundle/AbstractBundleController.php | AbstractBundleController.checkMethodExist | protected function checkMethodExist($method)
{
if (!method_exists($this, $method)) {
if ($this->application->isDebugMode()) {
return $this->createResponse(
sprintf('Called undefined method: %s.', get_class($this).'::'.$method),
500
... | php | protected function checkMethodExist($method)
{
if (!method_exists($this, $method)) {
if ($this->application->isDebugMode()) {
return $this->createResponse(
sprintf('Called undefined method: %s.', get_class($this).'::'.$method),
500
... | [
"protected",
"function",
"checkMethodExist",
"(",
"$",
"method",
")",
"{",
"if",
"(",
"!",
"method_exists",
"(",
"$",
"this",
",",
"$",
"method",
")",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"application",
"->",
"isDebugMode",
"(",
")",
")",
"{",
"re... | check if the method exist
@param String $method method name
@return true|Response
@throws \LogicException | [
"check",
"if",
"the",
"method",
"exist"
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Bundle/AbstractBundleController.php#L176-L190 |
191,846 | backbee/backbee-php | Bundle/AbstractBundleController.php | AbstractBundleController.throwsExceptionIfEntityNotFound | protected function throwsExceptionIfEntityNotFound($entityName, $id)
{
if (null === $entity = $this->getRepository($entityName)->find($id)) {
throw new \InvalidArgumentException(sprintf('Cannot find `%s` with id `%s`.', $entityName, $id));
}
return $entity;
} | php | protected function throwsExceptionIfEntityNotFound($entityName, $id)
{
if (null === $entity = $this->getRepository($entityName)->find($id)) {
throw new \InvalidArgumentException(sprintf('Cannot find `%s` with id `%s`.', $entityName, $id));
}
return $entity;
} | [
"protected",
"function",
"throwsExceptionIfEntityNotFound",
"(",
"$",
"entityName",
",",
"$",
"id",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"entity",
"=",
"$",
"this",
"->",
"getRepository",
"(",
"$",
"entityName",
")",
"->",
"find",
"(",
"$",
"id",
")"... | Tries to get entity with provided identifier and throws exception if not found.
Note that you should not provide namespace prefix (=BackBee\Bundle\AdminBundle\Entity).
@param string $entityName The entity namespace
@param string $id The identifier to find
@return object
@throws \InvalidArgumentException if ... | [
"Tries",
"to",
"get",
"entity",
"with",
"provided",
"identifier",
"and",
"throws",
"exception",
"if",
"not",
"found",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Bundle/AbstractBundleController.php#L284-L291 |
191,847 | backbee/backbee-php | NestedNode/AbstractNestedNode.php | AbstractNestedNode.isAncestorOf | public function isAncestorOf(AbstractNestedNode $node, $strict = true)
{
if (true === $strict) {
return (($node->getRoot() === $this->getRoot()) && ($node->getLeftnode() > $this->getLeftnode()) && ($node->getRightnode() < $this->getRightnode()));
} else {
return (($node->getR... | php | public function isAncestorOf(AbstractNestedNode $node, $strict = true)
{
if (true === $strict) {
return (($node->getRoot() === $this->getRoot()) && ($node->getLeftnode() > $this->getLeftnode()) && ($node->getRightnode() < $this->getRightnode()));
} else {
return (($node->getR... | [
"public",
"function",
"isAncestorOf",
"(",
"AbstractNestedNode",
"$",
"node",
",",
"$",
"strict",
"=",
"true",
")",
"{",
"if",
"(",
"true",
"===",
"$",
"strict",
")",
"{",
"return",
"(",
"(",
"$",
"node",
"->",
"getRoot",
"(",
")",
"===",
"$",
"this"... | Is this node is an ancestor of the provided one ?
@param \BackBee\NestedNode\AbstractNestedNode $node
@param Boolean $strict Optional, if TRUE (default) this node is excluded of ancestors list
@return Boolean TRUE if this node is an anscestor or provided node, FALSE o... | [
"Is",
"this",
"node",
"is",
"an",
"ancestor",
"of",
"the",
"provided",
"one",
"?"
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/NestedNode/AbstractNestedNode.php#L300-L307 |
191,848 | backbee/backbee-php | NestedNode/AbstractNestedNode.php | AbstractNestedNode.setLeftnode | public function setLeftnode($leftnode)
{
if (false === Numeric::isPositiveInteger($leftnode)) {
throw new InvalidArgumentException('A nested node position must be a strictly positive integer.');
}
$this->_leftnode = $leftnode;
return $this;
} | php | public function setLeftnode($leftnode)
{
if (false === Numeric::isPositiveInteger($leftnode)) {
throw new InvalidArgumentException('A nested node position must be a strictly positive integer.');
}
$this->_leftnode = $leftnode;
return $this;
} | [
"public",
"function",
"setLeftnode",
"(",
"$",
"leftnode",
")",
"{",
"if",
"(",
"false",
"===",
"Numeric",
"::",
"isPositiveInteger",
"(",
"$",
"leftnode",
")",
")",
"{",
"throw",
"new",
"InvalidArgumentException",
"(",
"'A nested node position must be a strictly po... | Sets the left position.
@param int $leftnode
@return \BackBee\NestedNode\AbstractNestedNode
@throws \BackBee\Exception\InvalidArgumentException Occurs if the value can not be cast to positive integer | [
"Sets",
"the",
"left",
"position",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/NestedNode/AbstractNestedNode.php#L382-L391 |
191,849 | backbee/backbee-php | NestedNode/AbstractNestedNode.php | AbstractNestedNode.setRightnode | public function setRightnode($rightnode)
{
if (false === Numeric::isPositiveInteger($rightnode)) {
throw new InvalidArgumentException('A nested node position must be a strictly positive integer.');
}
$this->_rightnode = $rightnode;
return $this;
} | php | public function setRightnode($rightnode)
{
if (false === Numeric::isPositiveInteger($rightnode)) {
throw new InvalidArgumentException('A nested node position must be a strictly positive integer.');
}
$this->_rightnode = $rightnode;
return $this;
} | [
"public",
"function",
"setRightnode",
"(",
"$",
"rightnode",
")",
"{",
"if",
"(",
"false",
"===",
"Numeric",
"::",
"isPositiveInteger",
"(",
"$",
"rightnode",
")",
")",
"{",
"throw",
"new",
"InvalidArgumentException",
"(",
"'A nested node position must be a strictly... | Sets the right position.
@param int $rightnode
@return \BackBee\NestedNode\AbstractNestedNode
@throws \BackBee\Exception\InvalidArgumentException Occurs if the value can not be cast to positive integer | [
"Sets",
"the",
"right",
"position",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/NestedNode/AbstractNestedNode.php#L400-L409 |
191,850 | EloGank/lol-replay-downloader | examples/utils/LoLNexusParser.php | LoLNexusParser.parseRandom | public function parseRandom($regionId = self::REGION_EUW, OutputInterface $output = null)
{
$hasOutput = null != $output;
if ($hasOutput) {
$output->write("Parsing homepage...\t\t\t");
}
$buzz = new Browser();
$response = $buzz->get('http://www.lolnexus.com/recen... | php | public function parseRandom($regionId = self::REGION_EUW, OutputInterface $output = null)
{
$hasOutput = null != $output;
if ($hasOutput) {
$output->write("Parsing homepage...\t\t\t");
}
$buzz = new Browser();
$response = $buzz->get('http://www.lolnexus.com/recen... | [
"public",
"function",
"parseRandom",
"(",
"$",
"regionId",
"=",
"self",
"::",
"REGION_EUW",
",",
"OutputInterface",
"$",
"output",
"=",
"null",
")",
"{",
"$",
"hasOutput",
"=",
"null",
"!=",
"$",
"output",
";",
"if",
"(",
"$",
"hasOutput",
")",
"{",
"$... | Select the first player in the recent games list for a selected region
@param int $regionId
@param OutputInterface $output | [
"Select",
"the",
"first",
"player",
"in",
"the",
"recent",
"games",
"list",
"for",
"a",
"selected",
"region"
] | f5e61deb331ac5a863dcb69af115aba75611bc0e | https://github.com/EloGank/lol-replay-downloader/blob/f5e61deb331ac5a863dcb69af115aba75611bc0e/examples/utils/LoLNexusParser.php#L58-L77 |
191,851 | backbee/backbee-php | Event/Listener/ExceptionListener.php | ExceptionListener.getDebugTraceResponse | private function getDebugTraceResponse(\Exception $exception, $statusCode)
{
$request = $this->application->getRequest();
$response = (new \Symfony\Component\Debug\ExceptionHandler())->createResponse($exception);
$response->setStatusCode($statusCode);
if (in_array('application/json'... | php | private function getDebugTraceResponse(\Exception $exception, $statusCode)
{
$request = $this->application->getRequest();
$response = (new \Symfony\Component\Debug\ExceptionHandler())->createResponse($exception);
$response->setStatusCode($statusCode);
if (in_array('application/json'... | [
"private",
"function",
"getDebugTraceResponse",
"(",
"\\",
"Exception",
"$",
"exception",
",",
"$",
"statusCode",
")",
"{",
"$",
"request",
"=",
"$",
"this",
"->",
"application",
"->",
"getRequest",
"(",
")",
";",
"$",
"response",
"=",
"(",
"new",
"\\",
... | Return response with debug trace.
@param \Exception $exception
@param int $statusCode
@return Response | [
"Return",
"response",
"with",
"debug",
"trace",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Event/Listener/ExceptionListener.php#L92-L103 |
191,852 | backbee/backbee-php | Event/Listener/ExceptionListener.php | ExceptionListener.getErrorPageResponse | private function getErrorPageResponse(\Exception $exception, $statusCode)
{
$parameter = $this->application->getContainer()->getParameter('error.default');
if ($this->application->getContainer()->hasParameter('error.'.$statusCode)) {
$parameter = $this->application->getContainer()->getPa... | php | private function getErrorPageResponse(\Exception $exception, $statusCode)
{
$parameter = $this->application->getContainer()->getParameter('error.default');
if ($this->application->getContainer()->hasParameter('error.'.$statusCode)) {
$parameter = $this->application->getContainer()->getPa... | [
"private",
"function",
"getErrorPageResponse",
"(",
"\\",
"Exception",
"$",
"exception",
",",
"$",
"statusCode",
")",
"{",
"$",
"parameter",
"=",
"$",
"this",
"->",
"application",
"->",
"getContainer",
"(",
")",
"->",
"getParameter",
"(",
"'error.default'",
")... | Returns response for rendered error page.
@param \Exception $exception
@param int $statusCode
@return Response | [
"Returns",
"response",
"for",
"rendered",
"error",
"page",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Event/Listener/ExceptionListener.php#L113-L123 |
191,853 | backbee/backbee-php | Event/Listener/ExceptionListener.php | ExceptionListener.getHttpStatusCode | private function getHttpStatusCode($statusCode)
{
if ($statusCode >= 100 && $statusCode < 600) {
return $statusCode;
} elseif (
FrontControllerException::BAD_REQUEST === $statusCode
|| FrontControllerException::INTERNAL_ERROR === $statusCode
... | php | private function getHttpStatusCode($statusCode)
{
if ($statusCode >= 100 && $statusCode < 600) {
return $statusCode;
} elseif (
FrontControllerException::BAD_REQUEST === $statusCode
|| FrontControllerException::INTERNAL_ERROR === $statusCode
... | [
"private",
"function",
"getHttpStatusCode",
"(",
"$",
"statusCode",
")",
"{",
"if",
"(",
"$",
"statusCode",
">=",
"100",
"&&",
"$",
"statusCode",
"<",
"600",
")",
"{",
"return",
"$",
"statusCode",
";",
"}",
"elseif",
"(",
"FrontControllerException",
"::",
... | Returns a valid HTTP status code.
@param int $statusCode
@return int | [
"Returns",
"a",
"valid",
"HTTP",
"status",
"code",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Event/Listener/ExceptionListener.php#L132-L145 |
191,854 | backbee/backbee-php | Event/Event.php | Event.getTarget | public function getTarget($classname = null)
{
if (null === $classname || true === $this->isTargetInstanceOf($classname)) {
return $this->target;
}
throw new \InvalidArgumentException(sprintf(
'Invalid target: expected `%s`, `%s` provided.',
$classname,
... | php | public function getTarget($classname = null)
{
if (null === $classname || true === $this->isTargetInstanceOf($classname)) {
return $this->target;
}
throw new \InvalidArgumentException(sprintf(
'Invalid target: expected `%s`, `%s` provided.',
$classname,
... | [
"public",
"function",
"getTarget",
"(",
"$",
"classname",
"=",
"null",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"classname",
"||",
"true",
"===",
"$",
"this",
"->",
"isTargetInstanceOf",
"(",
"$",
"classname",
")",
")",
"{",
"return",
"$",
"this",
"->"... | Returns the target of the event, optionally checks the class of the target.
@param type $classname The optional class name to checks
@return mixed
@throws \InvalidArgumentException Occures on invalid type of target
according to the waited class name | [
"Returns",
"the",
"target",
"of",
"the",
"event",
"optionally",
"checks",
"the",
"class",
"of",
"the",
"target",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Event/Event.php#L74-L85 |
191,855 | backbee/backbee-php | Security/Listeners/ContextListener.php | ContextListener.handle | public function handle(GetResponseEvent $event)
{
$request = $event->getRequest();
$application = $event->getKernel()->getApplication();
if (null !== $application && false === $request->hasSession()) {
$container = $application->getContainer();
$event->getRequest()->... | php | public function handle(GetResponseEvent $event)
{
$request = $event->getRequest();
$application = $event->getKernel()->getApplication();
if (null !== $application && false === $request->hasSession()) {
$container = $application->getContainer();
$event->getRequest()->... | [
"public",
"function",
"handle",
"(",
"GetResponseEvent",
"$",
"event",
")",
"{",
"$",
"request",
"=",
"$",
"event",
"->",
"getRequest",
"(",
")",
";",
"$",
"application",
"=",
"$",
"event",
"->",
"getKernel",
"(",
")",
"->",
"getApplication",
"(",
")",
... | Initiate session if not available then reads the SecurityContext from it.
@param GetResponseEvent $event A GetResponseEvent instance | [
"Initiate",
"session",
"if",
"not",
"available",
"then",
"reads",
"the",
"SecurityContext",
"from",
"it",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Listeners/ContextListener.php#L42-L53 |
191,856 | backbee/backbee-php | Rest/Controller/LayoutController.php | LayoutController.getWorkflowStateAction | public function getWorkflowStateAction(Layout $layout)
{
$layout_states = $this->getApplication()->getEntityManager()
->getRepository('BackBee\Workflow\State')
->getWorkflowStatesForLayout($layout)
;
$states = array(
'online' => array(),
'off... | php | public function getWorkflowStateAction(Layout $layout)
{
$layout_states = $this->getApplication()->getEntityManager()
->getRepository('BackBee\Workflow\State')
->getWorkflowStatesForLayout($layout)
;
$states = array(
'online' => array(),
'off... | [
"public",
"function",
"getWorkflowStateAction",
"(",
"Layout",
"$",
"layout",
")",
"{",
"$",
"layout_states",
"=",
"$",
"this",
"->",
"getApplication",
"(",
")",
"->",
"getEntityManager",
"(",
")",
"->",
"getRepository",
"(",
"'BackBee\\Workflow\\State'",
")",
"... | Returns every workflow states associated to provided layout.
@param Layout $layout
@return JsonResponse
@Rest\ParamConverter(name="layout", class="BackBee\Site\Layout") | [
"Returns",
"every",
"workflow",
"states",
"associated",
"to",
"provided",
"layout",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Rest/Controller/LayoutController.php#L52-L90 |
191,857 | backbee/backbee-php | Security/Group.php | Group.setSite | public function setSite(\BackBee\Site\Site $site = null)
{
$this->_site = $site;
return $this;
} | php | public function setSite(\BackBee\Site\Site $site = null)
{
$this->_site = $site;
return $this;
} | [
"public",
"function",
"setSite",
"(",
"\\",
"BackBee",
"\\",
"Site",
"\\",
"Site",
"$",
"site",
"=",
"null",
")",
"{",
"$",
"this",
"->",
"_site",
"=",
"$",
"site",
";",
"return",
"$",
"this",
";",
"}"
] | Sets the optional site.
@param \BackBee\Site\Site $site
@return \BackBee\Security\Group
@codeCoverageIgnore | [
"Sets",
"the",
"optional",
"site",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Security/Group.php#L270-L275 |
191,858 | backbee/backbee-php | ClassContent/Listener/ClassContentListener.php | ClassContentListener.onInclude | public static function onInclude(Event $event)
{
$dispatcher = $event->getDispatcher();
if (null !== $dispatcher->getApplication()) {
if (null === $em = $dispatcher->getApplication()->getEntityManager()) {
return;
}
$shortClassname = AbstractClass... | php | public static function onInclude(Event $event)
{
$dispatcher = $event->getDispatcher();
if (null !== $dispatcher->getApplication()) {
if (null === $em = $dispatcher->getApplication()->getEntityManager()) {
return;
}
$shortClassname = AbstractClass... | [
"public",
"static",
"function",
"onInclude",
"(",
"Event",
"$",
"event",
")",
"{",
"$",
"dispatcher",
"=",
"$",
"event",
"->",
"getDispatcher",
"(",
")",
";",
"if",
"(",
"null",
"!==",
"$",
"dispatcher",
"->",
"getApplication",
"(",
")",
")",
"{",
"if"... | Add discriminator values to class MetaData when a content class is loaded
Occur on classcontent.include events.
@param Event $event | [
"Add",
"discriminator",
"values",
"to",
"class",
"MetaData",
"when",
"a",
"content",
"class",
"is",
"loaded",
"Occur",
"on",
"classcontent",
".",
"include",
"events",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Listener/ClassContentListener.php#L53-L71 |
191,859 | backbee/backbee-php | ClassContent/Listener/ClassContentListener.php | ClassContentListener.onUpdate | public static function onUpdate(Event $event)
{
$content = $event->getTarget();
if (!($content instanceof AbstractClassContent)) {
throw new BBException(
'Enable to update object',
BBException::INVALID_ARGUMENT,
new \InvalidArgumentExceptio... | php | public static function onUpdate(Event $event)
{
$content = $event->getTarget();
if (!($content instanceof AbstractClassContent)) {
throw new BBException(
'Enable to update object',
BBException::INVALID_ARGUMENT,
new \InvalidArgumentExceptio... | [
"public",
"static",
"function",
"onUpdate",
"(",
"Event",
"$",
"event",
")",
"{",
"$",
"content",
"=",
"$",
"event",
"->",
"getTarget",
"(",
")",
";",
"if",
"(",
"!",
"(",
"$",
"content",
"instanceof",
"AbstractClassContent",
")",
")",
"{",
"throw",
"n... | Occurs on classcontent.update event.
@param Event $event
@throws BBException Occurs on illegal targeted object or missing BackBee Application | [
"Occurs",
"on",
"classcontent",
".",
"update",
"event",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Listener/ClassContentListener.php#L154-L207 |
191,860 | backbee/backbee-php | ClassContent/Listener/ClassContentListener.php | ClassContentListener.onRemoveElementFile | public static function onRemoveElementFile(Event $event)
{
$dispatcher = $event->getDispatcher();
$application = $dispatcher->getApplication();
try {
$content = $event->getEventArgs()->getEntity();
if (!($content instanceof ElementFile)) {
return;
... | php | public static function onRemoveElementFile(Event $event)
{
$dispatcher = $event->getDispatcher();
$application = $dispatcher->getApplication();
try {
$content = $event->getEventArgs()->getEntity();
if (!($content instanceof ElementFile)) {
return;
... | [
"public",
"static",
"function",
"onRemoveElementFile",
"(",
"Event",
"$",
"event",
")",
"{",
"$",
"dispatcher",
"=",
"$",
"event",
"->",
"getDispatcher",
"(",
")",
";",
"$",
"application",
"=",
"$",
"dispatcher",
"->",
"getApplication",
"(",
")",
";",
"try... | Occurs on element.file.postremove events.
@param Event $event | [
"Occurs",
"on",
"element",
".",
"file",
".",
"postremove",
"events",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Listener/ClassContentListener.php#L214-L237 |
191,861 | backbee/backbee-php | ClassContent/Listener/ClassContentListener.php | ClassContentListener.onPostCall | public static function onPostCall(Event $event)
{
$response = $event->getResponse();
if ($response->headers->get('content-type') === 'text/html') {
return;
}
$application = $event->getApplication();
$renderer = $application->getRenderer();
$content = json... | php | public static function onPostCall(Event $event)
{
$response = $event->getResponse();
if ($response->headers->get('content-type') === 'text/html') {
return;
}
$application = $event->getApplication();
$renderer = $application->getRenderer();
$content = json... | [
"public",
"static",
"function",
"onPostCall",
"(",
"Event",
"$",
"event",
")",
"{",
"$",
"response",
"=",
"$",
"event",
"->",
"getResponse",
"(",
")",
";",
"if",
"(",
"$",
"response",
"->",
"headers",
"->",
"get",
"(",
"'content-type'",
")",
"===",
"'t... | Occurs on rest.controller.classcontentcontroller.getAction.postcall events.
@param Event $event | [
"Occurs",
"on",
"rest",
".",
"controller",
".",
"classcontentcontroller",
".",
"getAction",
".",
"postcall",
"events",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Listener/ClassContentListener.php#L244-L279 |
191,862 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.replaceOptContentTable | public function replaceOptContentTable(AbstractClassContent $content)
{
if (null === $content->getMainNode()) {
return $this;
}
$command = 'REPLACE';
if (!$this->replaceSupported) {
// REPLACE command not supported, remove first then insert
$this-... | php | public function replaceOptContentTable(AbstractClassContent $content)
{
if (null === $content->getMainNode()) {
return $this;
}
$command = 'REPLACE';
if (!$this->replaceSupported) {
// REPLACE command not supported, remove first then insert
$this-... | [
"public",
"function",
"replaceOptContentTable",
"(",
"AbstractClassContent",
"$",
"content",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"content",
"->",
"getMainNode",
"(",
")",
")",
"{",
"return",
"$",
"this",
";",
"}",
"$",
"command",
"=",
"'REPLACE'",
";"... | Replaces content in optimized tables.
@param AbstractClassContent $content
@return IndexationRepository | [
"Replaces",
"content",
"in",
"optimized",
"tables",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L87-L129 |
191,863 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeOptContentTable | public function removeOptContentTable(AbstractClassContent $content)
{
$this->getEntityManager()
->createQuery('DELETE FROM BackBee\ClassContent\Indexes\OptContentByModified o WHERE o._uid=:uid')
->setParameter('uid', $content->getUid())
->execute();
... | php | public function removeOptContentTable(AbstractClassContent $content)
{
$this->getEntityManager()
->createQuery('DELETE FROM BackBee\ClassContent\Indexes\OptContentByModified o WHERE o._uid=:uid')
->setParameter('uid', $content->getUid())
->execute();
... | [
"public",
"function",
"removeOptContentTable",
"(",
"AbstractClassContent",
"$",
"content",
")",
"{",
"$",
"this",
"->",
"getEntityManager",
"(",
")",
"->",
"createQuery",
"(",
"'DELETE FROM BackBee\\ClassContent\\Indexes\\OptContentByModified o WHERE o._uid=:uid'",
")",
"->"... | Removes content from optimized table.
@param \BackBee\ClassContent\AbstractClassContent $content
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Removes",
"content",
"from",
"optimized",
"table",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L138-L146 |
191,864 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.replaceIdxSiteContents | public function replaceIdxSiteContents(Site $site, array $contents)
{
$contentUids = $this->getAClassContentUids($contents);
return $this->replaceIdxSiteContentsUid($site->getUid(), $contentUids);
} | php | public function replaceIdxSiteContents(Site $site, array $contents)
{
$contentUids = $this->getAClassContentUids($contents);
return $this->replaceIdxSiteContentsUid($site->getUid(), $contentUids);
} | [
"public",
"function",
"replaceIdxSiteContents",
"(",
"Site",
"$",
"site",
",",
"array",
"$",
"contents",
")",
"{",
"$",
"contentUids",
"=",
"$",
"this",
"->",
"getAClassContentUids",
"(",
"$",
"contents",
")",
";",
"return",
"$",
"this",
"->",
"replaceIdxSit... | Replaces site-content indexes for an array of contents in a site.
@param \BackBee\Site\Site $site
@param array $contents An array of AbstractClassContent
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Replaces",
"site",
"-",
"content",
"indexes",
"for",
"an",
"array",
"of",
"contents",
"in",
"a",
"site",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L156-L161 |
191,865 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxSiteContents | public function removeIdxSiteContents(Site $site, array $contents)
{
return $this->removeIdxSiteContentsByUids($site->getUid(), $this->getAClassContentUids($contents));
} | php | public function removeIdxSiteContents(Site $site, array $contents)
{
return $this->removeIdxSiteContentsByUids($site->getUid(), $this->getAClassContentUids($contents));
} | [
"public",
"function",
"removeIdxSiteContents",
"(",
"Site",
"$",
"site",
",",
"array",
"$",
"contents",
")",
"{",
"return",
"$",
"this",
"->",
"removeIdxSiteContentsByUids",
"(",
"$",
"site",
"->",
"getUid",
"(",
")",
",",
"$",
"this",
"->",
"getAClassConten... | Removes site-content indexes for an array of contents in a site.
@param \BackBee\Site\Site $site
@param array $contents An array of AbstractClassContent
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Removes",
"site",
"-",
"content",
"indexes",
"for",
"an",
"array",
"of",
"contents",
"in",
"a",
"site",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L171-L174 |
191,866 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.replaceIdxContentContents | public function replaceIdxContentContents(array $contents)
{
$parentUids = array();
foreach ($contents as $content) {
// avoid loop if content is already treated
if (null === $content || true === $content->isElementContent()) {
continue;
} elseif (... | php | public function replaceIdxContentContents(array $contents)
{
$parentUids = array();
foreach ($contents as $content) {
// avoid loop if content is already treated
if (null === $content || true === $content->isElementContent()) {
continue;
} elseif (... | [
"public",
"function",
"replaceIdxContentContents",
"(",
"array",
"$",
"contents",
")",
"{",
"$",
"parentUids",
"=",
"array",
"(",
")",
";",
"foreach",
"(",
"$",
"contents",
"as",
"$",
"content",
")",
"{",
"// avoid loop if content is already treated",
"if",
"(",... | Replaces content-content indexes for an array of contents.
@param array $contents An array of AbstractClassContent
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Replaces",
"content",
"-",
"content",
"indexes",
"for",
"an",
"array",
"of",
"contents",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L183-L200 |
191,867 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.replaceIdxSiteContentsUid | public function replaceIdxSiteContentsUid($siteUid, array $contentUids)
{
if (0 < count($contentUids)) {
$command = 'REPLACE';
if (!$this->replaceSupported) {
// REPLACE command not supported, remove first then insert
$this->removeIdxSiteContentsByUids... | php | public function replaceIdxSiteContentsUid($siteUid, array $contentUids)
{
if (0 < count($contentUids)) {
$command = 'REPLACE';
if (!$this->replaceSupported) {
// REPLACE command not supported, remove first then insert
$this->removeIdxSiteContentsByUids... | [
"public",
"function",
"replaceIdxSiteContentsUid",
"(",
"$",
"siteUid",
",",
"array",
"$",
"contentUids",
")",
"{",
"if",
"(",
"0",
"<",
"count",
"(",
"$",
"contentUids",
")",
")",
"{",
"$",
"command",
"=",
"'REPLACE'",
";",
"if",
"(",
"!",
"$",
"this"... | Replaces or inserts a set of Site-Content indexes.
@param string $siteUid
@param array $contentUids
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Replaces",
"or",
"inserts",
"a",
"set",
"of",
"Site",
"-",
"Content",
"indexes",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L222-L252 |
191,868 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.getDescendantsContentUids | public function getDescendantsContentUids($contents)
{
if (false === is_array($contents)) {
$contents = array($contents);
}
$meta = $this->_em->getClassMetadata('BackBee\ClassContent\Indexes\IdxContentContent');
$q = $this->_em->getConnection()
->createQ... | php | public function getDescendantsContentUids($contents)
{
if (false === is_array($contents)) {
$contents = array($contents);
}
$meta = $this->_em->getClassMetadata('BackBee\ClassContent\Indexes\IdxContentContent');
$q = $this->_em->getConnection()
->createQ... | [
"public",
"function",
"getDescendantsContentUids",
"(",
"$",
"contents",
")",
"{",
"if",
"(",
"false",
"===",
"is_array",
"(",
"$",
"contents",
")",
")",
"{",
"$",
"contents",
"=",
"array",
"(",
"$",
"contents",
")",
";",
"}",
"$",
"meta",
"=",
"$",
... | Returns an array of content uids owned by provided contents.
@param mixed $contents
@return array | [
"Returns",
"an",
"array",
"of",
"content",
"uids",
"owned",
"by",
"provided",
"contents",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L364-L396 |
191,869 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.getNodeUids | public function getNodeUids(array $contentUids)
{
if (empty($contentUids)) {
return [];
}
$meta = $this
->getEntityManager()
->getClassMetadata('BackBee\ClassContent\AbstractClassContent');
$nodeUids = $this
->getEntityMan... | php | public function getNodeUids(array $contentUids)
{
if (empty($contentUids)) {
return [];
}
$meta = $this
->getEntityManager()
->getClassMetadata('BackBee\ClassContent\AbstractClassContent');
$nodeUids = $this
->getEntityMan... | [
"public",
"function",
"getNodeUids",
"(",
"array",
"$",
"contentUids",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"contentUids",
")",
")",
"{",
"return",
"[",
"]",
";",
"}",
"$",
"meta",
"=",
"$",
"this",
"->",
"getEntityManager",
"(",
")",
"->",
"getCl... | Returns every main node attach to the provided content uids.
@param array $contentUids
@return array | [
"Returns",
"every",
"main",
"node",
"attach",
"to",
"the",
"provided",
"content",
"uids",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L405-L427 |
191,870 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxSiteContentsByUids | private function removeIdxSiteContentsByUids($siteUid, array $contentUids)
{
if (0 < count($contentUids)) {
$this->getEntityManager()
->createQuery('DELETE FROM BackBee\ClassContent\Indexes\IdxSiteContent i
WHERE i.site_uid=:site_uid
... | php | private function removeIdxSiteContentsByUids($siteUid, array $contentUids)
{
if (0 < count($contentUids)) {
$this->getEntityManager()
->createQuery('DELETE FROM BackBee\ClassContent\Indexes\IdxSiteContent i
WHERE i.site_uid=:site_uid
... | [
"private",
"function",
"removeIdxSiteContentsByUids",
"(",
"$",
"siteUid",
",",
"array",
"$",
"contentUids",
")",
"{",
"if",
"(",
"0",
"<",
"count",
"(",
"$",
"contentUids",
")",
")",
"{",
"$",
"this",
"->",
"getEntityManager",
"(",
")",
"->",
"createQuery... | Removes a set of Site-Content indexes.
@param string $siteUid
@param array $contentUids
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Removes",
"a",
"set",
"of",
"Site",
"-",
"Content",
"indexes",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L437-L451 |
191,871 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.replaceIdxContentContentsByUids | private function replaceIdxContentContentsByUids(array $parentUids)
{
if (0 < count($parentUids)) {
$command = 'REPLACE';
if (!$this->replaceSupported) {
// REPLACE command not supported, remove first then insert
$this->_removeIdxContentContents(array_... | php | private function replaceIdxContentContentsByUids(array $parentUids)
{
if (0 < count($parentUids)) {
$command = 'REPLACE';
if (!$this->replaceSupported) {
// REPLACE command not supported, remove first then insert
$this->_removeIdxContentContents(array_... | [
"private",
"function",
"replaceIdxContentContentsByUids",
"(",
"array",
"$",
"parentUids",
")",
"{",
"if",
"(",
"0",
"<",
"count",
"(",
"$",
"parentUids",
")",
")",
"{",
"$",
"command",
"=",
"'REPLACE'",
";",
"if",
"(",
"!",
"$",
"this",
"->",
"replaceSu... | Replaces a set of Site-Content indexes.
@param array $parentUids
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Replaces",
"a",
"set",
"of",
"Site",
"-",
"Content",
"indexes",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L460-L496 |
191,872 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository._removeIdxContentContents | public function _removeIdxContentContents(array $contentUids)
{
if (0 < count($contentUids)) {
$this->getEntityManager()
->createQuery('DELETE FROM BackBee\ClassContent\Indexes\IdxContentContent i
WHERE i.content_uid IN(:content_uids)
... | php | public function _removeIdxContentContents(array $contentUids)
{
if (0 < count($contentUids)) {
$this->getEntityManager()
->createQuery('DELETE FROM BackBee\ClassContent\Indexes\IdxContentContent i
WHERE i.content_uid IN(:content_uids)
... | [
"public",
"function",
"_removeIdxContentContents",
"(",
"array",
"$",
"contentUids",
")",
"{",
"if",
"(",
"0",
"<",
"count",
"(",
"$",
"contentUids",
")",
")",
"{",
"$",
"this",
"->",
"getEntityManager",
"(",
")",
"->",
"createQuery",
"(",
"'DELETE FROM Back... | Removes a set of Content-Content indexes.
@param array $contentUids
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Removes",
"a",
"set",
"of",
"Content",
"-",
"Content",
"indexes",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L505-L519 |
191,873 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.executeUpdate | private function executeUpdate($query, array $params = array(), array $types = array())
{
$this->getEntityManager()
->getConnection()
->executeUpdate($query, $params, $types);
return $this;
} | php | private function executeUpdate($query, array $params = array(), array $types = array())
{
$this->getEntityManager()
->getConnection()
->executeUpdate($query, $params, $types);
return $this;
} | [
"private",
"function",
"executeUpdate",
"(",
"$",
"query",
",",
"array",
"$",
"params",
"=",
"array",
"(",
")",
",",
"array",
"$",
"types",
"=",
"array",
"(",
")",
")",
"{",
"$",
"this",
"->",
"getEntityManager",
"(",
")",
"->",
"getConnection",
"(",
... | Executes an, optionally parameterized, SQL query.
@param string $query The SQL query to execute
@param array $params The parameters to bind to the query, if any
@param array $types The types the previous parameters are in
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Executes",
"an",
"optionally",
"parameterized",
"SQL",
"query",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L530-L537 |
191,874 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxContentContent | private function removeIdxContentContent(AbstractClassContent $content)
{
$query = 'DELETE FROM idx_content_content WHERE content_uid = :child OR subcontent_uid = :child';
$params = array(
'child' => $content->getUid(),
);
return $this->executeUpdate($query, $params);
... | php | private function removeIdxContentContent(AbstractClassContent $content)
{
$query = 'DELETE FROM idx_content_content WHERE content_uid = :child OR subcontent_uid = :child';
$params = array(
'child' => $content->getUid(),
);
return $this->executeUpdate($query, $params);
... | [
"private",
"function",
"removeIdxContentContent",
"(",
"AbstractClassContent",
"$",
"content",
")",
"{",
"$",
"query",
"=",
"'DELETE FROM idx_content_content WHERE content_uid = :child OR subcontent_uid = :child'",
";",
"$",
"params",
"=",
"array",
"(",
"'child'",
"=>",
"$"... | Remove stored content-content indexes from a content.
@param \BackBee\ClassContent\AbstractClassContent $content
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Remove",
"stored",
"content",
"-",
"content",
"indexes",
"from",
"a",
"content",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L567-L576 |
191,875 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxContentPage | private function removeIdxContentPage(AbstractClassContent $content, Page $page)
{
$query = 'DELETE FROM idx_page_content WHERE page_uid = :page '.
'AND (content_uid IN (SELECT subcontent_uid FROM idx_content_content WHERE content_uid = :content) '.
'OR content_uid IN (SELECT... | php | private function removeIdxContentPage(AbstractClassContent $content, Page $page)
{
$query = 'DELETE FROM idx_page_content WHERE page_uid = :page '.
'AND (content_uid IN (SELECT subcontent_uid FROM idx_content_content WHERE content_uid = :content) '.
'OR content_uid IN (SELECT... | [
"private",
"function",
"removeIdxContentPage",
"(",
"AbstractClassContent",
"$",
"content",
",",
"Page",
"$",
"page",
")",
"{",
"$",
"query",
"=",
"'DELETE FROM idx_page_content WHERE page_uid = :page '",
".",
"'AND (content_uid IN (SELECT subcontent_uid FROM idx_content_content ... | Remove stored page-content indexes from a content and a page.
@param \BackBee\ClassContent\AbstractClassContent $content
@param \BackBee\NestedNode\Page $page
@return \BackBee\ClassContent\Repository\IndexationRepository | [
"Remove",
"stored",
"page",
"-",
"content",
"indexes",
"from",
"a",
"content",
"and",
"a",
"page",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L586-L598 |
191,876 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxSite | private function removeIdxSite(Page $page)
{
$query = 'DELETE FROM idx_site_content WHERE site_uid = :site AND content_uid IN (SELECT content_uid FROM idx_page_content WHERE page_uid = :page)';
$params = array(
'page' => $page->getUid(),
'site' => $page->getSite()->getUid(),... | php | private function removeIdxSite(Page $page)
{
$query = 'DELETE FROM idx_site_content WHERE site_uid = :site AND content_uid IN (SELECT content_uid FROM idx_page_content WHERE page_uid = :page)';
$params = array(
'page' => $page->getUid(),
'site' => $page->getSite()->getUid(),... | [
"private",
"function",
"removeIdxSite",
"(",
"Page",
"$",
"page",
")",
"{",
"$",
"query",
"=",
"'DELETE FROM idx_site_content WHERE site_uid = :site AND content_uid IN (SELECT content_uid FROM idx_page_content WHERE page_uid = :page)'",
";",
"$",
"params",
"=",
"array",
"(",
"'... | Remove stored site-content indexes from a site and a page.
@param Page $page
@return IndexationRepository | [
"Remove",
"stored",
"site",
"-",
"content",
"indexes",
"from",
"a",
"site",
"and",
"a",
"page",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L607-L617 |
191,877 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.updateIdxContent | public function updateIdxContent(AbstractClassContent $content)
{
$query = 'INSERT INTO idx_content_content (content_uid, subcontent_uid) '.
'(SELECT :child, content_uid FROM content_has_subcontent WHERE parent_uid = :child) '.
'UNION DISTINCT (SELECT parent_uid, :child FROM ... | php | public function updateIdxContent(AbstractClassContent $content)
{
$query = 'INSERT INTO idx_content_content (content_uid, subcontent_uid) '.
'(SELECT :child, content_uid FROM content_has_subcontent WHERE parent_uid = :child) '.
'UNION DISTINCT (SELECT parent_uid, :child FROM ... | [
"public",
"function",
"updateIdxContent",
"(",
"AbstractClassContent",
"$",
"content",
")",
"{",
"$",
"query",
"=",
"'INSERT INTO idx_content_content (content_uid, subcontent_uid) '",
".",
"'(SELECT :child, content_uid FROM content_has_subcontent WHERE parent_uid = :child) '",
".",
"... | Replace content-content indexes for the provided content
Also replace page-content indexes if content has a main node.
@param AbstractClassContent $content
@return IndexationRepository | [
"Replace",
"content",
"-",
"content",
"indexes",
"for",
"the",
"provided",
"content",
"Also",
"replace",
"page",
"-",
"content",
"indexes",
"if",
"content",
"has",
"a",
"main",
"node",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L627-L643 |
191,878 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.updateIdxPage | public function updateIdxPage(Page $page = null, AbstractClassContent $content = null)
{
if (null === $page) {
return $this;
}
if (null === $content) {
$content = $page->getContentSet();
}
$query = 'INSERT INTO idx_page_content (page_uid, content_uid... | php | public function updateIdxPage(Page $page = null, AbstractClassContent $content = null)
{
if (null === $page) {
return $this;
}
if (null === $content) {
$content = $page->getContentSet();
}
$query = 'INSERT INTO idx_page_content (page_uid, content_uid... | [
"public",
"function",
"updateIdxPage",
"(",
"Page",
"$",
"page",
"=",
"null",
",",
"AbstractClassContent",
"$",
"content",
"=",
"null",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"page",
")",
"{",
"return",
"$",
"this",
";",
"}",
"if",
"(",
"null",
"==... | Replace page-content indexes for the provided page
Then replace site_content indexes.
@param Page $page
@param AbstractClassContent $content
@return IndexationRepository | [
"Replace",
"page",
"-",
"content",
"indexes",
"for",
"the",
"provided",
"page",
"Then",
"replace",
"site_content",
"indexes",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L654-L676 |
191,879 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.getAClassContentUids | private function getAClassContentUids(array $contents)
{
$contentUids = array();
foreach ($contents as $content) {
if ($content instanceof AbstractClassContent &&
false === $content->isElementContent()) {
$contentUids[] = $content->getUid();
... | php | private function getAClassContentUids(array $contents)
{
$contentUids = array();
foreach ($contents as $content) {
if ($content instanceof AbstractClassContent &&
false === $content->isElementContent()) {
$contentUids[] = $content->getUid();
... | [
"private",
"function",
"getAClassContentUids",
"(",
"array",
"$",
"contents",
")",
"{",
"$",
"contentUids",
"=",
"array",
"(",
")",
";",
"foreach",
"(",
"$",
"contents",
"as",
"$",
"content",
")",
"{",
"if",
"(",
"$",
"content",
"instanceof",
"AbstractClas... | Returns an array of AbstractClassContent uids.
@param array $contents An array of object
@return array | [
"Returns",
"an",
"array",
"of",
"AbstractClassContent",
"uids",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L709-L720 |
191,880 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxContent | public function removeIdxContent(AbstractClassContent $content)
{
$params = array(
'content' => $content->getUid(),
);
return $this->executeUpdate('DELETE FROM idx_site_content WHERE content_uid = :content', $params)
->executeUpdate('DELETE FROM idx_page_... | php | public function removeIdxContent(AbstractClassContent $content)
{
$params = array(
'content' => $content->getUid(),
);
return $this->executeUpdate('DELETE FROM idx_site_content WHERE content_uid = :content', $params)
->executeUpdate('DELETE FROM idx_page_... | [
"public",
"function",
"removeIdxContent",
"(",
"AbstractClassContent",
"$",
"content",
")",
"{",
"$",
"params",
"=",
"array",
"(",
"'content'",
"=>",
"$",
"content",
"->",
"getUid",
"(",
")",
",",
")",
";",
"return",
"$",
"this",
"->",
"executeUpdate",
"("... | Removes all stored indexes for the content.
@param AbstractClassContent $content
@return IndexationRepository | [
"Removes",
"all",
"stored",
"indexes",
"for",
"the",
"content",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L729-L738 |
191,881 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.removeIdxSiteContent | public function removeIdxSiteContent(Site $site, AbstractClassContent $content)
{
$query = 'DELETE FROM idx_site_content WHERE site_uid = :site AND (content_uid IN '.
'(SELECT content_uid FROM content_has_subcontent WHERE parent_uid = :content)'.
'OR content_uid = :content)';... | php | public function removeIdxSiteContent(Site $site, AbstractClassContent $content)
{
$query = 'DELETE FROM idx_site_content WHERE site_uid = :site AND (content_uid IN '.
'(SELECT content_uid FROM content_has_subcontent WHERE parent_uid = :content)'.
'OR content_uid = :content)';... | [
"public",
"function",
"removeIdxSiteContent",
"(",
"Site",
"$",
"site",
",",
"AbstractClassContent",
"$",
"content",
")",
"{",
"$",
"query",
"=",
"'DELETE FROM idx_site_content WHERE site_uid = :site AND (content_uid IN '",
".",
"'(SELECT content_uid FROM content_has_subcontent W... | Removes stored site-content indexes for a content in a site.
@param Site $site
@param AbstractClassContent $content
@return IndexationRepository | [
"Removes",
"stored",
"site",
"-",
"content",
"indexes",
"for",
"a",
"content",
"in",
"a",
"site",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L767-L779 |
191,882 | backbee/backbee-php | ClassContent/Repository/IndexationRepository.php | IndexationRepository.save | public function save(Indexation $index)
{
$existing = $this->find([
'_content' => $index->getContent(),
'_field' => $index->getField(),
]);
if (null === $existing) {
$existing = $index;
$this->getEntityManager()->persist($existing);
} ... | php | public function save(Indexation $index)
{
$existing = $this->find([
'_content' => $index->getContent(),
'_field' => $index->getField(),
]);
if (null === $existing) {
$existing = $index;
$this->getEntityManager()->persist($existing);
} ... | [
"public",
"function",
"save",
"(",
"Indexation",
"$",
"index",
")",
"{",
"$",
"existing",
"=",
"$",
"this",
"->",
"find",
"(",
"[",
"'_content'",
"=>",
"$",
"index",
"->",
"getContent",
"(",
")",
",",
"'_field'",
"=>",
"$",
"index",
"->",
"getField",
... | Saves an indexation entity, persists it first if need.
@param Indexation $index The indexation entity to save. | [
"Saves",
"an",
"indexation",
"entity",
"persists",
"it",
"first",
"if",
"need",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/ClassContent/Repository/IndexationRepository.php#L786-L804 |
191,883 | backbee/backbee-php | Util/Transport/TransportFactory.php | TransportFactory.create | public static function create(array $config)
{
if (false === array_key_exists('transport', $config)) {
throw new MisconfigurationException(sprintf('Can not create Transport : missing classname.'));
}
$classname = $config['transport'];
if (false === class_exists($classnam... | php | public static function create(array $config)
{
if (false === array_key_exists('transport', $config)) {
throw new MisconfigurationException(sprintf('Can not create Transport : missing classname.'));
}
$classname = $config['transport'];
if (false === class_exists($classnam... | [
"public",
"static",
"function",
"create",
"(",
"array",
"$",
"config",
")",
"{",
"if",
"(",
"false",
"===",
"array_key_exists",
"(",
"'transport'",
",",
"$",
"config",
")",
")",
"{",
"throw",
"new",
"MisconfigurationException",
"(",
"sprintf",
"(",
"'Can not... | Creates a new AbstractTransport instance.
@param array $config An array containing the key 'transport' with the classname to use
and optional options depending on the transport to start
@return \BackBee\Util\Transport\AbstractTransport
@throws MisconfigurationException occures if $config is not valid | [
"Creates",
"a",
"new",
"AbstractTransport",
"instance",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Transport/TransportFactory.php#L55-L67 |
191,884 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledEntityInsertionsByClassname | public static function getScheduledEntityInsertionsByClassname(EntityManager $em, $classnames)
{
$entities = array();
$classnames = (array) $classnames;
foreach ($em->getUnitOfWork()->getScheduledEntityInsertions() as $entity) {
if (true === in_array(ClassUtils::getRealClass($en... | php | public static function getScheduledEntityInsertionsByClassname(EntityManager $em, $classnames)
{
$entities = array();
$classnames = (array) $classnames;
foreach ($em->getUnitOfWork()->getScheduledEntityInsertions() as $entity) {
if (true === in_array(ClassUtils::getRealClass($en... | [
"public",
"static",
"function",
"getScheduledEntityInsertionsByClassname",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"classnames",
")",
"{",
"$",
"entities",
"=",
"array",
"(",
")",
";",
"$",
"classnames",
"=",
"(",
"array",
")",
"$",
"classnames",
";",
"fo... | Returns an array of scheduled entities by classname for insertions.
@param \Doctrine\ORM\EntityManager $em
@param string|array Classnames
@return array | [
"Returns",
"an",
"array",
"of",
"scheduled",
"entities",
"by",
"classname",
"for",
"insertions",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L50-L62 |
191,885 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledEntityUpdatesByClassname | public static function getScheduledEntityUpdatesByClassname(EntityManager $em, $classnames)
{
$entities = array();
$classnames = (array) $classnames;
foreach ($em->getUnitOfWork()->getScheduledEntityUpdates() as $entity) {
if (true === in_array(ClassUtils::getRealClass($entity),... | php | public static function getScheduledEntityUpdatesByClassname(EntityManager $em, $classnames)
{
$entities = array();
$classnames = (array) $classnames;
foreach ($em->getUnitOfWork()->getScheduledEntityUpdates() as $entity) {
if (true === in_array(ClassUtils::getRealClass($entity),... | [
"public",
"static",
"function",
"getScheduledEntityUpdatesByClassname",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"classnames",
")",
"{",
"$",
"entities",
"=",
"array",
"(",
")",
";",
"$",
"classnames",
"=",
"(",
"array",
")",
"$",
"classnames",
";",
"forea... | Returns an array of scheduled entities by classname for updates.
@param \Doctrine\ORM\EntityManager $em
@param string|array Classnames
@return array | [
"Returns",
"an",
"array",
"of",
"scheduled",
"entities",
"by",
"classname",
"for",
"updates",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L72-L84 |
191,886 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledEntityDeletionsByClassname | public static function getScheduledEntityDeletionsByClassname(EntityManager $em, $classnames)
{
$entities = array();
$classnames = (array) $classnames;
foreach ($em->getUnitOfWork()->getScheduledEntityDeletions() as $entity) {
if (true === in_array(ClassUtils::getRealClass($enti... | php | public static function getScheduledEntityDeletionsByClassname(EntityManager $em, $classnames)
{
$entities = array();
$classnames = (array) $classnames;
foreach ($em->getUnitOfWork()->getScheduledEntityDeletions() as $entity) {
if (true === in_array(ClassUtils::getRealClass($enti... | [
"public",
"static",
"function",
"getScheduledEntityDeletionsByClassname",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"classnames",
")",
"{",
"$",
"entities",
"=",
"array",
"(",
")",
";",
"$",
"classnames",
"=",
"(",
"array",
")",
"$",
"classnames",
";",
"for... | Returns an array of scheduled entities by classname for deletions.
@param \Doctrine\ORM\EntityManager $em
@param string|array Classnames
@return array | [
"Returns",
"an",
"array",
"of",
"scheduled",
"entities",
"by",
"classname",
"for",
"deletions",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L94-L106 |
191,887 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledEntityByClassname | public static function getScheduledEntityByClassname(EntityManager $em, $classnames)
{
return array_merge(
self::getScheduledEntityInsertionsByClassname($em, $classnames),
self::getScheduledEntityUpdatesByClassname($em, $classnames),
self::getScheduledEntityDe... | php | public static function getScheduledEntityByClassname(EntityManager $em, $classnames)
{
return array_merge(
self::getScheduledEntityInsertionsByClassname($em, $classnames),
self::getScheduledEntityUpdatesByClassname($em, $classnames),
self::getScheduledEntityDe... | [
"public",
"static",
"function",
"getScheduledEntityByClassname",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"classnames",
")",
"{",
"return",
"array_merge",
"(",
"self",
"::",
"getScheduledEntityInsertionsByClassname",
"(",
"$",
"em",
",",
"$",
"classnames",
")",
... | Returns an array of scheduled entities by classname for insertions, updates or deletions.
@param \Doctrine\ORM\EntityManager $em
@param string|array Classnames
@return array | [
"Returns",
"an",
"array",
"of",
"scheduled",
"entities",
"by",
"classname",
"for",
"insertions",
"updates",
"or",
"deletions",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L116-L123 |
191,888 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledAClassContentInsertions | public static function getScheduledAClassContentInsertions(EntityManager $em, $with_revision = false, $exclude_base_element = false)
{
$entities = array();
foreach ($em->getUnitOfWork()->getScheduledEntityInsertions() as $entity) {
if (false !== $tmp = self::getScheduledEntity($entity, $... | php | public static function getScheduledAClassContentInsertions(EntityManager $em, $with_revision = false, $exclude_base_element = false)
{
$entities = array();
foreach ($em->getUnitOfWork()->getScheduledEntityInsertions() as $entity) {
if (false !== $tmp = self::getScheduledEntity($entity, $... | [
"public",
"static",
"function",
"getScheduledAClassContentInsertions",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"with_revision",
"=",
"false",
",",
"$",
"exclude_base_element",
"=",
"false",
")",
"{",
"$",
"entities",
"=",
"array",
"(",
")",
";",
"foreach",
... | Returns an array of AbstractClassContent scheduled for insertions.
@param \Doctrine\ORM\EntityManager $em
@param boolean $with_revision Includes AClassContent which has scheduled revision
@return array | [
"Returns",
"an",
"array",
"of",
"AbstractClassContent",
"scheduled",
"for",
"insertions",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L133-L143 |
191,889 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledAClassContentUpdates | public static function getScheduledAClassContentUpdates(EntityManager $em, $with_revision = false, $exclude_base_element = false)
{
$entities = array();
foreach ($em->getUnitOfWork()->getScheduledEntityUpdates() as $entity) {
if (false !== $tmp = self::getScheduledEntity($entity, $with_r... | php | public static function getScheduledAClassContentUpdates(EntityManager $em, $with_revision = false, $exclude_base_element = false)
{
$entities = array();
foreach ($em->getUnitOfWork()->getScheduledEntityUpdates() as $entity) {
if (false !== $tmp = self::getScheduledEntity($entity, $with_r... | [
"public",
"static",
"function",
"getScheduledAClassContentUpdates",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"with_revision",
"=",
"false",
",",
"$",
"exclude_base_element",
"=",
"false",
")",
"{",
"$",
"entities",
"=",
"array",
"(",
")",
";",
"foreach",
"("... | Returns an array of AbstractClassContent scheduled for updates.
@param \Doctrine\ORM\EntityManager $em
@param boolean $with_revision Includes AClassContent which has scheduled revision
@return array | [
"Returns",
"an",
"array",
"of",
"AbstractClassContent",
"scheduled",
"for",
"updates",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L153-L163 |
191,890 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getSchedulesAClassContentDeletions | public static function getSchedulesAClassContentDeletions(EntityManager $em, $exclude_base_element = false)
{
$entities = array();
foreach ($em->getUnitOfWork()->getScheduledEntityDeletions() as $entity) {
if ($entity instanceof AbstractClassContent &&
(!$exclude_base_ele... | php | public static function getSchedulesAClassContentDeletions(EntityManager $em, $exclude_base_element = false)
{
$entities = array();
foreach ($em->getUnitOfWork()->getScheduledEntityDeletions() as $entity) {
if ($entity instanceof AbstractClassContent &&
(!$exclude_base_ele... | [
"public",
"static",
"function",
"getSchedulesAClassContentDeletions",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"exclude_base_element",
"=",
"false",
")",
"{",
"$",
"entities",
"=",
"array",
"(",
")",
";",
"foreach",
"(",
"$",
"em",
"->",
"getUnitOfWork",
"("... | Returns an array of AbstractClassContent scheduled for deletions.
@param \Doctrine\ORM\EntityManager $em
@return array | [
"Returns",
"an",
"array",
"of",
"AbstractClassContent",
"scheduled",
"for",
"deletions",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L186-L197 |
191,891 | backbee/backbee-php | Util/Doctrine/ScheduledEntities.php | ScheduledEntities.getScheduledAClassContentNotForDeletions | public static function getScheduledAClassContentNotForDeletions(EntityManager $em, $with_revision = false)
{
return array_merge(self::getScheduledAClassContentInsertions($em, $with_revision), self::getScheduledAClassContentUpdates($em, $with_revision));
} | php | public static function getScheduledAClassContentNotForDeletions(EntityManager $em, $with_revision = false)
{
return array_merge(self::getScheduledAClassContentInsertions($em, $with_revision), self::getScheduledAClassContentUpdates($em, $with_revision));
} | [
"public",
"static",
"function",
"getScheduledAClassContentNotForDeletions",
"(",
"EntityManager",
"$",
"em",
",",
"$",
"with_revision",
"=",
"false",
")",
"{",
"return",
"array_merge",
"(",
"self",
"::",
"getScheduledAClassContentInsertions",
"(",
"$",
"em",
",",
"$... | Returns an array of AbstractClassContent scheduled for insertions or updates.
@param \Doctrine\ORM\EntityManager $em
@param boolean $with_revision Includes AClassContent which has scheduled revision
@return array | [
"Returns",
"an",
"array",
"of",
"AbstractClassContent",
"scheduled",
"for",
"insertions",
"or",
"updates",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Util/Doctrine/ScheduledEntities.php#L207-L210 |
191,892 | backbee/backbee-php | NestedNode/Listener/Serializer/PageListener.php | PageListener.onPostSerialize | public function onPostSerialize(ObjectEvent $event)
{
if ($this->container->has('routing')) {
$uri = $this->container->get('routing')->getUri($event->getObject()->getUrl());
$event->getVisitor()->addData('uri', $uri);
}
} | php | public function onPostSerialize(ObjectEvent $event)
{
if ($this->container->has('routing')) {
$uri = $this->container->get('routing')->getUri($event->getObject()->getUrl());
$event->getVisitor()->addData('uri', $uri);
}
} | [
"public",
"function",
"onPostSerialize",
"(",
"ObjectEvent",
"$",
"event",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"container",
"->",
"has",
"(",
"'routing'",
")",
")",
"{",
"$",
"uri",
"=",
"$",
"this",
"->",
"container",
"->",
"get",
"(",
"'routing'"... | Method called on serializer.post_serialize event for Page object.
@param \JMS\Serializer\EventDispatcher\ObjectEvent $event | [
"Method",
"called",
"on",
"serializer",
".",
"post_serialize",
"event",
"for",
"Page",
"object",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/NestedNode/Listener/Serializer/PageListener.php#L84-L90 |
191,893 | backbee/backbee-php | Renderer/Adapter/Twig.php | Twig.setTwigCache | public function setTwigCache($cacheDir)
{
if (!is_dir($cacheDir) && (!is_writable(dirname($cacheDir)) || false === @mkdir($cacheDir, 0755))) {
throw new RendererException(
sprintf('Unable to create twig cache "%s"', $cacheDir),
RendererException::RENDERING_ERROR
... | php | public function setTwigCache($cacheDir)
{
if (!is_dir($cacheDir) && (!is_writable(dirname($cacheDir)) || false === @mkdir($cacheDir, 0755))) {
throw new RendererException(
sprintf('Unable to create twig cache "%s"', $cacheDir),
RendererException::RENDERING_ERROR
... | [
"public",
"function",
"setTwigCache",
"(",
"$",
"cacheDir",
")",
"{",
"if",
"(",
"!",
"is_dir",
"(",
"$",
"cacheDir",
")",
"&&",
"(",
"!",
"is_writable",
"(",
"dirname",
"(",
"$",
"cacheDir",
")",
")",
"||",
"false",
"===",
"@",
"mkdir",
"(",
"$",
... | Set Twig cache directory.
@param string $cacheDir | [
"Set",
"Twig",
"cache",
"directory",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Renderer/Adapter/Twig.php#L108-L125 |
191,894 | backbee/backbee-php | Renderer/Adapter/Twig.php | Twig.addDirPathIntoLoaderIfNotExists | private function addDirPathIntoLoaderIfNotExists(array $templateDir)
{
$paths = $this->loader->getPaths();
if ((count($paths) !== count($templateDir)) || (0 < count(array_diff($paths, $templateDir)))) {
$this->loader->removeAllPaths();
try {
$this->loader->set... | php | private function addDirPathIntoLoaderIfNotExists(array $templateDir)
{
$paths = $this->loader->getPaths();
if ((count($paths) !== count($templateDir)) || (0 < count(array_diff($paths, $templateDir)))) {
$this->loader->removeAllPaths();
try {
$this->loader->set... | [
"private",
"function",
"addDirPathIntoLoaderIfNotExists",
"(",
"array",
"$",
"templateDir",
")",
"{",
"$",
"paths",
"=",
"$",
"this",
"->",
"loader",
"->",
"getPaths",
"(",
")",
";",
"if",
"(",
"(",
"count",
"(",
"$",
"paths",
")",
"!==",
"count",
"(",
... | Add dir path into loader only if it not already exists.
@param array $templateDir | [
"Add",
"dir",
"path",
"into",
"loader",
"only",
"if",
"it",
"not",
"already",
"exists",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Renderer/Adapter/Twig.php#L159-L168 |
191,895 | Fakerino/Fakerino | src/Fakerino/Core/FakeDataFactory.php | FakeDataFactory.fake | public function fake($elementName = null)
{
if ($elementName === null) {
throw new MissingRequiredOptionException('element to fake');
}
$this->startElement = $elementName;
$this->out = array();
$this->outString = null;
return $this;
} | php | public function fake($elementName = null)
{
if ($elementName === null) {
throw new MissingRequiredOptionException('element to fake');
}
$this->startElement = $elementName;
$this->out = array();
$this->outString = null;
return $this;
} | [
"public",
"function",
"fake",
"(",
"$",
"elementName",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"elementName",
"===",
"null",
")",
"{",
"throw",
"new",
"MissingRequiredOptionException",
"(",
"'element to fake'",
")",
";",
"}",
"$",
"this",
"->",
"startElement"... | Setups the fake element and initializes the output.
@param string|array|null $elementName
@return FakeDataFactory $this
@throws \Fakerino\FakeData\Exception\MissingRequiredOptionException | [
"Setups",
"the",
"fake",
"element",
"and",
"initializes",
"the",
"output",
"."
] | 920df67f1813950c56c011bb2b3c1bbbd42d9390 | https://github.com/Fakerino/Fakerino/blob/920df67f1813950c56c011bb2b3c1bbbd42d9390/src/Fakerino/Core/FakeDataFactory.php#L78-L88 |
191,896 | Fakerino/Fakerino | src/Fakerino/Core/FakeDataFactory.php | FakeDataFactory.fakeEntity | public function fakeEntity($entity = null)
{
if ($entity === null) {
throw new MissingRequiredOptionException('entity to fake');
}
$entityFiller = new EntityFiller($entity, $this);
return $entityFiller->fill();
} | php | public function fakeEntity($entity = null)
{
if ($entity === null) {
throw new MissingRequiredOptionException('entity to fake');
}
$entityFiller = new EntityFiller($entity, $this);
return $entityFiller->fill();
} | [
"public",
"function",
"fakeEntity",
"(",
"$",
"entity",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"entity",
"===",
"null",
")",
"{",
"throw",
"new",
"MissingRequiredOptionException",
"(",
"'entity to fake'",
")",
";",
"}",
"$",
"entityFiller",
"=",
"new",
"En... | Fills the given entity with fake data.
@param object|null $entity
@return bool
@throws \Fakerino\FakeData\Exception\MissingRequiredOptionException | [
"Fills",
"the",
"given",
"entity",
"with",
"fake",
"data",
"."
] | 920df67f1813950c56c011bb2b3c1bbbd42d9390 | https://github.com/Fakerino/Fakerino/blob/920df67f1813950c56c011bb2b3c1bbbd42d9390/src/Fakerino/Core/FakeDataFactory.php#L98-L106 |
191,897 | Fakerino/Fakerino | src/Fakerino/Core/FakeDataFactory.php | FakeDataFactory.fakeTable | public function fakeTable($tableName = null)
{
if (null === $tableName) {
throw new MissingRequiredOptionException('table name');
}
$dbFiller = new DbFiller($this->db, $tableName, $this, $this->num);
$rows = $dbFiller->fill();
return $rows;
} | php | public function fakeTable($tableName = null)
{
if (null === $tableName) {
throw new MissingRequiredOptionException('table name');
}
$dbFiller = new DbFiller($this->db, $tableName, $this, $this->num);
$rows = $dbFiller->fill();
return $rows;
} | [
"public",
"function",
"fakeTable",
"(",
"$",
"tableName",
"=",
"null",
")",
"{",
"if",
"(",
"null",
"===",
"$",
"tableName",
")",
"{",
"throw",
"new",
"MissingRequiredOptionException",
"(",
"'table name'",
")",
";",
"}",
"$",
"dbFiller",
"=",
"new",
"DbFil... | Fills the given table with fake data.
@param string|null $tableName
@return array $rows
@throws \Fakerino\FakeData\Exception\MissingRequiredOptionException | [
"Fills",
"the",
"given",
"table",
"with",
"fake",
"data",
"."
] | 920df67f1813950c56c011bb2b3c1bbbd42d9390 | https://github.com/Fakerino/Fakerino/blob/920df67f1813950c56c011bb2b3c1bbbd42d9390/src/Fakerino/Core/FakeDataFactory.php#L116-L125 |
191,898 | Fakerino/Fakerino | src/Fakerino/Core/FakeDataFactory.php | FakeDataFactory.fakeTemplate | public function fakeTemplate($file)
{
$this->template->loadTemplate($file);
$varsName = $this->template->getVariables();
$out = '';
$num = $this->num;
for ($i = 0; $i < $num; $i++) {
$fakeData = $this->num(1)->fake($varsName)->toArray();
$data = array_... | php | public function fakeTemplate($file)
{
$this->template->loadTemplate($file);
$varsName = $this->template->getVariables();
$out = '';
$num = $this->num;
for ($i = 0; $i < $num; $i++) {
$fakeData = $this->num(1)->fake($varsName)->toArray();
$data = array_... | [
"public",
"function",
"fakeTemplate",
"(",
"$",
"file",
")",
"{",
"$",
"this",
"->",
"template",
"->",
"loadTemplate",
"(",
"$",
"file",
")",
";",
"$",
"varsName",
"=",
"$",
"this",
"->",
"template",
"->",
"getVariables",
"(",
")",
";",
"$",
"out",
"... | Fakes a template file.
@param string $file
@return string | [
"Fakes",
"a",
"template",
"file",
"."
] | 920df67f1813950c56c011bb2b3c1bbbd42d9390 | https://github.com/Fakerino/Fakerino/blob/920df67f1813950c56c011bb2b3c1bbbd42d9390/src/Fakerino/Core/FakeDataFactory.php#L134-L147 |
191,899 | backbee/backbee-php | Renderer/Listener/TwigListener.php | TwigListener.onApplicationReady | public static function onApplicationReady(Event $event)
{
$app = $event->getTarget();
$twigAdapter = $app->getRenderer()->getAdapter('twig');
if (null === $twigAdapter) {
return;
}
foreach ($app->getContainer()->findTaggedServiceIds('twig.extension') as... | php | public static function onApplicationReady(Event $event)
{
$app = $event->getTarget();
$twigAdapter = $app->getRenderer()->getAdapter('twig');
if (null === $twigAdapter) {
return;
}
foreach ($app->getContainer()->findTaggedServiceIds('twig.extension') as... | [
"public",
"static",
"function",
"onApplicationReady",
"(",
"Event",
"$",
"event",
")",
"{",
"$",
"app",
"=",
"$",
"event",
"->",
"getTarget",
"(",
")",
";",
"$",
"twigAdapter",
"=",
"$",
"app",
"->",
"getRenderer",
"(",
")",
"->",
"getAdapter",
"(",
"'... | occurs on `bbapplication.init`.
@param Event $event | [
"occurs",
"on",
"bbapplication",
".",
"init",
"."
] | d752ec7b609e538de60fb0bfcac478f6c9ed607c | https://github.com/backbee/backbee-php/blob/d752ec7b609e538de60fb0bfcac478f6c9ed607c/Renderer/Listener/TwigListener.php#L43-L55 |
Subsets and Splits
Yii Code Samples
Gathers all records from test, train, and validation sets that contain the word 'yii', providing a basic filtered view of the dataset relevant to Yii-related content.