repository_name stringlengths 5 67 | func_path_in_repository stringlengths 4 234 | func_name stringlengths 0 314 | whole_func_string stringlengths 52 3.87M | language stringclasses 6
values | func_code_string stringlengths 52 3.87M | func_code_tokens listlengths 15 672k | func_documentation_string stringlengths 1 47.2k | func_documentation_tokens listlengths 1 3.92k | split_name stringclasses 1
value | func_code_url stringlengths 85 339 |
|---|---|---|---|---|---|---|---|---|---|---|
neos/flow-development-collection | Neos.Eel/Classes/FlowQuery/Operations/FirstOperation.php | FirstOperation.evaluate | public function evaluate(FlowQuery $flowQuery, array $arguments)
{
$context = $flowQuery->getContext();
if (isset($context[0])) {
$flowQuery->setContext([$context[0]]);
} else {
$flowQuery->setContext([]);
}
} | php | public function evaluate(FlowQuery $flowQuery, array $arguments)
{
$context = $flowQuery->getContext();
if (isset($context[0])) {
$flowQuery->setContext([$context[0]]);
} else {
$flowQuery->setContext([]);
}
} | [
"public",
"function",
"evaluate",
"(",
"FlowQuery",
"$",
"flowQuery",
",",
"array",
"$",
"arguments",
")",
"{",
"$",
"context",
"=",
"$",
"flowQuery",
"->",
"getContext",
"(",
")",
";",
"if",
"(",
"isset",
"(",
"$",
"context",
"[",
"0",
"]",
")",
")"... | {@inheritdoc}
@param FlowQuery $flowQuery the FlowQuery object
@param array $arguments Ignored for this operation
@return void | [
"{",
"@inheritdoc",
"}"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Eel/Classes/FlowQuery/Operations/FirstOperation.php#L35-L43 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/Argument.php | Argument.setValue | public function setValue($rawValue)
{
if ($rawValue === null) {
$this->value = null;
return $this;
}
if (is_object($rawValue) && $rawValue instanceof $this->dataType) {
$this->value = $rawValue;
return $this;
}
$this->value = $t... | php | public function setValue($rawValue)
{
if ($rawValue === null) {
$this->value = null;
return $this;
}
if (is_object($rawValue) && $rawValue instanceof $this->dataType) {
$this->value = $rawValue;
return $this;
}
$this->value = $t... | [
"public",
"function",
"setValue",
"(",
"$",
"rawValue",
")",
"{",
"if",
"(",
"$",
"rawValue",
"===",
"null",
")",
"{",
"$",
"this",
"->",
"value",
"=",
"null",
";",
"return",
"$",
"this",
";",
"}",
"if",
"(",
"is_object",
"(",
"$",
"rawValue",
")",... | Sets the value of this argument.
@param mixed $rawValue The value of this argument
@return Argument $this | [
"Sets",
"the",
"value",
"of",
"this",
"argument",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/Argument.php#L200-L218 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Repository.php | Repository.add | public function add($object)
{
if (!is_object($object) || !($object instanceof $this->entityClassName)) {
$type = (is_object($object) ? get_class($object) : gettype($object));
throw new IllegalObjectTypeException('The value given to add() was ' . $type . ' , however the ' . get_class... | php | public function add($object)
{
if (!is_object($object) || !($object instanceof $this->entityClassName)) {
$type = (is_object($object) ? get_class($object) : gettype($object));
throw new IllegalObjectTypeException('The value given to add() was ' . $type . ' , however the ' . get_class... | [
"public",
"function",
"add",
"(",
"$",
"object",
")",
"{",
"if",
"(",
"!",
"is_object",
"(",
"$",
"object",
")",
"||",
"!",
"(",
"$",
"object",
"instanceof",
"$",
"this",
"->",
"entityClassName",
")",
")",
"{",
"$",
"type",
"=",
"(",
"is_object",
"... | Adds an object to this repository.
@param object $object The object to add
@return void
@throws IllegalObjectTypeException
@api | [
"Adds",
"an",
"object",
"to",
"this",
"repository",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Repository.php#L77-L84 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Repository.php | Repository.createQuery | public function createQuery()
{
$query = $this->persistenceManager->createQueryForType($this->entityClassName);
if ($this->defaultOrderings !== []) {
$query->setOrderings($this->defaultOrderings);
}
return $query;
} | php | public function createQuery()
{
$query = $this->persistenceManager->createQueryForType($this->entityClassName);
if ($this->defaultOrderings !== []) {
$query->setOrderings($this->defaultOrderings);
}
return $query;
} | [
"public",
"function",
"createQuery",
"(",
")",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"persistenceManager",
"->",
"createQueryForType",
"(",
"$",
"this",
"->",
"entityClassName",
")",
";",
"if",
"(",
"$",
"this",
"->",
"defaultOrderings",
"!==",
"[",
"... | Returns a query for objects of this repository
@return QueryInterface
@api | [
"Returns",
"a",
"query",
"for",
"objects",
"of",
"this",
"repository"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Repository.php#L133-L140 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.buildObjectConfigurations | public function buildObjectConfigurations(array $availableClassAndInterfaceNamesByPackage, array $rawObjectConfigurationsByPackages)
{
$objectConfigurations = [];
$interfaceNames = [];
foreach ($availableClassAndInterfaceNamesByPackage as $packageKey => $classAndInterfaceNames) {
... | php | public function buildObjectConfigurations(array $availableClassAndInterfaceNamesByPackage, array $rawObjectConfigurationsByPackages)
{
$objectConfigurations = [];
$interfaceNames = [];
foreach ($availableClassAndInterfaceNamesByPackage as $packageKey => $classAndInterfaceNames) {
... | [
"public",
"function",
"buildObjectConfigurations",
"(",
"array",
"$",
"availableClassAndInterfaceNamesByPackage",
",",
"array",
"$",
"rawObjectConfigurationsByPackages",
")",
"{",
"$",
"objectConfigurations",
"=",
"[",
"]",
";",
"$",
"interfaceNames",
"=",
"[",
"]",
"... | Traverses through the given class and interface names and builds a base object configuration
for all of them. Then parses the provided extra configuration and merges the result
into the overall configuration. Finally autowires dependencies of arguments and properties
which can be resolved automatically.
@param array $... | [
"Traverses",
"through",
"the",
"given",
"class",
"and",
"interface",
"names",
"and",
"builds",
"a",
"base",
"object",
"configuration",
"for",
"all",
"of",
"them",
".",
"Then",
"parses",
"the",
"provided",
"extra",
"configuration",
"and",
"merges",
"the",
"resu... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L76-L158 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.enhanceRawConfigurationWithAnnotationOptions | protected function enhanceRawConfigurationWithAnnotationOptions($className, array $rawObjectConfiguration)
{
if ($this->reflectionService->isClassAnnotatedWith($className, Flow\Scope::class)) {
$rawObjectConfiguration['scope'] = $this->reflectionService->getClassAnnotation($className, Flow\Scope... | php | protected function enhanceRawConfigurationWithAnnotationOptions($className, array $rawObjectConfiguration)
{
if ($this->reflectionService->isClassAnnotatedWith($className, Flow\Scope::class)) {
$rawObjectConfiguration['scope'] = $this->reflectionService->getClassAnnotation($className, Flow\Scope... | [
"protected",
"function",
"enhanceRawConfigurationWithAnnotationOptions",
"(",
"$",
"className",
",",
"array",
"$",
"rawObjectConfiguration",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"reflectionService",
"->",
"isClassAnnotatedWith",
"(",
"$",
"className",
",",
"Flow",
... | Builds a raw configuration array by parsing possible scope and autowiring
annotations from the given class or interface.
@param string $className
@param array $rawObjectConfiguration
@return array | [
"Builds",
"a",
"raw",
"configuration",
"array",
"by",
"parsing",
"possible",
"scope",
"and",
"autowiring",
"annotations",
"from",
"the",
"given",
"class",
"or",
"interface",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L168-L177 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.parseConfigurationArray | protected function parseConfigurationArray($objectName, array $rawConfigurationOptions, $configurationSourceHint = '', $existingObjectConfiguration = null)
{
$className = (isset($rawConfigurationOptions['className']) ? $rawConfigurationOptions['className'] : $objectName);
$objectConfiguration = ($ex... | php | protected function parseConfigurationArray($objectName, array $rawConfigurationOptions, $configurationSourceHint = '', $existingObjectConfiguration = null)
{
$className = (isset($rawConfigurationOptions['className']) ? $rawConfigurationOptions['className'] : $objectName);
$objectConfiguration = ($ex... | [
"protected",
"function",
"parseConfigurationArray",
"(",
"$",
"objectName",
",",
"array",
"$",
"rawConfigurationOptions",
",",
"$",
"configurationSourceHint",
"=",
"''",
",",
"$",
"existingObjectConfiguration",
"=",
"null",
")",
"{",
"$",
"className",
"=",
"(",
"i... | Builds an object configuration object from a generic configuration container.
@param string $objectName Name of the object
@param array $rawConfigurationOptions The configuration array with options for the object configuration
@param string $configurationSourceHint A human readable hint on the original source of the c... | [
"Builds",
"an",
"object",
"configuration",
"object",
"from",
"a",
"generic",
"configuration",
"container",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L189-L248 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.parseScope | protected function parseScope($value)
{
switch ($value) {
case 'singleton':
return Configuration::SCOPE_SINGLETON;
case 'prototype':
return Configuration::SCOPE_PROTOTYPE;
case 'session':
return Configuration::SCOPE_SESSION;... | php | protected function parseScope($value)
{
switch ($value) {
case 'singleton':
return Configuration::SCOPE_SINGLETON;
case 'prototype':
return Configuration::SCOPE_PROTOTYPE;
case 'session':
return Configuration::SCOPE_SESSION;... | [
"protected",
"function",
"parseScope",
"(",
"$",
"value",
")",
"{",
"switch",
"(",
"$",
"value",
")",
"{",
"case",
"'singleton'",
":",
"return",
"Configuration",
"::",
"SCOPE_SINGLETON",
";",
"case",
"'prototype'",
":",
"return",
"Configuration",
"::",
"SCOPE_... | Parses the value of the option "scope"
@param string $value Value of the option
@return integer The scope translated into a Configuration::SCOPE_* constant
@throws InvalidObjectConfigurationException if an invalid scope has been specified | [
"Parses",
"the",
"value",
"of",
"the",
"option",
"scope"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L257-L269 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.parseAutowiring | protected static function parseAutowiring($value)
{
switch ($value) {
case true:
case Configuration::AUTOWIRING_MODE_ON:
return Configuration::AUTOWIRING_MODE_ON;
case false:
case Configuration::AUTOWIRING_MODE_OFF:
return Confi... | php | protected static function parseAutowiring($value)
{
switch ($value) {
case true:
case Configuration::AUTOWIRING_MODE_ON:
return Configuration::AUTOWIRING_MODE_ON;
case false:
case Configuration::AUTOWIRING_MODE_OFF:
return Confi... | [
"protected",
"static",
"function",
"parseAutowiring",
"(",
"$",
"value",
")",
"{",
"switch",
"(",
"$",
"value",
")",
"{",
"case",
"true",
":",
"case",
"Configuration",
"::",
"AUTOWIRING_MODE_ON",
":",
"return",
"Configuration",
"::",
"AUTOWIRING_MODE_ON",
";",
... | Parses the value of the option "autowiring"
@param mixed $value Value of the option
@return integer The autowiring option translated into one of Configuration::AUTOWIRING_MODE_*
@throws InvalidObjectConfigurationException if an invalid option has been specified | [
"Parses",
"the",
"value",
"of",
"the",
"option",
"autowiring"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L278-L290 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.parsePropertyOfTypeObject | protected function parsePropertyOfTypeObject($propertyName, $objectNameOrConfiguration, Configuration $parentObjectConfiguration)
{
if (is_array($objectNameOrConfiguration)) {
if (isset($objectNameOrConfiguration['name'])) {
$objectName = $objectNameOrConfiguration['name'];
... | php | protected function parsePropertyOfTypeObject($propertyName, $objectNameOrConfiguration, Configuration $parentObjectConfiguration)
{
if (is_array($objectNameOrConfiguration)) {
if (isset($objectNameOrConfiguration['name'])) {
$objectName = $objectNameOrConfiguration['name'];
... | [
"protected",
"function",
"parsePropertyOfTypeObject",
"(",
"$",
"propertyName",
",",
"$",
"objectNameOrConfiguration",
",",
"Configuration",
"$",
"parentObjectConfiguration",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"objectNameOrConfiguration",
")",
")",
"{",
"if",
... | Parses the configuration for properties of type OBJECT
@param string $propertyName Name of the property
@param mixed $objectNameOrConfiguration Value of the "object" section of the property configuration - either a string or an array
@param Configuration $parentObjectConfiguration The Configuration object this propert... | [
"Parses",
"the",
"configuration",
"for",
"properties",
"of",
"type",
"OBJECT"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L301-L324 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.parseArgumentOfTypeObject | protected function parseArgumentOfTypeObject($argumentName, $objectNameOrConfiguration, $configurationSourceHint)
{
if (is_array($objectNameOrConfiguration)) {
if (isset($objectNameOrConfiguration['name'])) {
$objectName = $objectNameOrConfiguration['name'];
unset... | php | protected function parseArgumentOfTypeObject($argumentName, $objectNameOrConfiguration, $configurationSourceHint)
{
if (is_array($objectNameOrConfiguration)) {
if (isset($objectNameOrConfiguration['name'])) {
$objectName = $objectNameOrConfiguration['name'];
unset... | [
"protected",
"function",
"parseArgumentOfTypeObject",
"(",
"$",
"argumentName",
",",
"$",
"objectNameOrConfiguration",
",",
"$",
"configurationSourceHint",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"objectNameOrConfiguration",
")",
")",
"{",
"if",
"(",
"isset",
"... | Parses the configuration for arguments of type OBJECT
@param string $argumentName Name of the argument
@param mixed $objectNameOrConfiguration Value of the "object" section of the argument configuration - either a string or an array
@param string $configurationSourceHint A human readable hint on the original source of... | [
"Parses",
"the",
"configuration",
"for",
"arguments",
"of",
"type",
"OBJECT"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L335-L354 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.autowireArguments | protected function autowireArguments(array &$objectConfigurations)
{
foreach ($objectConfigurations as $objectConfiguration) {
/** @var Configuration $objectConfiguration */
if ($objectConfiguration->getClassName() === '') {
continue;
}
if ($o... | php | protected function autowireArguments(array &$objectConfigurations)
{
foreach ($objectConfigurations as $objectConfiguration) {
/** @var Configuration $objectConfiguration */
if ($objectConfiguration->getClassName() === '') {
continue;
}
if ($o... | [
"protected",
"function",
"autowireArguments",
"(",
"array",
"&",
"$",
"objectConfigurations",
")",
"{",
"foreach",
"(",
"$",
"objectConfigurations",
"as",
"$",
"objectConfiguration",
")",
"{",
"/** @var Configuration $objectConfiguration */",
"if",
"(",
"$",
"objectConf... | If mandatory constructor arguments have not been defined yet, this function tries to autowire
them if possible.
@param array &$objectConfigurations
@return void
@throws UnresolvedDependenciesException | [
"If",
"mandatory",
"constructor",
"arguments",
"have",
"not",
"been",
"defined",
"yet",
"this",
"function",
"tries",
"to",
"autowire",
"them",
"if",
"possible",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L364-L413 |
neos/flow-development-collection | Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php | ConfigurationBuilder.autowireProperties | protected function autowireProperties(array &$objectConfigurations)
{
/** @var Configuration $objectConfiguration */
foreach ($objectConfigurations as $objectConfiguration) {
$className = $objectConfiguration->getClassName();
$properties = $objectConfiguration->getProperties(... | php | protected function autowireProperties(array &$objectConfigurations)
{
/** @var Configuration $objectConfiguration */
foreach ($objectConfigurations as $objectConfiguration) {
$className = $objectConfiguration->getClassName();
$properties = $objectConfiguration->getProperties(... | [
"protected",
"function",
"autowireProperties",
"(",
"array",
"&",
"$",
"objectConfigurations",
")",
"{",
"/** @var Configuration $objectConfiguration */",
"foreach",
"(",
"$",
"objectConfigurations",
"as",
"$",
"objectConfiguration",
")",
"{",
"$",
"className",
"=",
"$"... | This function tries to find yet unmatched dependencies which need to be injected via "inject*" setter methods.
@param array &$objectConfigurations
@return void
@throws ObjectException if an injected property is private | [
"This",
"function",
"tries",
"to",
"find",
"yet",
"unmatched",
"dependencies",
"which",
"need",
"to",
"be",
"injected",
"via",
"inject",
"*",
"setter",
"methods",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php#L422-L512 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.setStatusCache | public function setStatusCache(StringFrontend $cache)
{
$this->statusCache = $cache;
$backend = $this->statusCache->getBackend();
if (is_callable(['initializeObject', $backend])) {
$backend->initializeObject();
}
} | php | public function setStatusCache(StringFrontend $cache)
{
$this->statusCache = $cache;
$backend = $this->statusCache->getBackend();
if (is_callable(['initializeObject', $backend])) {
$backend->initializeObject();
}
} | [
"public",
"function",
"setStatusCache",
"(",
"StringFrontend",
"$",
"cache",
")",
"{",
"$",
"this",
"->",
"statusCache",
"=",
"$",
"cache",
";",
"$",
"backend",
"=",
"$",
"this",
"->",
"statusCache",
"->",
"getBackend",
"(",
")",
";",
"if",
"(",
"is_call... | Sets the status cache
The cache must be set before initializing the Reflection Service
@param StringFrontend $cache Cache for the reflection service
@return void | [
"Sets",
"the",
"status",
"cache"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L237-L244 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.initialize | protected function initialize()
{
$this->context = $this->environment->getContext();
if ($this->hasFrozenCacheInProduction()) {
$this->classReflectionData = $this->reflectionDataRuntimeCache->get('__classNames');
$this->annotatedClasses = $this->reflectionDataRuntimeCache->g... | php | protected function initialize()
{
$this->context = $this->environment->getContext();
if ($this->hasFrozenCacheInProduction()) {
$this->classReflectionData = $this->reflectionDataRuntimeCache->get('__classNames');
$this->annotatedClasses = $this->reflectionDataRuntimeCache->g... | [
"protected",
"function",
"initialize",
"(",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"$",
"this",
"->",
"environment",
"->",
"getContext",
"(",
")",
";",
"if",
"(",
"$",
"this",
"->",
"hasFrozenCacheInProduction",
"(",
")",
")",
"{",
"$",
"this",
"... | Initialize the reflection service lazily
This method must be run only after all dependencies have been injected.
@return void | [
"Initialize",
"the",
"reflection",
"service",
"lazily"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L338-L358 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.buildReflectionData | public function buildReflectionData(array $availableClassNames)
{
if (!$this->initialized) {
$this->initialize();
}
$this->availableClassNames = $availableClassNames;
$this->forgetChangedClasses();
$this->reflectEmergedClasses();
} | php | public function buildReflectionData(array $availableClassNames)
{
if (!$this->initialized) {
$this->initialize();
}
$this->availableClassNames = $availableClassNames;
$this->forgetChangedClasses();
$this->reflectEmergedClasses();
} | [
"public",
"function",
"buildReflectionData",
"(",
"array",
"$",
"availableClassNames",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"this",
"->",
"availableClassNames",
"=",... | Builds the reflection data cache during compile time.
This method is called by the CompiletimeObjectManager which also determines
the list of classes to consider for reflection.
@param array $availableClassNames List of all class names to consider for reflection
@return void | [
"Builds",
"the",
"reflection",
"data",
"cache",
"during",
"compile",
"time",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L369-L377 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isClassReflected | public function isClassReflected($className)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
return isset($this->classReflectionData[$className]);
} | php | public function isClassReflected($className)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
return isset($this->classReflectionData[$className]);
} | [
"public",
"function",
"isClassReflected",
"(",
"$",
"className",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"className",
"=",
"$",
"this",
"->",
"cleanClassName",
"(",... | Tells if the specified class is known to this reflection service and
reflection information is available.
@param string $className Name of the class
@return boolean If the class is reflected by this service
@api | [
"Tells",
"if",
"the",
"specified",
"class",
"is",
"known",
"to",
"this",
"reflection",
"service",
"and",
"reflection",
"information",
"is",
"available",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L387-L395 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getDefaultImplementationClassNameForInterface | public function getDefaultImplementationClassNameForInterface($interfaceName)
{
if (!$this->initialized) {
$this->initialize();
}
$interfaceName = $this->cleanClassName($interfaceName);
if (interface_exists($interfaceName) === false) {
throw new \InvalidArgum... | php | public function getDefaultImplementationClassNameForInterface($interfaceName)
{
if (!$this->initialized) {
$this->initialize();
}
$interfaceName = $this->cleanClassName($interfaceName);
if (interface_exists($interfaceName) === false) {
throw new \InvalidArgum... | [
"public",
"function",
"getDefaultImplementationClassNameForInterface",
"(",
"$",
"interfaceName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"interfaceName",
"=",
"$",
"this... | Searches for and returns the class name of the default implementation of the given
interface name. If no class implementing the interface was found or more than one
implementation was found in the package defining the interface, false is returned.
@param string $interfaceName Name of the interface
@return mixed Either... | [
"Searches",
"for",
"and",
"returns",
"the",
"class",
"name",
"of",
"the",
"default",
"implementation",
"of",
"the",
"given",
"interface",
"name",
".",
"If",
"no",
"class",
"implementing",
"the",
"interface",
"was",
"found",
"or",
"more",
"than",
"one",
"impl... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L422-L450 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getAllImplementationClassNamesForInterface | public function getAllImplementationClassNamesForInterface($interfaceName)
{
if (!$this->initialized) {
$this->initialize();
}
$interfaceName = $this->cleanClassName($interfaceName);
if (interface_exists($interfaceName) === false) {
throw new \InvalidArgument... | php | public function getAllImplementationClassNamesForInterface($interfaceName)
{
if (!$this->initialized) {
$this->initialize();
}
$interfaceName = $this->cleanClassName($interfaceName);
if (interface_exists($interfaceName) === false) {
throw new \InvalidArgument... | [
"public",
"function",
"getAllImplementationClassNamesForInterface",
"(",
"$",
"interfaceName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"interfaceName",
"=",
"$",
"this",
... | Searches for and returns all class names of implementations of the given object type
(interface name). If no class implementing the interface was found, an empty array is returned.
@param string $interfaceName Name of the interface
@return array An array of class names of the default implementation for the object type... | [
"Searches",
"for",
"and",
"returns",
"all",
"class",
"names",
"of",
"implementations",
"of",
"the",
"given",
"object",
"type",
"(",
"interface",
"name",
")",
".",
"If",
"no",
"class",
"implementing",
"the",
"interface",
"was",
"found",
"an",
"empty",
"array"... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L461-L474 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getAllSubClassNamesForClass | public function getAllSubClassNamesForClass($className)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
if (class_exists($className) === false) {
throw new \InvalidArgumentException('"' . $className . '" doe... | php | public function getAllSubClassNamesForClass($className)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
if (class_exists($className) === false) {
throw new \InvalidArgumentException('"' . $className . '" doe... | [
"public",
"function",
"getAllSubClassNamesForClass",
"(",
"$",
"className",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"className",
"=",
"$",
"this",
"->",
"cleanClassNa... | Searches for and returns all names of classes inheriting the specified class.
If no class inheriting the given class was found, an empty array is returned.
@param string $className Name of the parent class
@return array An array of names of those classes being a direct or indirect subclass of the specified class
@thro... | [
"Searches",
"for",
"and",
"returns",
"all",
"names",
"of",
"classes",
"inheriting",
"the",
"specified",
"class",
".",
"If",
"no",
"class",
"inheriting",
"the",
"given",
"class",
"was",
"found",
"an",
"empty",
"array",
"is",
"returned",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L485-L498 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getClassNamesByAnnotation | public function getClassNamesByAnnotation($annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotationClassName = $this->cleanClassName($annotationClassName);
return (isset($this->annotatedClasses[$annotationClassName]) ? array_keys($this->annota... | php | public function getClassNamesByAnnotation($annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotationClassName = $this->cleanClassName($annotationClassName);
return (isset($this->annotatedClasses[$annotationClassName]) ? array_keys($this->annota... | [
"public",
"function",
"getClassNamesByAnnotation",
"(",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"annotationClassName",
"=",
"$",
"this",
"->... | Searches for and returns all names of classes which are tagged by the specified
annotation. If no classes were found, an empty array is returned.
@param string $annotationClassName Name of the annotation class, for example "Neos\Flow\Annotations\Aspect"
@return array | [
"Searches",
"for",
"and",
"returns",
"all",
"names",
"of",
"classes",
"which",
"are",
"tagged",
"by",
"the",
"specified",
"annotation",
".",
"If",
"no",
"classes",
"were",
"found",
"an",
"empty",
"array",
"is",
"returned",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L507-L515 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isClassAnnotatedWith | public function isClassAnnotatedWith($className, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$annotationClassName = $this->cleanClassName($annotationClassName);
return (isset($this->an... | php | public function isClassAnnotatedWith($className, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$annotationClassName = $this->cleanClassName($annotationClassName);
return (isset($this->an... | [
"public",
"function",
"isClassAnnotatedWith",
"(",
"$",
"className",
",",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"className",
"=",
"$",
... | Tells if the specified class has the given annotation
@param string $className Name of the class
@param string $annotationClassName Annotation to check for
@return boolean
@api | [
"Tells",
"if",
"the",
"specified",
"class",
"has",
"the",
"given",
"annotation"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L525-L535 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getClassAnnotations | public function getClassAnnotations($className, $annotationClassName = null)
{
$className = $this->prepareClassReflectionForUsage($className);
$annotationClassName = $annotationClassName === null ? null : $this->cleanClassName($annotationClassName);
if (!isset($this->classReflectionData[$cl... | php | public function getClassAnnotations($className, $annotationClassName = null)
{
$className = $this->prepareClassReflectionForUsage($className);
$annotationClassName = $annotationClassName === null ? null : $this->cleanClassName($annotationClassName);
if (!isset($this->classReflectionData[$cl... | [
"public",
"function",
"getClassAnnotations",
"(",
"$",
"className",
",",
"$",
"annotationClassName",
"=",
"null",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"$",
"annotationClassName",
"... | Returns the specified class annotations or an empty array
@param string $className Name of the class
@param string $annotationClassName Annotation to filter for
@return array<object> | [
"Returns",
"the",
"specified",
"class",
"annotations",
"or",
"an",
"empty",
"array"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L544-L564 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getClassAnnotation | public function getClassAnnotation($className, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotations = $this->getClassAnnotations($className, $annotationClassName);
return $annotations === [] ? null : current($annotations);
} | php | public function getClassAnnotation($className, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotations = $this->getClassAnnotations($className, $annotationClassName);
return $annotations === [] ? null : current($annotations);
} | [
"public",
"function",
"getClassAnnotation",
"(",
"$",
"className",
",",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"annotations",
"=",
"$",
... | Returns the specified class annotation or NULL.
If multiple annotations are set on the target you will
get one (random) instance of them.
@param string $className Name of the class
@param string $annotationClassName Annotation to filter for
@return object | [
"Returns",
"the",
"specified",
"class",
"annotation",
"or",
"NULL",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L576-L584 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isClassImplementationOf | public function isClassImplementationOf($className, $interfaceName)
{
$className = $this->prepareClassReflectionForUsage($className);
$interfaceName = $this->cleanClassName($interfaceName);
$this->loadOrReflectClassIfNecessary($interfaceName);
return (isset($this->classReflectionDa... | php | public function isClassImplementationOf($className, $interfaceName)
{
$className = $this->prepareClassReflectionForUsage($className);
$interfaceName = $this->cleanClassName($interfaceName);
$this->loadOrReflectClassIfNecessary($interfaceName);
return (isset($this->classReflectionDa... | [
"public",
"function",
"isClassImplementationOf",
"(",
"$",
"className",
",",
"$",
"interfaceName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"$",
"interfaceName",
"=",
"$",
"this",
"-... | Tells if the specified class implements the given interface
@param string $className Name of the class
@param string $interfaceName interface to check for
@return boolean true if the class implements $interfaceName, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"class",
"implements",
"the",
"given",
"interface"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L594-L602 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isClassAbstract | public function isClassAbstract($className)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_ABSTRACT]);
} | php | public function isClassAbstract($className)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_ABSTRACT]);
} | [
"public",
"function",
"isClassAbstract",
"(",
"$",
"className",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$",
"this",
"->",
"classReflectionData",
"[",
"$",
... | Tells if the specified class is abstract or not
@param string $className Name of the class to analyze
@return boolean true if the class is abstract, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"class",
"is",
"abstract",
"or",
"not"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L611-L615 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isClassFinal | public function isClassFinal($className)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_FINAL]);
} | php | public function isClassFinal($className)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_FINAL]);
} | [
"public",
"function",
"isClassFinal",
"(",
"$",
"className",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$",
"this",
"->",
"classReflectionData",
"[",
"$",
"c... | Tells if the specified class is final or not
@param string $className Name of the class to analyze
@return boolean true if the class is final, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"class",
"is",
"final",
"or",
"not"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L624-L628 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getClassesContainingMethodsAnnotatedWith | public function getClassesContainingMethodsAnnotatedWith($annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
return isset($this->classesByMethodAnnotations[$annotationClassName]) ? array_keys($this->classesByMethodAnnotations[$annotationClassName]) : [];
... | php | public function getClassesContainingMethodsAnnotatedWith($annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
return isset($this->classesByMethodAnnotations[$annotationClassName]) ? array_keys($this->classesByMethodAnnotations[$annotationClassName]) : [];
... | [
"public",
"function",
"getClassesContainingMethodsAnnotatedWith",
"(",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"return",
"isset",
"(",
"$",
"this",... | Returns all class names of classes containing at least one method annotated
with the given annotation class
@param string $annotationClassName The annotation class name for a method annotation
@return array An array of class names
@api | [
"Returns",
"all",
"class",
"names",
"of",
"classes",
"containing",
"at",
"least",
"one",
"method",
"annotated",
"with",
"the",
"given",
"annotation",
"class"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L652-L659 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getMethodsAnnotatedWith | public function getMethodsAnnotatedWith($className, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
return isset($this->classesByMethodAnnotations[$annotationClassName][$className]) ? $this->classesByMethodAnnotations[$annotationClassName][$className] : ... | php | public function getMethodsAnnotatedWith($className, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
return isset($this->classesByMethodAnnotations[$annotationClassName][$className]) ? $this->classesByMethodAnnotations[$annotationClassName][$className] : ... | [
"public",
"function",
"getMethodsAnnotatedWith",
"(",
"$",
"className",
",",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"return",
"isset",
"(",
"$... | Returns all names of methods of the given class that are annotated with the given annotation class
@param string $className Name of the class containing the method(s)
@param string $annotationClassName The annotation class name for a method annotation
@return array An array of method names
@api | [
"Returns",
"all",
"names",
"of",
"methods",
"of",
"the",
"given",
"class",
"that",
"are",
"annotated",
"with",
"the",
"given",
"annotation",
"class"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L669-L675 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isMethodFinal | public function isMethodFinal($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_FINAL]);
} | php | public function isMethodFinal($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_FINAL]);
} | [
"public",
"function",
"isMethodFinal",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$",
"this",
"->",
"classRefl... | Tells if the specified method is final or not
@param string $className Name of the class containing the method
@param string $methodName Name of the method to analyze
@return boolean true if the method is final, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"method",
"is",
"final",
"or",
"not"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L685-L689 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isMethodStatic | public function isMethodStatic($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_STATIC]);
} | php | public function isMethodStatic($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_STATIC]);
} | [
"public",
"function",
"isMethodStatic",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$",
"this",
"->",
"classRef... | Tells if the specified method is declared as static or not
@param string $className Name of the class containing the method
@param string $methodName Name of the method to analyze
@return boolean true if the method is static, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"method",
"is",
"declared",
"as",
"static",
"or",
"not"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L699-L703 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isMethodPublic | public function isMethodPublic($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_VISIBILITY]) && $this->classReflectionData[$className][self::DATA_CL... | php | public function isMethodPublic($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_VISIBILITY]) && $this->classReflectionData[$className][self::DATA_CL... | [
"public",
"function",
"isMethodPublic",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"(",
"isset",
"(",
"$",
"this",
"->",
"c... | Tells if the specified method is public
@param string $className Name of the class containing the method
@param string $methodName Name of the method to analyze
@return boolean true if the method is public, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"method",
"is",
"public"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L713-L717 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isMethodProtected | public function isMethodProtected($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_VISIBILITY]) && $this->classReflectionData[$className][self::DATA... | php | public function isMethodProtected($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_VISIBILITY]) && $this->classReflectionData[$className][self::DATA... | [
"public",
"function",
"isMethodProtected",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"(",
"isset",
"(",
"$",
"this",
"->",
... | Tells if the specified method is protected
@param string $className Name of the class containing the method
@param string $methodName Name of the method to analyze
@return boolean true if the method is protected, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"method",
"is",
"protected"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L727-L731 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isMethodPrivate | public function isMethodPrivate($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_VISIBILITY]) && $this->classReflectionData[$className][self::DATA_C... | php | public function isMethodPrivate($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_VISIBILITY]) && $this->classReflectionData[$className][self::DATA_C... | [
"public",
"function",
"isMethodPrivate",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"(",
"isset",
"(",
"$",
"this",
"->",
"... | Tells if the specified method is private
@param string $className Name of the class containing the method
@param string $methodName Name of the method to analyze
@return boolean true if the method is private, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"method",
"is",
"private"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L741-L745 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isMethodTaggedWith | public function isMethodTaggedWith($className, $methodName, $tag)
{
if (!$this->initialized) {
$this->initialize();
}
$method = new MethodReflection($this->cleanClassName($className), $methodName);
$tagsValues = $method->getTagsValues();
return isset($tagsValues[... | php | public function isMethodTaggedWith($className, $methodName, $tag)
{
if (!$this->initialized) {
$this->initialize();
}
$method = new MethodReflection($this->cleanClassName($className), $methodName);
$tagsValues = $method->getTagsValues();
return isset($tagsValues[... | [
"public",
"function",
"isMethodTaggedWith",
"(",
"$",
"className",
",",
"$",
"methodName",
",",
"$",
"tag",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"method",
"=",... | Tells if the specified method is tagged with the given tag
@param string $className Name of the class containing the method
@param string $methodName Name of the method to analyze
@param string $tag Tag to check for
@return boolean true if the method is tagged with $tag, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"method",
"is",
"tagged",
"with",
"the",
"given",
"tag"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L756-L765 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getMethodAnnotations | public function getMethodAnnotations($className, $methodName, $annotationClassName = null)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$annotationClassName = $annotationClassName === null ? null : $this->cleanClassNa... | php | public function getMethodAnnotations($className, $methodName, $annotationClassName = null)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$annotationClassName = $annotationClassName === null ? null : $this->cleanClassNa... | [
"public",
"function",
"getMethodAnnotations",
"(",
"$",
"className",
",",
"$",
"methodName",
",",
"$",
"annotationClassName",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";... | Returns the specified method annotations or an empty array
@param string $className Name of the class
@param string $methodName Name of the method
@param string $annotationClassName Annotation to filter for
@return array<object>
@api | [
"Returns",
"the",
"specified",
"method",
"annotations",
"or",
"an",
"empty",
"array"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L790-L811 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getMethodAnnotation | public function getMethodAnnotation($className, $methodName, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotations = $this->getMethodAnnotations($className, $methodName, $annotationClassName);
return $annotations === [] ? null : current($... | php | public function getMethodAnnotation($className, $methodName, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotations = $this->getMethodAnnotations($className, $methodName, $annotationClassName);
return $annotations === [] ? null : current($... | [
"public",
"function",
"getMethodAnnotation",
"(",
"$",
"className",
",",
"$",
"methodName",
",",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
... | Returns the specified method annotation or NULL.
If multiple annotations are set on the target you will
get one (random) instance of them.
@param string $className Name of the class
@param string $methodName Name of the method
@param string $annotationClassName Annotation to filter for
@return object | [
"Returns",
"the",
"specified",
"method",
"annotation",
"or",
"NULL",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L824-L832 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getClassPropertyNames | public function getClassPropertyNames($className)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES]) ? array_keys($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES]) : [];
} | php | public function getClassPropertyNames($className)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES]) ? array_keys($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES]) : [];
} | [
"public",
"function",
"getClassPropertyNames",
"(",
"$",
"className",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$",
"this",
"->",
"classReflectionData",
"[",
... | Returns the names of all properties of the specified class
@param string $className Name of the class to return the property names of
@return array An array of property names or an empty array if none exist
@api | [
"Returns",
"the",
"names",
"of",
"all",
"properties",
"of",
"the",
"specified",
"class"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L841-L845 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.hasMethod | public function hasMethod($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName]);
} | php | public function hasMethod($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName]);
} | [
"public",
"function",
"hasMethod",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$",
"this",
"->",
"classReflecti... | Wrapper for method_exists() which tells if the given method exists.
@param string $className Name of the class containing the method
@param string $methodName Name of the method
@return boolean
@api | [
"Wrapper",
"for",
"method_exists",
"()",
"which",
"tells",
"if",
"the",
"given",
"method",
"exists",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L855-L859 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getMethodTagsValues | public function getMethodTagsValues($className, $methodName)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$method = new MethodReflection($className, $methodName);
return $method->getTagsValues();
} | php | public function getMethodTagsValues($className, $methodName)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$method = new MethodReflection($className, $methodName);
return $method->getTagsValues();
} | [
"public",
"function",
"getMethodTagsValues",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"className",
"=",
"$",
"this",
... | Returns all tags and their values the specified method is tagged with
@param string $className Name of the class containing the method
@param string $methodName Name of the method to return the tags and values of
@return array An array of tags and their values or an empty array of no tags were found
@api | [
"Returns",
"all",
"tags",
"and",
"their",
"values",
"the",
"specified",
"method",
"is",
"tagged",
"with"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L869-L879 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getMethodParameters | public function getMethodParameters($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_PARAMETERS])) {
return [];
}
return $... | php | public function getMethodParameters($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_PARAMETERS])) {
return [];
}
return $... | [
"public",
"function",
"getMethodParameters",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"-... | Returns an array of parameters of the given method. Each entry contains
additional information about the parameter position, type hint etc.
@param string $className Name of the class containing the method
@param string $methodName Name of the method to return parameter information of
@return array An array of paramete... | [
"Returns",
"an",
"array",
"of",
"parameters",
"of",
"the",
"given",
"method",
".",
"Each",
"entry",
"contains",
"additional",
"information",
"about",
"the",
"parameter",
"position",
"type",
"hint",
"etc",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L890-L898 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getMethodDeclaredReturnType | public function getMethodDeclaredReturnType($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_DECLARED_RETURN_TYPE])) {
return null;
... | php | public function getMethodDeclaredReturnType($className, $methodName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_DECLARED_RETURN_TYPE])) {
return null;
... | [
"public",
"function",
"getMethodDeclaredReturnType",
"(",
"$",
"className",
",",
"$",
"methodName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"if",
"(",
"!",
"isset",
"(",
"$",
"thi... | Returns the declared return type of a method (for PHP < 7.0 this will always return null)
@param string $className
@param string $methodName
@return string The declared return type of the method or null if none was declared | [
"Returns",
"the",
"declared",
"return",
"type",
"of",
"a",
"method",
"(",
"for",
"PHP",
"<",
"7",
".",
"0",
"this",
"will",
"always",
"return",
"null",
")"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L907-L915 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getPropertyNamesByTag | public function getPropertyNamesByTag($className, $tag)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES])) {
return [];
}
$propertyNames = [];
foreach ($this->classRef... | php | public function getPropertyNamesByTag($className, $tag)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES])) {
return [];
}
$propertyNames = [];
foreach ($this->classRef... | [
"public",
"function",
"getPropertyNamesByTag",
"(",
"$",
"className",
",",
"$",
"tag",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
... | Searches for and returns all names of class properties which are tagged by the specified tag.
If no properties were found, an empty array is returned.
@param string $className Name of the class containing the properties
@param string $tag Tag to search for
@return array An array of property names tagged by the tag
@ap... | [
"Searches",
"for",
"and",
"returns",
"all",
"names",
"of",
"class",
"properties",
"which",
"are",
"tagged",
"by",
"the",
"specified",
"tag",
".",
"If",
"no",
"properties",
"were",
"found",
"an",
"empty",
"array",
"is",
"returned",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L926-L941 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getPropertyTagsValues | public function getPropertyTagsValues($className, $propertyName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName])) {
return [];
}
return (isset($this->classRef... | php | public function getPropertyTagsValues($className, $propertyName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName])) {
return [];
}
return (isset($this->classRef... | [
"public",
"function",
"getPropertyTagsValues",
"(",
"$",
"className",
",",
"$",
"propertyName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
... | Returns all tags and their values the specified class property is tagged with
@param string $className Name of the class containing the property
@param string $propertyName Name of the property to return the tags and values of
@return array An array of tags and their values or an empty array of no tags were found
@api | [
"Returns",
"all",
"tags",
"and",
"their",
"values",
"the",
"specified",
"class",
"property",
"is",
"tagged",
"with"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L951-L959 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getPropertyTagValues | public function getPropertyTagValues($className, $propertyName, $tag)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName])) {
return [];
}
return (isset($this->cla... | php | public function getPropertyTagValues($className, $propertyName, $tag)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName])) {
return [];
}
return (isset($this->cla... | [
"public",
"function",
"getPropertyTagValues",
"(",
"$",
"className",
",",
"$",
"propertyName",
",",
"$",
"tag",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"if",
"(",
"!",
"isset",
... | Returns the values of the specified class property tag
@param string $className Name of the class containing the property
@param string $propertyName Name of the tagged property
@param string $tag Tag to return the values of
@return array An array of values or an empty array if the tag was not found
@api | [
"Returns",
"the",
"values",
"of",
"the",
"specified",
"class",
"property",
"tag"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L970-L978 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isPropertyPrivate | public function isPropertyPrivate($className, $propertyName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_VISIBILITY])
&& $this->classReflectionData[$... | php | public function isPropertyPrivate($className, $propertyName)
{
$className = $this->prepareClassReflectionForUsage($className);
return (isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_VISIBILITY])
&& $this->classReflectionData[$... | [
"public",
"function",
"isPropertyPrivate",
"(",
"$",
"className",
",",
"$",
"propertyName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"(",
"isset",
"(",
"$",
"this",
"->",... | Tells if the specified property is private
@param string $className Name of the class containing the method
@param string $propertyName Name of the property to analyze
@return boolean true if the property is private, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"property",
"is",
"private"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L988-L993 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isPropertyTaggedWith | public function isPropertyTaggedWith($className, $propertyName, $tag)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_TAGS_VALUES][$tag]);
} | php | public function isPropertyTaggedWith($className, $propertyName, $tag)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_TAGS_VALUES][$tag]);
} | [
"public",
"function",
"isPropertyTaggedWith",
"(",
"$",
"className",
",",
"$",
"propertyName",
",",
"$",
"tag",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"isset",
"(",
"$"... | Tells if the specified class property is tagged with the given tag
@param string $className Name of the class
@param string $propertyName Name of the property
@param string $tag Tag to check for
@return boolean true if the class property is tagged with $tag, otherwise false
@api | [
"Tells",
"if",
"the",
"specified",
"class",
"property",
"is",
"tagged",
"with",
"the",
"given",
"tag"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1004-L1008 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isPropertyAnnotatedWith | public function isPropertyAnnotatedWith($className, $propertyName, $annotationClassName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS][$annotationClass... | php | public function isPropertyAnnotatedWith($className, $propertyName, $annotationClassName)
{
$className = $this->prepareClassReflectionForUsage($className);
return isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS][$annotationClass... | [
"public",
"function",
"isPropertyAnnotatedWith",
"(",
"$",
"className",
",",
"$",
"propertyName",
",",
"$",
"annotationClassName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"return",
"i... | Tells if the specified property has the given annotation
@param string $className Name of the class
@param string $propertyName Name of the method
@param string $annotationClassName Annotation to check for
@return boolean
@api | [
"Tells",
"if",
"the",
"specified",
"property",
"has",
"the",
"given",
"annotation"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1019-L1023 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getPropertyNamesByAnnotation | public function getPropertyNamesByAnnotation($className, $annotationClassName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES])) {
return [];
}
$propertyNames = [];
f... | php | public function getPropertyNamesByAnnotation($className, $annotationClassName)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES])) {
return [];
}
$propertyNames = [];
f... | [
"public",
"function",
"getPropertyNamesByAnnotation",
"(",
"$",
"className",
",",
"$",
"annotationClassName",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
"if",
"(",
"!",
"isset",
"(",
"... | Searches for and returns all names of class properties which are marked by the
specified annotation. If no properties were found, an empty array is returned.
@param string $className Name of the class containing the properties
@param string $annotationClassName Class name of the annotation to search for
@return array ... | [
"Searches",
"for",
"and",
"returns",
"all",
"names",
"of",
"class",
"properties",
"which",
"are",
"marked",
"by",
"the",
"specified",
"annotation",
".",
"If",
"no",
"properties",
"were",
"found",
"an",
"empty",
"array",
"is",
"returned",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1034-L1049 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getPropertyAnnotations | public function getPropertyAnnotations($className, $propertyName, $annotationClassName = null)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS])) {
... | php | public function getPropertyAnnotations($className, $propertyName, $annotationClassName = null)
{
$className = $this->prepareClassReflectionForUsage($className);
if (!isset($this->classReflectionData[$className][self::DATA_CLASS_PROPERTIES][$propertyName][self::DATA_PROPERTY_ANNOTATIONS])) {
... | [
"public",
"function",
"getPropertyAnnotations",
"(",
"$",
"className",
",",
"$",
"propertyName",
",",
"$",
"annotationClassName",
"=",
"null",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
";",
... | Returns the specified property annotations or an empty array
@param string $className Name of the class
@param string $propertyName Name of the property
@param string $annotationClassName Annotation to filter for
@return array<object>
@api | [
"Returns",
"the",
"specified",
"property",
"annotations",
"or",
"an",
"empty",
"array"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1060-L1076 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getPropertyAnnotation | public function getPropertyAnnotation($className, $propertyName, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotations = $this->getPropertyAnnotations($className, $propertyName, $annotationClassName);
return $annotations === [] ? null : c... | php | public function getPropertyAnnotation($className, $propertyName, $annotationClassName)
{
if (!$this->initialized) {
$this->initialize();
}
$annotations = $this->getPropertyAnnotations($className, $propertyName, $annotationClassName);
return $annotations === [] ? null : c... | [
"public",
"function",
"getPropertyAnnotation",
"(",
"$",
"className",
",",
"$",
"propertyName",
",",
"$",
"annotationClassName",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$... | Returns the specified property annotation or NULL.
If multiple annotations are set on the target you will
get one (random) instance of them.
@param string $className Name of the class
@param string $propertyName Name of the property
@param string $annotationClassName Annotation to filter for
@return object | [
"Returns",
"the",
"specified",
"property",
"annotation",
"or",
"NULL",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1089-L1097 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getClassSchema | public function getClassSchema($classNameOrObject)
{
$className = $classNameOrObject;
if (is_object($classNameOrObject)) {
$className = TypeHandling::getTypeForValue($classNameOrObject);
}
$className = $this->cleanClassName($className);
if (!isset($this->classSch... | php | public function getClassSchema($classNameOrObject)
{
$className = $classNameOrObject;
if (is_object($classNameOrObject)) {
$className = TypeHandling::getTypeForValue($classNameOrObject);
}
$className = $this->cleanClassName($className);
if (!isset($this->classSch... | [
"public",
"function",
"getClassSchema",
"(",
"$",
"classNameOrObject",
")",
"{",
"$",
"className",
"=",
"$",
"classNameOrObject",
";",
"if",
"(",
"is_object",
"(",
"$",
"classNameOrObject",
")",
")",
"{",
"$",
"className",
"=",
"TypeHandling",
"::",
"getTypeFo... | Returns the class schema for the given class
@param mixed $classNameOrObject The class name or an object
@return ClassSchema | [
"Returns",
"the",
"class",
"schema",
"for",
"the",
"given",
"class"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1105-L1118 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.prepareClassReflectionForUsage | protected function prepareClassReflectionForUsage($className)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$this->loadOrReflectClassIfNecessary($className);
return $className;
} | php | protected function prepareClassReflectionForUsage($className)
{
if (!$this->initialized) {
$this->initialize();
}
$className = $this->cleanClassName($className);
$this->loadOrReflectClassIfNecessary($className);
return $className;
} | [
"protected",
"function",
"prepareClassReflectionForUsage",
"(",
"$",
"className",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"className",
"=",
"$",
"this",
"->",
"cleanC... | Initializes the ReflectionService, cleans the given class name and finally reflects the class if necessary.
@param string $className
@return string The cleaned class name | [
"Initializes",
"the",
"ReflectionService",
"cleans",
"the",
"given",
"class",
"name",
"and",
"finally",
"reflects",
"the",
"class",
"if",
"necessary",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1126-L1135 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.reflectEmergedClasses | protected function reflectEmergedClasses()
{
$classNamesToReflect = [];
foreach ($this->availableClassNames as $classNamesInOnePackage) {
$classNamesToReflect = array_merge($classNamesToReflect, $classNamesInOnePackage);
}
$reflectedClassNames = array_keys($this->classRef... | php | protected function reflectEmergedClasses()
{
$classNamesToReflect = [];
foreach ($this->availableClassNames as $classNamesInOnePackage) {
$classNamesToReflect = array_merge($classNamesToReflect, $classNamesInOnePackage);
}
$reflectedClassNames = array_keys($this->classRef... | [
"protected",
"function",
"reflectEmergedClasses",
"(",
")",
"{",
"$",
"classNamesToReflect",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"->",
"availableClassNames",
"as",
"$",
"classNamesInOnePackage",
")",
"{",
"$",
"classNamesToReflect",
"=",
"array_merge"... | Checks if the given class names match those which already have been
reflected. If the given array contains class names not yet known to
this service, these classes will be reflected.
@return void
@throws Exception | [
"Checks",
"if",
"the",
"given",
"class",
"names",
"match",
"those",
"which",
"already",
"have",
"been",
"reflected",
".",
"If",
"the",
"given",
"array",
"contains",
"class",
"names",
"not",
"yet",
"known",
"to",
"this",
"service",
"these",
"classes",
"will",... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1145-L1188 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.isTagIgnored | protected function isTagIgnored($tagName)
{
if (isset($this->settings['ignoredTags'][$tagName]) && $this->settings['ignoredTags'][$tagName] === true) {
return true;
}
// Make this setting backwards compatible with old array schema (deprecated since 3.0)
if (in_array($tagN... | php | protected function isTagIgnored($tagName)
{
if (isset($this->settings['ignoredTags'][$tagName]) && $this->settings['ignoredTags'][$tagName] === true) {
return true;
}
// Make this setting backwards compatible with old array schema (deprecated since 3.0)
if (in_array($tagN... | [
"protected",
"function",
"isTagIgnored",
"(",
"$",
"tagName",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"settings",
"[",
"'ignoredTags'",
"]",
"[",
"$",
"tagName",
"]",
")",
"&&",
"$",
"this",
"->",
"settings",
"[",
"'ignoredTags'",
"]",
"[... | Check if a specific annotation tag is configured to be ignored.
@param string $tagName The annotation tag to check
@return boolean true if the tag is configured to be ignored, false otherwise | [
"Check",
"if",
"a",
"specific",
"annotation",
"tag",
"is",
"configured",
"to",
"be",
"ignored",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1196-L1207 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.reflectClass | protected function reflectClass($className)
{
$this->log(sprintf('Reflecting class %s', $className), LogLevel::DEBUG);
$className = $this->cleanClassName($className);
if (strpos($className, 'Neos\Flow\Persistence\Doctrine\Proxies') === 0 && in_array(\Doctrine\ORM\Proxy\Proxy::class, class_i... | php | protected function reflectClass($className)
{
$this->log(sprintf('Reflecting class %s', $className), LogLevel::DEBUG);
$className = $this->cleanClassName($className);
if (strpos($className, 'Neos\Flow\Persistence\Doctrine\Proxies') === 0 && in_array(\Doctrine\ORM\Proxy\Proxy::class, class_i... | [
"protected",
"function",
"reflectClass",
"(",
"$",
"className",
")",
"{",
"$",
"this",
"->",
"log",
"(",
"sprintf",
"(",
"'Reflecting class %s'",
",",
"$",
"className",
")",
",",
"LogLevel",
"::",
"DEBUG",
")",
";",
"$",
"className",
"=",
"$",
"this",
"-... | Reflects the given class and stores the results in this service's properties.
@param string $className Full qualified name of the class to reflect
@return void
@throws Exception\InvalidClassException | [
"Reflects",
"the",
"given",
"class",
"and",
"stores",
"the",
"results",
"in",
"this",
"service",
"s",
"properties",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1216-L1269 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.expandType | protected function expandType(ClassReflection $class, $type)
{
$typeWithoutNull = TypeHandling::stripNullableType($type);
$isNullable = $typeWithoutNull !== $type;
// expand "SomeType<SomeElementType>" to "\SomeTypeNamespace\SomeType<\ElementTypeNamespace\ElementType>"
if (strpos($ty... | php | protected function expandType(ClassReflection $class, $type)
{
$typeWithoutNull = TypeHandling::stripNullableType($type);
$isNullable = $typeWithoutNull !== $type;
// expand "SomeType<SomeElementType>" to "\SomeTypeNamespace\SomeType<\ElementTypeNamespace\ElementType>"
if (strpos($ty... | [
"protected",
"function",
"expandType",
"(",
"ClassReflection",
"$",
"class",
",",
"$",
"type",
")",
"{",
"$",
"typeWithoutNull",
"=",
"TypeHandling",
"::",
"stripNullableType",
"(",
"$",
"type",
")",
";",
"$",
"isNullable",
"=",
"$",
"typeWithoutNull",
"!==",
... | Expand shortened class names in "var" and "param" annotations, taking use statements into account.
@param ClassReflection $class
@param string $type the type inside var/param annotation
@return string the possibly expanded type | [
"Expand",
"shortened",
"class",
"names",
"in",
"var",
"and",
"param",
"annotations",
"taking",
"use",
"statements",
"into",
"account",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1443-L1490 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.getParentClasses | protected function getParentClasses(ClassReflection $class, array $parentClasses = [])
{
$parentClass = $class->getParentClass();
if ($parentClass !== false) {
$parentClasses[] = $parentClass;
$parentClasses = $this->getParentClasses($parentClass, $parentClasses);
}
... | php | protected function getParentClasses(ClassReflection $class, array $parentClasses = [])
{
$parentClass = $class->getParentClass();
if ($parentClass !== false) {
$parentClasses[] = $parentClass;
$parentClasses = $this->getParentClasses($parentClass, $parentClasses);
}
... | [
"protected",
"function",
"getParentClasses",
"(",
"ClassReflection",
"$",
"class",
",",
"array",
"$",
"parentClasses",
"=",
"[",
"]",
")",
"{",
"$",
"parentClass",
"=",
"$",
"class",
"->",
"getParentClass",
"(",
")",
";",
"if",
"(",
"$",
"parentClass",
"!=... | Finds all parent classes of the given class
@param ClassReflection $class The class to reflect
@param array $parentClasses Array of parent classes
@return array<ClassReflection> | [
"Finds",
"all",
"parent",
"classes",
"of",
"the",
"given",
"class"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1499-L1508 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.buildClassSchemata | protected function buildClassSchemata(array $classNames)
{
foreach ($classNames as $className) {
$this->classSchemata[$className] = $this->buildClassSchema($className);
}
$this->completeRepositoryAssignments();
$this->ensureAggregateRootInheritanceChainConsistency();
... | php | protected function buildClassSchemata(array $classNames)
{
foreach ($classNames as $className) {
$this->classSchemata[$className] = $this->buildClassSchema($className);
}
$this->completeRepositoryAssignments();
$this->ensureAggregateRootInheritanceChainConsistency();
... | [
"protected",
"function",
"buildClassSchemata",
"(",
"array",
"$",
"classNames",
")",
"{",
"foreach",
"(",
"$",
"classNames",
"as",
"$",
"className",
")",
"{",
"$",
"this",
"->",
"classSchemata",
"[",
"$",
"className",
"]",
"=",
"$",
"this",
"->",
"buildCla... | Builds class schemata from classes annotated as entities or value objects
@param array $classNames
@return void | [
"Builds",
"class",
"schemata",
"from",
"classes",
"annotated",
"as",
"entities",
"or",
"value",
"objects"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1516-L1524 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.buildClassSchema | protected function buildClassSchema($className)
{
$classSchema = new ClassSchema($className);
$this->addPropertiesToClassSchema($classSchema);
if ($this->isClassAnnotatedWith($className, ORM\Embeddable::class)) {
return $classSchema;
}
if ($this->isClassAnnotate... | php | protected function buildClassSchema($className)
{
$classSchema = new ClassSchema($className);
$this->addPropertiesToClassSchema($classSchema);
if ($this->isClassAnnotatedWith($className, ORM\Embeddable::class)) {
return $classSchema;
}
if ($this->isClassAnnotate... | [
"protected",
"function",
"buildClassSchema",
"(",
"$",
"className",
")",
"{",
"$",
"classSchema",
"=",
"new",
"ClassSchema",
"(",
"$",
"className",
")",
";",
"$",
"this",
"->",
"addPropertiesToClassSchema",
"(",
"$",
"classSchema",
")",
";",
"if",
"(",
"$",
... | Builds a class schema for the given class name.
@param string $className
@return ClassSchema | [
"Builds",
"a",
"class",
"schema",
"for",
"the",
"given",
"class",
"name",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1532-L1559 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.addPropertiesToClassSchema | protected function addPropertiesToClassSchema(ClassSchema $classSchema)
{
$className = $classSchema->getClassName();
$skipArtificialIdentity = false;
/* @var $valueObjectAnnotation Flow\ValueObject */
$valueObjectAnnotation = $this->getClassAnnotation($className, Flow\ValueObject::c... | php | protected function addPropertiesToClassSchema(ClassSchema $classSchema)
{
$className = $classSchema->getClassName();
$skipArtificialIdentity = false;
/* @var $valueObjectAnnotation Flow\ValueObject */
$valueObjectAnnotation = $this->getClassAnnotation($className, Flow\ValueObject::c... | [
"protected",
"function",
"addPropertiesToClassSchema",
"(",
"ClassSchema",
"$",
"classSchema",
")",
"{",
"$",
"className",
"=",
"$",
"classSchema",
"->",
"getClassName",
"(",
")",
";",
"$",
"skipArtificialIdentity",
"=",
"false",
";",
"/* @var $valueObjectAnnotation F... | Adds properties of the class at hand to the class schema.
Properties will be added if they have a var annotation && (!transient-annotation && !inject-annotation)
Invalid annotations will cause an exception to be thrown.
@param ClassSchema $classSchema
@return void
@throws Exception\InvalidPropertyTypeException | [
"Adds",
"properties",
"of",
"the",
"class",
"at",
"hand",
"to",
"the",
"class",
"schema",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1572-L1592 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.completeRepositoryAssignments | protected function completeRepositoryAssignments()
{
foreach ($this->getAllImplementationClassNamesForInterface(RepositoryInterface::class) as $repositoryClassName) {
// need to be extra careful because this code could be called
// during a cache:flush run with corrupted reflection c... | php | protected function completeRepositoryAssignments()
{
foreach ($this->getAllImplementationClassNamesForInterface(RepositoryInterface::class) as $repositoryClassName) {
// need to be extra careful because this code could be called
// during a cache:flush run with corrupted reflection c... | [
"protected",
"function",
"completeRepositoryAssignments",
"(",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"getAllImplementationClassNamesForInterface",
"(",
"RepositoryInterface",
"::",
"class",
")",
"as",
"$",
"repositoryClassName",
")",
"{",
"// need to be extra caref... | Complete repository-to-entity assignments.
This method looks for repositories that declare themselves responsible
for a specific model and sets a repository classname on the corresponding
models.
It then walks the inheritance chain for all aggregate roots and checks
the subclasses for their aggregate root status - if... | [
"Complete",
"repository",
"-",
"to",
"-",
"entity",
"assignments",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1661-L1684 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.makeChildClassesAggregateRoot | protected function makeChildClassesAggregateRoot(ClassSchema $classSchema)
{
foreach ($this->getAllSubClassNamesForClass($classSchema->getClassName()) as $childClassName) {
if (!isset($this->classSchemata[$childClassName]) || $this->classSchemata[$childClassName]->isAggregateRoot()) {
... | php | protected function makeChildClassesAggregateRoot(ClassSchema $classSchema)
{
foreach ($this->getAllSubClassNamesForClass($classSchema->getClassName()) as $childClassName) {
if (!isset($this->classSchemata[$childClassName]) || $this->classSchemata[$childClassName]->isAggregateRoot()) {
... | [
"protected",
"function",
"makeChildClassesAggregateRoot",
"(",
"ClassSchema",
"$",
"classSchema",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"getAllSubClassNamesForClass",
"(",
"$",
"classSchema",
"->",
"getClassName",
"(",
")",
")",
"as",
"$",
"childClassName",
... | Assigns the repository of any aggregate root to all it's
subclasses, unless they are aggregate root already.
@param ClassSchema $classSchema
@return void | [
"Assigns",
"the",
"repository",
"of",
"any",
"aggregate",
"root",
"to",
"all",
"it",
"s",
"subclasses",
"unless",
"they",
"are",
"aggregate",
"root",
"already",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1693-L1703 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.ensureAggregateRootInheritanceChainConsistency | protected function ensureAggregateRootInheritanceChainConsistency()
{
foreach ($this->classSchemata as $className => $classSchema) {
if (!class_exists($className) || ($classSchema instanceof ClassSchema && $classSchema->isAggregateRoot() === false)) {
continue;
}
... | php | protected function ensureAggregateRootInheritanceChainConsistency()
{
foreach ($this->classSchemata as $className => $classSchema) {
if (!class_exists($className) || ($classSchema instanceof ClassSchema && $classSchema->isAggregateRoot() === false)) {
continue;
}
... | [
"protected",
"function",
"ensureAggregateRootInheritanceChainConsistency",
"(",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"classSchemata",
"as",
"$",
"className",
"=>",
"$",
"classSchema",
")",
"{",
"if",
"(",
"!",
"class_exists",
"(",
"$",
"className",
")",
... | Checks whether all aggregate roots having superclasses
have a repository assigned up to the tip of their hierarchy.
@return void
@throws Exception | [
"Checks",
"whether",
"all",
"aggregate",
"roots",
"having",
"superclasses",
"have",
"a",
"repository",
"assigned",
"up",
"to",
"the",
"tip",
"of",
"their",
"hierarchy",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1712-L1728 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.checkValueObjectRequirements | protected function checkValueObjectRequirements($className)
{
$methods = get_class_methods($className);
if (in_array('__construct', $methods, true) === false) {
throw new InvalidValueObjectException('A value object must have a constructor, "' . $className . '" does not have one.', 126874... | php | protected function checkValueObjectRequirements($className)
{
$methods = get_class_methods($className);
if (in_array('__construct', $methods, true) === false) {
throw new InvalidValueObjectException('A value object must have a constructor, "' . $className . '" does not have one.', 126874... | [
"protected",
"function",
"checkValueObjectRequirements",
"(",
"$",
"className",
")",
"{",
"$",
"methods",
"=",
"get_class_methods",
"(",
"$",
"className",
")",
";",
"if",
"(",
"in_array",
"(",
"'__construct'",
",",
"$",
"methods",
",",
"true",
")",
"===",
"f... | Checks if the given class meets the requirements for a value object, i.e.
does have a constructor and does not have any setter methods.
@param string $className
@return void
@throws InvalidValueObjectException | [
"Checks",
"if",
"the",
"given",
"class",
"meets",
"the",
"requirements",
"for",
"a",
"value",
"object",
"i",
".",
"e",
".",
"does",
"have",
"a",
"constructor",
"and",
"does",
"not",
"have",
"any",
"setter",
"methods",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1738-L1752 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.convertParameterDataToArray | protected function convertParameterDataToArray(array $parametersInformation)
{
$parameters = [];
foreach ($parametersInformation as $parameterName => $parameterData) {
$parameters[$parameterName] = [
'position' => $parameterData[self::DATA_PARAMETER_POSITION],
... | php | protected function convertParameterDataToArray(array $parametersInformation)
{
$parameters = [];
foreach ($parametersInformation as $parameterName => $parameterData) {
$parameters[$parameterName] = [
'position' => $parameterData[self::DATA_PARAMETER_POSITION],
... | [
"protected",
"function",
"convertParameterDataToArray",
"(",
"array",
"$",
"parametersInformation",
")",
"{",
"$",
"parameters",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"parametersInformation",
"as",
"$",
"parameterName",
"=>",
"$",
"parameterData",
")",
"{",
"... | Converts the internal, optimized data structure of parameter information into
a human-friendly array with speaking indexes.
@param array $parametersInformation Raw, internal parameter information
@return array Developer friendly version | [
"Converts",
"the",
"internal",
"optimized",
"data",
"structure",
"of",
"parameter",
"information",
"into",
"a",
"human",
"-",
"friendly",
"array",
"with",
"speaking",
"indexes",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1761-L1779 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.convertParameterReflectionToArray | protected function convertParameterReflectionToArray(ParameterReflection $parameter, MethodReflection $method = null)
{
$parameterInformation = [
self::DATA_PARAMETER_POSITION => $parameter->getPosition()
];
if ($parameter->isPassedByReference()) {
$parameterInformati... | php | protected function convertParameterReflectionToArray(ParameterReflection $parameter, MethodReflection $method = null)
{
$parameterInformation = [
self::DATA_PARAMETER_POSITION => $parameter->getPosition()
];
if ($parameter->isPassedByReference()) {
$parameterInformati... | [
"protected",
"function",
"convertParameterReflectionToArray",
"(",
"ParameterReflection",
"$",
"parameter",
",",
"MethodReflection",
"$",
"method",
"=",
"null",
")",
"{",
"$",
"parameterInformation",
"=",
"[",
"self",
"::",
"DATA_PARAMETER_POSITION",
"=>",
"$",
"param... | Converts the given parameter reflection into an information array
@param ParameterReflection $parameter The parameter to reflect
@param MethodReflection $method The parameter's method
@return array Parameter information array | [
"Converts",
"the",
"given",
"parameter",
"reflection",
"into",
"an",
"information",
"array"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1788-L1837 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.forgetChangedClasses | protected function forgetChangedClasses()
{
$frozenNamespaces = [];
/** @var $package Package */
foreach ($this->packageManager->getAvailablePackages() as $packageKey => $package) {
if ($this->packageManager->isPackageFrozen($packageKey)) {
$frozenNamespaces = arr... | php | protected function forgetChangedClasses()
{
$frozenNamespaces = [];
/** @var $package Package */
foreach ($this->packageManager->getAvailablePackages() as $packageKey => $package) {
if ($this->packageManager->isPackageFrozen($packageKey)) {
$frozenNamespaces = arr... | [
"protected",
"function",
"forgetChangedClasses",
"(",
")",
"{",
"$",
"frozenNamespaces",
"=",
"[",
"]",
";",
"/** @var $package Package */",
"foreach",
"(",
"$",
"this",
"->",
"packageManager",
"->",
"getAvailablePackages",
"(",
")",
"as",
"$",
"packageKey",
"=>",... | Checks which classes lack a cache entry and removes their reflection data
accordingly.
@return void | [
"Checks",
"which",
"classes",
"lack",
"a",
"cache",
"entry",
"and",
"removes",
"their",
"reflection",
"data",
"accordingly",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1845-L1871 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.forgetClass | protected function forgetClass($className)
{
$this->log('Forget class ' . $className, LogLevel::DEBUG);
if (isset($this->classesCurrentlyBeingForgotten[$className])) {
$this->log('Detected recursion while forgetting class ' . $className, LogLevel::WARNING);
return;
}
... | php | protected function forgetClass($className)
{
$this->log('Forget class ' . $className, LogLevel::DEBUG);
if (isset($this->classesCurrentlyBeingForgotten[$className])) {
$this->log('Detected recursion while forgetting class ' . $className, LogLevel::WARNING);
return;
}
... | [
"protected",
"function",
"forgetClass",
"(",
"$",
"className",
")",
"{",
"$",
"this",
"->",
"log",
"(",
"'Forget class '",
".",
"$",
"className",
",",
"LogLevel",
"::",
"DEBUG",
")",
";",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"classesCurrentlyBeingFo... | Forgets all reflection data related to the specified class
@param string $className Name of the class to forget
@return void | [
"Forgets",
"all",
"reflection",
"data",
"related",
"to",
"the",
"specified",
"class"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1879-L1927 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.loadClassReflectionCompiletimeCache | protected function loadClassReflectionCompiletimeCache()
{
$data = $this->reflectionDataCompiletimeCache->get('ReflectionData');
if ($data !== false) {
foreach ($data as $propertyName => $propertyValue) {
$this->$propertyName = $propertyValue;
}
... | php | protected function loadClassReflectionCompiletimeCache()
{
$data = $this->reflectionDataCompiletimeCache->get('ReflectionData');
if ($data !== false) {
foreach ($data as $propertyName => $propertyValue) {
$this->$propertyName = $propertyValue;
}
... | [
"protected",
"function",
"loadClassReflectionCompiletimeCache",
"(",
")",
"{",
"$",
"data",
"=",
"$",
"this",
"->",
"reflectionDataCompiletimeCache",
"->",
"get",
"(",
"'ReflectionData'",
")",
";",
"if",
"(",
"$",
"data",
"!==",
"false",
")",
"{",
"foreach",
"... | Tries to load the reflection data from the compile time cache.
The compile time cache is only supported for Development context and thus
this function will return in any other context.
If no reflection data was found, this method will at least load the precompiled
reflection data of any possible frozen package. Even ... | [
"Tries",
"to",
"load",
"the",
"reflection",
"data",
"from",
"the",
"compile",
"time",
"cache",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1942-L1976 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.loadOrReflectClassIfNecessary | protected function loadOrReflectClassIfNecessary($className)
{
if (!isset($this->classReflectionData[$className]) || is_array($this->classReflectionData[$className])) {
return;
}
if ($this->loadFromClassSchemaRuntimeCache === true) {
$this->classReflectionData[$class... | php | protected function loadOrReflectClassIfNecessary($className)
{
if (!isset($this->classReflectionData[$className]) || is_array($this->classReflectionData[$className])) {
return;
}
if ($this->loadFromClassSchemaRuntimeCache === true) {
$this->classReflectionData[$class... | [
"protected",
"function",
"loadOrReflectClassIfNecessary",
"(",
"$",
"className",
")",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
"classReflectionData",
"[",
"$",
"className",
"]",
")",
"||",
"is_array",
"(",
"$",
"this",
"->",
"classReflectionData",... | Loads reflection data from the cache or reflects the class if needed.
If the class is completely unknown, this method won't try to load or reflect
it. If it is known and reflection data has been loaded already, it won't be
loaded again.
In Production context, with frozen caches, this method will load reflection
data ... | [
"Loads",
"reflection",
"data",
"from",
"the",
"cache",
"or",
"reflects",
"the",
"class",
"if",
"needed",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L1991-L2004 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.freezePackageReflection | public function freezePackageReflection($packageKey)
{
if (!$this->initialized) {
$this->initialize();
}
if (empty($this->availableClassNames)) {
$this->availableClassNames = $this->reflectionDataRuntimeCache->get('__availableClassNames');
}
$reflecti... | php | public function freezePackageReflection($packageKey)
{
if (!$this->initialized) {
$this->initialize();
}
if (empty($this->availableClassNames)) {
$this->availableClassNames = $this->reflectionDataRuntimeCache->get('__availableClassNames');
}
$reflecti... | [
"public",
"function",
"freezePackageReflection",
"(",
"$",
"packageKey",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"if",
"(",
"empty",
"(",
"$",
"this",
"->",
"availableCl... | Stores the current reflection data related to classes of the specified package
in the PrecompiledReflectionData directory for the current context.
This method is used by the package manager.
@param string $packageKey
@return void | [
"Stores",
"the",
"current",
"reflection",
"data",
"related",
"to",
"classes",
"of",
"the",
"specified",
"package",
"in",
"the",
"PrecompiledReflectionData",
"directory",
"for",
"the",
"current",
"context",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2015-L2050 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.filterArrayByClassesInPackageNamespace | protected function filterArrayByClassesInPackageNamespace(array $array, $packageKey)
{
return array_filter($array, function ($className) use ($packageKey) {
return (isset($this->availableClassNames[$packageKey]) && in_array($className, $this->availableClassNames[$packageKey]));
}, ARRAY_... | php | protected function filterArrayByClassesInPackageNamespace(array $array, $packageKey)
{
return array_filter($array, function ($className) use ($packageKey) {
return (isset($this->availableClassNames[$packageKey]) && in_array($className, $this->availableClassNames[$packageKey]));
}, ARRAY_... | [
"protected",
"function",
"filterArrayByClassesInPackageNamespace",
"(",
"array",
"$",
"array",
",",
"$",
"packageKey",
")",
"{",
"return",
"array_filter",
"(",
"$",
"array",
",",
"function",
"(",
"$",
"className",
")",
"use",
"(",
"$",
"packageKey",
")",
"{",
... | Filter an array of entries were keys are class names by being in the given package namespace.
@param array $array
@param string $packageKey
@return array | [
"Filter",
"an",
"array",
"of",
"entries",
"were",
"keys",
"are",
"class",
"names",
"by",
"being",
"in",
"the",
"given",
"package",
"namespace",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2059-L2064 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.unfreezePackageReflection | public function unfreezePackageReflection($packageKey)
{
if (!$this->initialized) {
$this->initialize();
}
$pathAndFilename = $this->getPrecompiledReflectionStoragePath() . $packageKey . '.dat';
if (file_exists($pathAndFilename)) {
unlink($pathAndFilename);
... | php | public function unfreezePackageReflection($packageKey)
{
if (!$this->initialized) {
$this->initialize();
}
$pathAndFilename = $this->getPrecompiledReflectionStoragePath() . $packageKey . '.dat';
if (file_exists($pathAndFilename)) {
unlink($pathAndFilename);
... | [
"public",
"function",
"unfreezePackageReflection",
"(",
"$",
"packageKey",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
")",
";",
"}",
"$",
"pathAndFilename",
"=",
"$",
"this",
"->",
"getPrec... | Removes the precompiled reflection data of a frozen package
This method is used by the package manager.
@param string $packageKey The package to remove the data from
@return void | [
"Removes",
"the",
"precompiled",
"reflection",
"data",
"of",
"a",
"frozen",
"package"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2074-L2083 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.saveToCache | public function saveToCache()
{
if ($this->hasFrozenCacheInProduction()) {
return;
}
if (!$this->initialized) {
$this->initialize();
}
if ($this->loadFromClassSchemaRuntimeCache === true) {
return;
}
if (!($this->reflection... | php | public function saveToCache()
{
if ($this->hasFrozenCacheInProduction()) {
return;
}
if (!$this->initialized) {
$this->initialize();
}
if ($this->loadFromClassSchemaRuntimeCache === true) {
return;
}
if (!($this->reflection... | [
"public",
"function",
"saveToCache",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"hasFrozenCacheInProduction",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"!",
"$",
"this",
"->",
"initialized",
")",
"{",
"$",
"this",
"->",
"initialize",
"(",
... | Exports the internal reflection data into the ReflectionData cache
This method is triggered by a signal which is connected to the bootstrap's
shutdown sequence.
If the reflection data has previously been loaded from the runtime cache,
saving it is omitted as changes are not expected.
In Production context the whole ... | [
"Exports",
"the",
"internal",
"reflection",
"data",
"into",
"the",
"ReflectionData",
"cache"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2101-L2131 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.saveDevelopmentData | protected function saveDevelopmentData()
{
foreach (array_keys($this->packageManager->getFrozenPackages()) as $packageKey) {
$pathAndFilename = $this->getPrecompiledReflectionStoragePath() . $packageKey . '.dat';
if (!file_exists($pathAndFilename)) {
$this->log(sprint... | php | protected function saveDevelopmentData()
{
foreach (array_keys($this->packageManager->getFrozenPackages()) as $packageKey) {
$pathAndFilename = $this->getPrecompiledReflectionStoragePath() . $packageKey . '.dat';
if (!file_exists($pathAndFilename)) {
$this->log(sprint... | [
"protected",
"function",
"saveDevelopmentData",
"(",
")",
"{",
"foreach",
"(",
"array_keys",
"(",
"$",
"this",
"->",
"packageManager",
"->",
"getFrozenPackages",
"(",
")",
")",
"as",
"$",
"packageKey",
")",
"{",
"$",
"pathAndFilename",
"=",
"$",
"this",
"->"... | Save reflection data to cache in Development context. | [
"Save",
"reflection",
"data",
"to",
"cache",
"in",
"Development",
"context",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2136-L2145 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.saveProductionData | protected function saveProductionData()
{
$this->reflectionDataRuntimeCache->flush();
$classNames = [];
foreach ($this->classReflectionData as $className => $reflectionData) {
$classNames[$className] = true;
$cacheIdentifier = $this->produceCacheIdentifierFromClassNa... | php | protected function saveProductionData()
{
$this->reflectionDataRuntimeCache->flush();
$classNames = [];
foreach ($this->classReflectionData as $className => $reflectionData) {
$classNames[$className] = true;
$cacheIdentifier = $this->produceCacheIdentifierFromClassNa... | [
"protected",
"function",
"saveProductionData",
"(",
")",
"{",
"$",
"this",
"->",
"reflectionDataRuntimeCache",
"->",
"flush",
"(",
")",
";",
"$",
"classNames",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"->",
"classReflectionData",
"as",
"$",
"classNam... | Save reflection data to cache in Production context. | [
"Save",
"reflection",
"data",
"to",
"cache",
"in",
"Production",
"context",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2150-L2170 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.updateReflectionData | protected function updateReflectionData()
{
$this->log(sprintf('Found %s classes whose reflection data was not cached previously.', count($this->updatedReflectionData)), LogLevel::DEBUG);
foreach (array_keys($this->updatedReflectionData) as $className) {
$this->statusCache->set($this->p... | php | protected function updateReflectionData()
{
$this->log(sprintf('Found %s classes whose reflection data was not cached previously.', count($this->updatedReflectionData)), LogLevel::DEBUG);
foreach (array_keys($this->updatedReflectionData) as $className) {
$this->statusCache->set($this->p... | [
"protected",
"function",
"updateReflectionData",
"(",
")",
"{",
"$",
"this",
"->",
"log",
"(",
"sprintf",
"(",
"'Found %s classes whose reflection data was not cached previously.'",
",",
"count",
"(",
"$",
"this",
"->",
"updatedReflectionData",
")",
")",
",",
"LogLeve... | Set updated reflection data to caches. | [
"Set",
"updated",
"reflection",
"data",
"to",
"caches",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2175-L2196 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ReflectionService.php | ReflectionService.log | protected function log($message, $severity = LogLevel::INFO, $additionalData = [])
{
if (is_object($this->logger)) {
$this->logger->log($severity, $message, $additionalData);
}
} | php | protected function log($message, $severity = LogLevel::INFO, $additionalData = [])
{
if (is_object($this->logger)) {
$this->logger->log($severity, $message, $additionalData);
}
} | [
"protected",
"function",
"log",
"(",
"$",
"message",
",",
"$",
"severity",
"=",
"LogLevel",
"::",
"INFO",
",",
"$",
"additionalData",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"is_object",
"(",
"$",
"this",
"->",
"logger",
")",
")",
"{",
"$",
"this",
"->... | Writes the given message along with the additional information into the log.
@param string $message The message to log
@param string $severity One of the PSR LogLevel constants
@param array $additionalData An array containing more information about the event to be logged
@return void | [
"Writes",
"the",
"given",
"message",
"along",
"with",
"the",
"additional",
"information",
"into",
"the",
"log",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ReflectionService.php#L2228-L2233 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.initializeController | protected function initializeController(RequestInterface $request, ResponseInterface $response)
{
if (!$request instanceof ActionRequest) {
throw new UnsupportedRequestTypeException(get_class($this) . ' only supports action requests – requests of type "' . get_class($request) . '" given.', 11877... | php | protected function initializeController(RequestInterface $request, ResponseInterface $response)
{
if (!$request instanceof ActionRequest) {
throw new UnsupportedRequestTypeException(get_class($this) . ' only supports action requests – requests of type "' . get_class($request) . '" given.', 11877... | [
"protected",
"function",
"initializeController",
"(",
"RequestInterface",
"$",
"request",
",",
"ResponseInterface",
"$",
"response",
")",
"{",
"if",
"(",
"!",
"$",
"request",
"instanceof",
"ActionRequest",
")",
"{",
"throw",
"new",
"UnsupportedRequestTypeException",
... | Initializes the controller
This method should be called by the concrete processRequest() method.
@param RequestInterface $request
@param ResponseInterface|ActionResponse $response
@throws UnsupportedRequestTypeException
TODO: This should expect an ActionRequest and ActionResponse in the next major. | [
"Initializes",
"the",
"controller"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L111-L134 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.addFlashMessage | public function addFlashMessage($messageBody, $messageTitle = '', $severity = Error\Message::SEVERITY_OK, array $messageArguments = [], $messageCode = null)
{
if (!is_string($messageBody)) {
throw new \InvalidArgumentException('The message body must be of type string, "' . gettype($messageBody) ... | php | public function addFlashMessage($messageBody, $messageTitle = '', $severity = Error\Message::SEVERITY_OK, array $messageArguments = [], $messageCode = null)
{
if (!is_string($messageBody)) {
throw new \InvalidArgumentException('The message body must be of type string, "' . gettype($messageBody) ... | [
"public",
"function",
"addFlashMessage",
"(",
"$",
"messageBody",
",",
"$",
"messageTitle",
"=",
"''",
",",
"$",
"severity",
"=",
"Error",
"\\",
"Message",
"::",
"SEVERITY_OK",
",",
"array",
"$",
"messageArguments",
"=",
"[",
"]",
",",
"$",
"messageCode",
... | Creates a Message object and adds it to the FlashMessageContainer.
This method should be used to add FlashMessages rather than interacting with the container directly.
@param string $messageBody text of the FlashMessage
@param string $messageTitle optional header of the FlashMessage
@param string $severity severity o... | [
"Creates",
"a",
"Message",
"object",
"and",
"adds",
"it",
"to",
"the",
"FlashMessageContainer",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L163-L183 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.forward | protected function forward($actionName, $controllerName = null, $packageKey = null, array $arguments = [])
{
$nextRequest = clone $this->request;
$nextRequest->setControllerActionName($actionName);
if ($controllerName !== null) {
$nextRequest->setControllerName($controllerName);... | php | protected function forward($actionName, $controllerName = null, $packageKey = null, array $arguments = [])
{
$nextRequest = clone $this->request;
$nextRequest->setControllerActionName($actionName);
if ($controllerName !== null) {
$nextRequest->setControllerName($controllerName);... | [
"protected",
"function",
"forward",
"(",
"$",
"actionName",
",",
"$",
"controllerName",
"=",
"null",
",",
"$",
"packageKey",
"=",
"null",
",",
"array",
"$",
"arguments",
"=",
"[",
"]",
")",
"{",
"$",
"nextRequest",
"=",
"clone",
"$",
"this",
"->",
"req... | Forwards the request to another action and / or controller.
Request is directly transferred to the other action / controller
@param string $actionName Name of the action to forward to
@param string $controllerName Unqualified object name of the controller to forward to. If not specified, the current controller is use... | [
"Forwards",
"the",
"request",
"to",
"another",
"action",
"and",
"/",
"or",
"controller",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L199-L231 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.forwardToRequest | protected function forwardToRequest(ActionRequest $request)
{
$packageKey = $request->getControllerPackageKey();
$subpackageKey = $request->getControllerSubpackageKey();
if ($subpackageKey !== null) {
$packageKey .= '\\' . $subpackageKey;
}
$this->forward($request... | php | protected function forwardToRequest(ActionRequest $request)
{
$packageKey = $request->getControllerPackageKey();
$subpackageKey = $request->getControllerSubpackageKey();
if ($subpackageKey !== null) {
$packageKey .= '\\' . $subpackageKey;
}
$this->forward($request... | [
"protected",
"function",
"forwardToRequest",
"(",
"ActionRequest",
"$",
"request",
")",
"{",
"$",
"packageKey",
"=",
"$",
"request",
"->",
"getControllerPackageKey",
"(",
")",
";",
"$",
"subpackageKey",
"=",
"$",
"request",
"->",
"getControllerSubpackageKey",
"(",... | Forwards the request to another action and / or controller.
Request is directly transfered to the other action / controller
@param ActionRequest $request The request to redirect to
@return void
@throws ForwardException
@see redirectToRequest()
@api | [
"Forwards",
"the",
"request",
"to",
"another",
"action",
"and",
"/",
"or",
"controller",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L244-L252 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.redirect | protected function redirect($actionName, $controllerName = null, $packageKey = null, array $arguments = null, $delay = 0, $statusCode = 303, $format = null)
{
if ($packageKey !== null && strpos($packageKey, '\\') !== false) {
list($packageKey, $subpackageKey) = explode('\\', $packageKey, 2);
... | php | protected function redirect($actionName, $controllerName = null, $packageKey = null, array $arguments = null, $delay = 0, $statusCode = 303, $format = null)
{
if ($packageKey !== null && strpos($packageKey, '\\') !== false) {
list($packageKey, $subpackageKey) = explode('\\', $packageKey, 2);
... | [
"protected",
"function",
"redirect",
"(",
"$",
"actionName",
",",
"$",
"controllerName",
"=",
"null",
",",
"$",
"packageKey",
"=",
"null",
",",
"array",
"$",
"arguments",
"=",
"null",
",",
"$",
"delay",
"=",
"0",
",",
"$",
"statusCode",
"=",
"303",
","... | Redirects the request to another action and / or controller.
Redirect will be sent to the client which then performs another request to the new URI.
NOTE: This method only supports web requests and will throw an exception
if used with other request types.
@param string $actionName Name of the action to forward to
@p... | [
"Redirects",
"the",
"request",
"to",
"another",
"action",
"and",
"/",
"or",
"controller",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L274-L290 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.redirectToRequest | protected function redirectToRequest(ActionRequest $request, $delay = 0, $statusCode = 303)
{
$packageKey = $request->getControllerPackageKey();
$subpackageKey = $request->getControllerSubpackageKey();
if ($subpackageKey !== null) {
$packageKey .= '\\' . $subpackageKey;
}... | php | protected function redirectToRequest(ActionRequest $request, $delay = 0, $statusCode = 303)
{
$packageKey = $request->getControllerPackageKey();
$subpackageKey = $request->getControllerSubpackageKey();
if ($subpackageKey !== null) {
$packageKey .= '\\' . $subpackageKey;
}... | [
"protected",
"function",
"redirectToRequest",
"(",
"ActionRequest",
"$",
"request",
",",
"$",
"delay",
"=",
"0",
",",
"$",
"statusCode",
"=",
"303",
")",
"{",
"$",
"packageKey",
"=",
"$",
"request",
"->",
"getControllerPackageKey",
"(",
")",
";",
"$",
"sub... | Redirects the request to another action and / or controller.
Redirect will be sent to the client which then performs another request to the new URI.
NOTE: This method only supports web requests and will throw an exception
if used with other request types.
@param ActionRequest $request The request to redirect to
@par... | [
"Redirects",
"the",
"request",
"to",
"another",
"action",
"and",
"/",
"or",
"controller",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L308-L316 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.redirectToUri | protected function redirectToUri($uri, $delay = 0, $statusCode = 303)
{
if ($delay === 0) {
if (!$uri instanceof UriInterface) {
$uri = new \Neos\Flow\Http\Uri($uri);
}
$this->response->setStatus($statusCode);
$this->response->setHeader('Locati... | php | protected function redirectToUri($uri, $delay = 0, $statusCode = 303)
{
if ($delay === 0) {
if (!$uri instanceof UriInterface) {
$uri = new \Neos\Flow\Http\Uri($uri);
}
$this->response->setStatus($statusCode);
$this->response->setHeader('Locati... | [
"protected",
"function",
"redirectToUri",
"(",
"$",
"uri",
",",
"$",
"delay",
"=",
"0",
",",
"$",
"statusCode",
"=",
"303",
")",
"{",
"if",
"(",
"$",
"delay",
"===",
"0",
")",
"{",
"if",
"(",
"!",
"$",
"uri",
"instanceof",
"UriInterface",
")",
"{",... | Redirects to another URI
@param mixed $uri Either a string representation of a URI or a \Neos\Flow\Http\Uri object
@param integer $delay (optional) The delay in seconds. Default is no delay.
@param integer $statusCode (optional) The HTTP status code for the redirect. Default is "303 See Other"
@throws UnsupportedReque... | [
"Redirects",
"to",
"another",
"URI"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L328-L342 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.throwStatus | protected function throwStatus($statusCode, $statusMessage = null, $content = null)
{
$this->response->setStatus($statusCode, $statusMessage);
if ($content === null) {
$content = $this->response->getStatus();
}
$this->response->setContent($content);
throw new Stop... | php | protected function throwStatus($statusCode, $statusMessage = null, $content = null)
{
$this->response->setStatus($statusCode, $statusMessage);
if ($content === null) {
$content = $this->response->getStatus();
}
$this->response->setContent($content);
throw new Stop... | [
"protected",
"function",
"throwStatus",
"(",
"$",
"statusCode",
",",
"$",
"statusMessage",
"=",
"null",
",",
"$",
"content",
"=",
"null",
")",
"{",
"$",
"this",
"->",
"response",
"->",
"setStatus",
"(",
"$",
"statusCode",
",",
"$",
"statusMessage",
")",
... | Sends the specified HTTP status immediately.
NOTE: This method only supports web requests and will throw an exception if used with other request types.
TODO: statusMessage argument is deprecated and will no longer be used from 6.0
@param integer $statusCode The HTTP status code
@param string $statusMessage A custom ... | [
"Sends",
"the",
"specified",
"HTTP",
"status",
"immediately",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L358-L366 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Controller/AbstractController.php | AbstractController.mapRequestArgumentsToControllerArguments | protected function mapRequestArgumentsToControllerArguments()
{
foreach ($this->arguments as $argument) {
$argumentName = $argument->getName();
if ($this->request->hasArgument($argumentName)) {
$argument->setValue($this->request->getArgument($argumentName));
... | php | protected function mapRequestArgumentsToControllerArguments()
{
foreach ($this->arguments as $argument) {
$argumentName = $argument->getName();
if ($this->request->hasArgument($argumentName)) {
$argument->setValue($this->request->getArgument($argumentName));
... | [
"protected",
"function",
"mapRequestArgumentsToControllerArguments",
"(",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"arguments",
"as",
"$",
"argument",
")",
"{",
"$",
"argumentName",
"=",
"$",
"argument",
"->",
"getName",
"(",
")",
";",
"if",
"(",
"$",
... | Maps arguments delivered by the request object to the local controller arguments.
@return void
@throws RequiredArgumentMissingException
@api | [
"Maps",
"arguments",
"delivered",
"by",
"the",
"request",
"object",
"to",
"the",
"local",
"controller",
"arguments",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Controller/AbstractController.php#L375-L385 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/MethodReflection.php | MethodReflection.getParameters | public function getParameters()
{
$extendedParameters = [];
foreach (parent::getParameters() as $parameter) {
$extendedParameters[] = new ParameterReflection([$this->getDeclaringClass()->getName(), $this->getName()], $parameter->getName());
}
return $extendedParameters;
... | php | public function getParameters()
{
$extendedParameters = [];
foreach (parent::getParameters() as $parameter) {
$extendedParameters[] = new ParameterReflection([$this->getDeclaringClass()->getName(), $this->getName()], $parameter->getName());
}
return $extendedParameters;
... | [
"public",
"function",
"getParameters",
"(",
")",
"{",
"$",
"extendedParameters",
"=",
"[",
"]",
";",
"foreach",
"(",
"parent",
"::",
"getParameters",
"(",
")",
"as",
"$",
"parameter",
")",
"{",
"$",
"extendedParameters",
"[",
"]",
"=",
"new",
"ParameterRef... | Replacement for the original getParameters() method which makes sure
that ParameterReflection objects are returned instead of the
original ReflectionParameter instances.
@return array<ParameterReflection> objects of the parameters of this method | [
"Replacement",
"for",
"the",
"original",
"getParameters",
"()",
"method",
"which",
"makes",
"sure",
"that",
"ParameterReflection",
"objects",
"are",
"returned",
"instead",
"of",
"the",
"original",
"ReflectionParameter",
"instances",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/MethodReflection.php#L45-L52 |
neos/flow-development-collection | Neos.Eel/Classes/CompilingEvaluator.php | CompilingEvaluator.evaluate | public function evaluate($expression, Context $context)
{
$expression = trim($expression);
$identifier = md5($expression);
$functionName = 'expression_' . $identifier;
if (isset($this->evaluatedExpressions[$functionName])) {
return $this->evaluateAndUnwrap($this->evaluate... | php | public function evaluate($expression, Context $context)
{
$expression = trim($expression);
$identifier = md5($expression);
$functionName = 'expression_' . $identifier;
if (isset($this->evaluatedExpressions[$functionName])) {
return $this->evaluateAndUnwrap($this->evaluate... | [
"public",
"function",
"evaluate",
"(",
"$",
"expression",
",",
"Context",
"$",
"context",
")",
"{",
"$",
"expression",
"=",
"trim",
"(",
"$",
"expression",
")",
";",
"$",
"identifier",
"=",
"md5",
"(",
"$",
"expression",
")",
";",
"$",
"functionName",
... | Evaluate an expression under a given context
@param string $expression
@param Context $context
@return mixed | [
"Evaluate",
"an",
"expression",
"under",
"a",
"given",
"context"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Eel/Classes/CompilingEvaluator.php#L54-L72 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.setServers | protected function setServers(array $servers)
{
$this->servers = $servers;
if (!count($this->servers)) {
throw new Exception('No servers were given to Memcache', 1213115903);
}
$this->memcache = extension_loaded('memcached') ? new \MemCached() : new \Memcache();
... | php | protected function setServers(array $servers)
{
$this->servers = $servers;
if (!count($this->servers)) {
throw new Exception('No servers were given to Memcache', 1213115903);
}
$this->memcache = extension_loaded('memcached') ? new \MemCached() : new \Memcache();
... | [
"protected",
"function",
"setServers",
"(",
"array",
"$",
"servers",
")",
"{",
"$",
"this",
"->",
"servers",
"=",
"$",
"servers",
";",
"if",
"(",
"!",
"count",
"(",
"$",
"this",
"->",
"servers",
")",
")",
"{",
"throw",
"new",
"Exception",
"(",
"'No s... | Setter for servers to be used. Expects an array, the values are expected
to be formatted like "<host>[:<port>]" or "unix://<path>"
@param array $servers An array of servers to add.
@return void
@throws Exception
@api | [
"Setter",
"for",
"servers",
"to",
"be",
"used",
".",
"Expects",
"an",
"array",
"the",
"values",
"are",
"expected",
"to",
"be",
"formatted",
"like",
"<host",
">",
"[",
":",
"<port",
">",
"]",
"or",
"unix",
":",
"//",
"<path",
">"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L105-L130 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.setCompression | protected function setCompression(bool $useCompression)
{
if ($this->memcache instanceof \Memcached) {
$this->memcache->setOption(\Memcached::OPT_COMPRESSION, $useCompression);
return;
}
if ($useCompression === true) {
$this->flags ^= MEMCACHE_COMPRESSED;
... | php | protected function setCompression(bool $useCompression)
{
if ($this->memcache instanceof \Memcached) {
$this->memcache->setOption(\Memcached::OPT_COMPRESSION, $useCompression);
return;
}
if ($useCompression === true) {
$this->flags ^= MEMCACHE_COMPRESSED;
... | [
"protected",
"function",
"setCompression",
"(",
"bool",
"$",
"useCompression",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"memcache",
"instanceof",
"\\",
"Memcached",
")",
"{",
"$",
"this",
"->",
"memcache",
"->",
"setOption",
"(",
"\\",
"Memcached",
"::",
"O... | Setter for compression flags bit
@param boolean $useCompression
@return void
@api | [
"Setter",
"for",
"compression",
"flags",
"bit"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L139-L150 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.set | public function set(string $entryIdentifier, string $data, array $tags = [], int $lifetime = null)
{
if (strlen($this->identifierPrefix . $entryIdentifier) > 250) {
throw new \InvalidArgumentException('Could not set value. Key more than 250 characters (' . $this->identifierPrefix . $entryIdentif... | php | public function set(string $entryIdentifier, string $data, array $tags = [], int $lifetime = null)
{
if (strlen($this->identifierPrefix . $entryIdentifier) > 250) {
throw new \InvalidArgumentException('Could not set value. Key more than 250 characters (' . $this->identifierPrefix . $entryIdentif... | [
"public",
"function",
"set",
"(",
"string",
"$",
"entryIdentifier",
",",
"string",
"$",
"data",
",",
"array",
"$",
"tags",
"=",
"[",
"]",
",",
"int",
"$",
"lifetime",
"=",
"null",
")",
"{",
"if",
"(",
"strlen",
"(",
"$",
"this",
"->",
"identifierPref... | Saves data in the cache.
@param string $entryIdentifier An identifier for this specific cache entry
@param string $data The data to be stored
@param array $tags Tags to associate with this cache entry
@param integer $lifetime Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. ... | [
"Saves",
"data",
"in",
"the",
"cache",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L196-L235 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.setItem | protected function setItem(string $key, string $value, int $expiration)
{
if ($this->memcache instanceof \Memcached) {
return $this->memcache->set($key, $value, $expiration);
}
return $this->memcache->set($key, $value, $this->flags, $expiration);
} | php | protected function setItem(string $key, string $value, int $expiration)
{
if ($this->memcache instanceof \Memcached) {
return $this->memcache->set($key, $value, $expiration);
}
return $this->memcache->set($key, $value, $this->flags, $expiration);
} | [
"protected",
"function",
"setItem",
"(",
"string",
"$",
"key",
",",
"string",
"$",
"value",
",",
"int",
"$",
"expiration",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"memcache",
"instanceof",
"\\",
"Memcached",
")",
"{",
"return",
"$",
"this",
"->",
"memc... | Stores an item on the server
@param string $key
@param string $value
@param integer $expiration
@return boolean | [
"Stores",
"an",
"item",
"on",
"the",
"server"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L245-L251 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.get | public function get(string $entryIdentifier)
{
$value = $this->memcache->get($this->identifierPrefix . $entryIdentifier);
if (substr($value, 0, 13) === 'Flow*chunked:') {
list(, $chunkCount) = explode(':', $value);
$value = '';
for ($chunkNumber = 1; $chunkNumber ... | php | public function get(string $entryIdentifier)
{
$value = $this->memcache->get($this->identifierPrefix . $entryIdentifier);
if (substr($value, 0, 13) === 'Flow*chunked:') {
list(, $chunkCount) = explode(':', $value);
$value = '';
for ($chunkNumber = 1; $chunkNumber ... | [
"public",
"function",
"get",
"(",
"string",
"$",
"entryIdentifier",
")",
"{",
"$",
"value",
"=",
"$",
"this",
"->",
"memcache",
"->",
"get",
"(",
"$",
"this",
"->",
"identifierPrefix",
".",
"$",
"entryIdentifier",
")",
";",
"if",
"(",
"substr",
"(",
"$... | Loads data from the cache.
@param string $entryIdentifier An identifier which describes the cache entry to load
@return mixed The cache entry's content as a string or false if the cache entry could not be loaded
@api | [
"Loads",
"data",
"from",
"the",
"cache",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L260-L271 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.has | public function has(string $entryIdentifier): bool
{
return $this->memcache->get($this->identifierPrefix . $entryIdentifier) !== false;
} | php | public function has(string $entryIdentifier): bool
{
return $this->memcache->get($this->identifierPrefix . $entryIdentifier) !== false;
} | [
"public",
"function",
"has",
"(",
"string",
"$",
"entryIdentifier",
")",
":",
"bool",
"{",
"return",
"$",
"this",
"->",
"memcache",
"->",
"get",
"(",
"$",
"this",
"->",
"identifierPrefix",
".",
"$",
"entryIdentifier",
")",
"!==",
"false",
";",
"}"
] | Checks if a cache entry with the specified identifier exists.
@param string $entryIdentifier An identifier specifying the cache entry
@return boolean true if such an entry exists, false if not
@api | [
"Checks",
"if",
"a",
"cache",
"entry",
"with",
"the",
"specified",
"identifier",
"exists",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L280-L283 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.remove | public function remove(string $entryIdentifier): bool
{
$this->removeIdentifierFromAllTags($entryIdentifier);
return $this->memcache->delete($this->identifierPrefix . $entryIdentifier);
} | php | public function remove(string $entryIdentifier): bool
{
$this->removeIdentifierFromAllTags($entryIdentifier);
return $this->memcache->delete($this->identifierPrefix . $entryIdentifier);
} | [
"public",
"function",
"remove",
"(",
"string",
"$",
"entryIdentifier",
")",
":",
"bool",
"{",
"$",
"this",
"->",
"removeIdentifierFromAllTags",
"(",
"$",
"entryIdentifier",
")",
";",
"return",
"$",
"this",
"->",
"memcache",
"->",
"delete",
"(",
"$",
"this",
... | Removes all cache entries matching the specified identifier.
Usually this only affects one entry but if - for what reason ever -
old entries for the identifier still exist, they are removed as well.
@param string $entryIdentifier Specifies the cache entry to remove
@return boolean true if (at least) an entry could be ... | [
"Removes",
"all",
"cache",
"entries",
"matching",
"the",
"specified",
"identifier",
".",
"Usually",
"this",
"only",
"affects",
"one",
"entry",
"but",
"if",
"-",
"for",
"what",
"reason",
"ever",
"-",
"old",
"entries",
"for",
"the",
"identifier",
"still",
"exi... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L294-L298 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.findIdentifiersByTag | public function findIdentifiersByTag(string $tag): array
{
$identifiers = $this->memcache->get($this->identifierPrefix . 'tag_' . $tag);
if ($identifiers !== false) {
return (array) $identifiers;
}
return [];
} | php | public function findIdentifiersByTag(string $tag): array
{
$identifiers = $this->memcache->get($this->identifierPrefix . 'tag_' . $tag);
if ($identifiers !== false) {
return (array) $identifiers;
}
return [];
} | [
"public",
"function",
"findIdentifiersByTag",
"(",
"string",
"$",
"tag",
")",
":",
"array",
"{",
"$",
"identifiers",
"=",
"$",
"this",
"->",
"memcache",
"->",
"get",
"(",
"$",
"this",
"->",
"identifierPrefix",
".",
"'tag_'",
".",
"$",
"tag",
")",
";",
... | Finds and returns all cache entry identifiers which are tagged by the
specified tag.
@param string $tag The tag to search for
@return array An array with identifiers of all matching entries. An empty array if no entries matched
@api | [
"Finds",
"and",
"returns",
"all",
"cache",
"entry",
"identifiers",
"which",
"are",
"tagged",
"by",
"the",
"specified",
"tag",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L308-L315 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.findTagsByIdentifier | protected function findTagsByIdentifier(string $identifier): array
{
$tags = $this->memcache->get($this->identifierPrefix . 'ident_' . $identifier);
return ($tags === false ? [] : (array)$tags);
} | php | protected function findTagsByIdentifier(string $identifier): array
{
$tags = $this->memcache->get($this->identifierPrefix . 'ident_' . $identifier);
return ($tags === false ? [] : (array)$tags);
} | [
"protected",
"function",
"findTagsByIdentifier",
"(",
"string",
"$",
"identifier",
")",
":",
"array",
"{",
"$",
"tags",
"=",
"$",
"this",
"->",
"memcache",
"->",
"get",
"(",
"$",
"this",
"->",
"identifierPrefix",
".",
"'ident_'",
".",
"$",
"identifier",
")... | Finds all tags for the given identifier. This function uses reverse tag
index to search for tags.
@param string $identifier Identifier to find tags by
@return array Array with tags | [
"Finds",
"all",
"tags",
"for",
"the",
"given",
"identifier",
".",
"This",
"function",
"uses",
"reverse",
"tag",
"index",
"to",
"search",
"for",
"tags",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L324-L328 |
neos/flow-development-collection | Neos.Cache/Classes/Backend/MemcachedBackend.php | MemcachedBackend.addIdentifierToTags | protected function addIdentifierToTags(string $entryIdentifier, array $tags)
{
foreach ($tags as $tag) {
// Update tag-to-identifier index
$identifiers = $this->findIdentifiersByTag($tag);
if (array_search($entryIdentifier, $identifiers) === false) {
$iden... | php | protected function addIdentifierToTags(string $entryIdentifier, array $tags)
{
foreach ($tags as $tag) {
// Update tag-to-identifier index
$identifiers = $this->findIdentifiersByTag($tag);
if (array_search($entryIdentifier, $identifiers) === false) {
$iden... | [
"protected",
"function",
"addIdentifierToTags",
"(",
"string",
"$",
"entryIdentifier",
",",
"array",
"$",
"tags",
")",
"{",
"foreach",
"(",
"$",
"tags",
"as",
"$",
"tag",
")",
"{",
"// Update tag-to-identifier index",
"$",
"identifiers",
"=",
"$",
"this",
"->"... | Associates the identifier with the given tags
@param string $entryIdentifier
@param array $tags
@return void | [
"Associates",
"the",
"identifier",
"with",
"the",
"given",
"tags"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Backend/MemcachedBackend.php#L369-L385 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.