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.Flow/Classes/Command/TypeConverterCommandController.php | TypeConverterCommandController.listCommand | public function listCommand(string $source = null, string $target = null)
{
$this->outputLine();
if ($source !== null) {
$this->outputLine(sprintf('<info>!!</info> Filter by source : <comment>%s</comment>', $source));
}
if ($target !== null) {
$this->outp... | php | public function listCommand(string $source = null, string $target = null)
{
$this->outputLine();
if ($source !== null) {
$this->outputLine(sprintf('<info>!!</info> Filter by source : <comment>%s</comment>', $source));
}
if ($target !== null) {
$this->outp... | [
"public",
"function",
"listCommand",
"(",
"string",
"$",
"source",
"=",
"null",
",",
"string",
"$",
"target",
"=",
"null",
")",
"{",
"$",
"this",
"->",
"outputLine",
"(",
")",
";",
"if",
"(",
"$",
"source",
"!==",
"null",
")",
"{",
"$",
"this",
"->... | Lists all currently active and registered type converters
All active converters are listed with ordered by priority and grouped by
source type first and target type second.
@param string $source Filter by source
@param string $target Filter by target type
@return void | [
"Lists",
"all",
"currently",
"active",
"and",
"registered",
"type",
"converters"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/TypeConverterCommandController.php#L41-L85 |
neos/flow-development-collection | Neos.Flow/Classes/Security/Account.php | Account.initializeRoles | protected function initializeRoles()
{
if ($this->roles !== null) {
return;
}
$this->roles = [];
foreach ($this->roleIdentifiers as $key => $roleIdentifier) {
// check for and clean up roles no longer available
if ($this->policyService->hasRole($ro... | php | protected function initializeRoles()
{
if ($this->roles !== null) {
return;
}
$this->roles = [];
foreach ($this->roleIdentifiers as $key => $roleIdentifier) {
// check for and clean up roles no longer available
if ($this->policyService->hasRole($ro... | [
"protected",
"function",
"initializeRoles",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"roles",
"!==",
"null",
")",
"{",
"return",
";",
"}",
"$",
"this",
"->",
"roles",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"->",
"roleIdentifiers",
"as",... | Initializes the roles field by fetching the role objects referenced by the roleIdentifiers
@return void | [
"Initializes",
"the",
"roles",
"field",
"by",
"fetching",
"the",
"role",
"objects",
"referenced",
"by",
"the",
"roleIdentifiers"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Security/Account.php#L118-L132 |
neos/flow-development-collection | Neos.Flow/Classes/Security/Account.php | Account.setRoles | public function setRoles(array $roles)
{
$this->roleIdentifiers = [];
$this->roles = [];
foreach ($roles as $role) {
if (!$role instanceof Role) {
throw new \InvalidArgumentException(sprintf('setRoles() only accepts an array of %s instances, given: "%s"', Role::cl... | php | public function setRoles(array $roles)
{
$this->roleIdentifiers = [];
$this->roles = [];
foreach ($roles as $role) {
if (!$role instanceof Role) {
throw new \InvalidArgumentException(sprintf('setRoles() only accepts an array of %s instances, given: "%s"', Role::cl... | [
"public",
"function",
"setRoles",
"(",
"array",
"$",
"roles",
")",
"{",
"$",
"this",
"->",
"roleIdentifiers",
"=",
"[",
"]",
";",
"$",
"this",
"->",
"roles",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"roles",
"as",
"$",
"role",
")",
"{",
"if",
"("... | Sets the roles for this account
@param array<Role> $roles An array of Policy\Role objects
@return void
@throws \InvalidArgumentException
@api | [
"Sets",
"the",
"roles",
"for",
"this",
"account"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Security/Account.php#L223-L233 |
neos/flow-development-collection | Neos.Flow/Classes/Security/Account.php | Account.hasRole | public function hasRole(Role $role)
{
$this->initializeRoles();
return array_key_exists($role->getIdentifier(), $this->roles);
} | php | public function hasRole(Role $role)
{
$this->initializeRoles();
return array_key_exists($role->getIdentifier(), $this->roles);
} | [
"public",
"function",
"hasRole",
"(",
"Role",
"$",
"role",
")",
"{",
"$",
"this",
"->",
"initializeRoles",
"(",
")",
";",
"return",
"array_key_exists",
"(",
"$",
"role",
"->",
"getIdentifier",
"(",
")",
",",
"$",
"this",
"->",
"roles",
")",
";",
"}"
] | Return if the account has a certain role
@param Role $role
@return boolean
@api | [
"Return",
"if",
"the",
"account",
"has",
"a",
"certain",
"role"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Security/Account.php#L242-L246 |
neos/flow-development-collection | Neos.Flow/Classes/Security/Account.php | Account.addRole | public function addRole(Role $role)
{
if ($role->isAbstract()) {
throw new \InvalidArgumentException(sprintf('Abstract roles can\'t be assigned to accounts directly, but the role "%s" is marked abstract', $role->getIdentifier()), 1399900657);
}
$this->initializeRoles();
i... | php | public function addRole(Role $role)
{
if ($role->isAbstract()) {
throw new \InvalidArgumentException(sprintf('Abstract roles can\'t be assigned to accounts directly, but the role "%s" is marked abstract', $role->getIdentifier()), 1399900657);
}
$this->initializeRoles();
i... | [
"public",
"function",
"addRole",
"(",
"Role",
"$",
"role",
")",
"{",
"if",
"(",
"$",
"role",
"->",
"isAbstract",
"(",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"sprintf",
"(",
"'Abstract roles can\\'t be assigned to accounts directly, b... | Adds a role to this account
@param Role $role
@return void
@throws \InvalidArgumentException
@api | [
"Adds",
"a",
"role",
"to",
"this",
"account"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Security/Account.php#L256-L267 |
neos/flow-development-collection | Neos.Flow/Classes/Security/Account.php | Account.removeRole | public function removeRole(Role $role)
{
$this->initializeRoles();
if ($this->hasRole($role)) {
$roleIdentifier = $role->getIdentifier();
unset($this->roles[$roleIdentifier]);
$identifierIndex = array_search($roleIdentifier, $this->roleIdentifiers);
un... | php | public function removeRole(Role $role)
{
$this->initializeRoles();
if ($this->hasRole($role)) {
$roleIdentifier = $role->getIdentifier();
unset($this->roles[$roleIdentifier]);
$identifierIndex = array_search($roleIdentifier, $this->roleIdentifiers);
un... | [
"public",
"function",
"removeRole",
"(",
"Role",
"$",
"role",
")",
"{",
"$",
"this",
"->",
"initializeRoles",
"(",
")",
";",
"if",
"(",
"$",
"this",
"->",
"hasRole",
"(",
"$",
"role",
")",
")",
"{",
"$",
"roleIdentifier",
"=",
"$",
"role",
"->",
"g... | Removes a role from this account
@param Role $role
@return void
@api | [
"Removes",
"a",
"role",
"from",
"this",
"account"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Security/Account.php#L276-L285 |
neos/flow-development-collection | Neos.Flow/Classes/Security/Account.php | Account.authenticationAttempted | public function authenticationAttempted($authenticationStatus)
{
if ($authenticationStatus === TokenInterface::WRONG_CREDENTIALS) {
$this->failedAuthenticationCount++;
} elseif ($authenticationStatus === TokenInterface::AUTHENTICATION_SUCCESSFUL) {
$this->lastSuccessfulAuthen... | php | public function authenticationAttempted($authenticationStatus)
{
if ($authenticationStatus === TokenInterface::WRONG_CREDENTIALS) {
$this->failedAuthenticationCount++;
} elseif ($authenticationStatus === TokenInterface::AUTHENTICATION_SUCCESSFUL) {
$this->lastSuccessfulAuthen... | [
"public",
"function",
"authenticationAttempted",
"(",
"$",
"authenticationStatus",
")",
"{",
"if",
"(",
"$",
"authenticationStatus",
"===",
"TokenInterface",
"::",
"WRONG_CREDENTIALS",
")",
"{",
"$",
"this",
"->",
"failedAuthenticationCount",
"++",
";",
"}",
"elseif... | Sets the authentication status. Usually called by the responsible \Neos\Flow\Security\Authentication\AuthenticationManagerInterface
@param integer $authenticationStatus One of WRONG_CREDENTIALS, AUTHENTICATION_SUCCESSFUL
@return void
@throws InvalidAuthenticationStatusException | [
"Sets",
"the",
"authentication",
"status",
".",
"Usually",
"called",
"by",
"the",
"responsible",
"\\",
"Neos",
"\\",
"Flow",
"\\",
"Security",
"\\",
"Authentication",
"\\",
"AuthenticationManagerInterface"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Security/Account.php#L347-L357 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php | PackageStorage.getObjectsByPathPattern | public function getObjectsByPathPattern($pattern, callable $callback = null)
{
$directories = [];
if (strpos($pattern, '/') !== false) {
list($packageKeyPattern, $directoryPattern) = explode('/', $pattern, 2);
} else {
$packageKeyPattern = $pattern;
$dire... | php | public function getObjectsByPathPattern($pattern, callable $callback = null)
{
$directories = [];
if (strpos($pattern, '/') !== false) {
list($packageKeyPattern, $directoryPattern) = explode('/', $pattern, 2);
} else {
$packageKeyPattern = $pattern;
$dire... | [
"public",
"function",
"getObjectsByPathPattern",
"(",
"$",
"pattern",
",",
"callable",
"$",
"callback",
"=",
"null",
")",
"{",
"$",
"directories",
"=",
"[",
"]",
";",
"if",
"(",
"strpos",
"(",
"$",
"pattern",
",",
"'/'",
")",
"!==",
"false",
")",
"{",
... | Return all Objects stored in this storage filtered by the given directory / filename pattern
@param string $pattern A glob compatible directory / filename pattern
@param callable $callback Function called after each object
@return \Generator<StorageObject> | [
"Return",
"all",
"Objects",
"stored",
"in",
"this",
"storage",
"filtered",
"by",
"the",
"given",
"directory",
"/",
"filename",
"pattern"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php#L60-L93 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php | PackageStorage.createStorageObject | protected function createStorageObject($resourcePathAndFilename, FlowPackageInterface $resourcePackage)
{
$pathInfo = UnicodeFunctions::pathinfo($resourcePathAndFilename);
$object = new StorageObject();
$object->setFilename($pathInfo['basename']);
$object->setSha1(sha1_file($resourc... | php | protected function createStorageObject($resourcePathAndFilename, FlowPackageInterface $resourcePackage)
{
$pathInfo = UnicodeFunctions::pathinfo($resourcePathAndFilename);
$object = new StorageObject();
$object->setFilename($pathInfo['basename']);
$object->setSha1(sha1_file($resourc... | [
"protected",
"function",
"createStorageObject",
"(",
"$",
"resourcePathAndFilename",
",",
"FlowPackageInterface",
"$",
"resourcePackage",
")",
"{",
"$",
"pathInfo",
"=",
"UnicodeFunctions",
"::",
"pathinfo",
"(",
"$",
"resourcePathAndFilename",
")",
";",
"$",
"object"... | Create a storage object for the given static resource path.
@param string $resourcePathAndFilename
@param FlowPackageInterface $resourcePackage
@return StorageObject | [
"Create",
"a",
"storage",
"object",
"for",
"the",
"given",
"static",
"resource",
"path",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php#L102-L119 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php | PackageStorage.prepareRelativePublicationPath | protected function prepareRelativePublicationPath($objectPath, $packageKey, $packageResourcePath)
{
$relativePathParts = explode('/', str_replace($packageResourcePath, '', $objectPath), 2);
$relativePath = '';
if (isset($relativePathParts[1])) {
$relativePath = $relativePathParts... | php | protected function prepareRelativePublicationPath($objectPath, $packageKey, $packageResourcePath)
{
$relativePathParts = explode('/', str_replace($packageResourcePath, '', $objectPath), 2);
$relativePath = '';
if (isset($relativePathParts[1])) {
$relativePath = $relativePathParts... | [
"protected",
"function",
"prepareRelativePublicationPath",
"(",
"$",
"objectPath",
",",
"$",
"packageKey",
",",
"$",
"packageResourcePath",
")",
"{",
"$",
"relativePathParts",
"=",
"explode",
"(",
"'/'",
",",
"str_replace",
"(",
"$",
"packageResourcePath",
",",
"'... | Prepares a relative publication path for a package resource.
@param string $objectPath
@param string $packageKey
@param string $packageResourcePath
@return string | [
"Prepares",
"a",
"relative",
"publication",
"path",
"for",
"a",
"package",
"resource",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php#L129-L138 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php | PackageStorage.getPublicResourcePaths | public function getPublicResourcePaths()
{
$paths = [];
foreach ($this->packageManager->getFlowPackages() as $packageKey => $package) {
$publicResourcesPath = Files::concatenatePaths([$package->getResourcesPath(), 'Public']);
if (is_dir($publicResourcesPath)) {
... | php | public function getPublicResourcePaths()
{
$paths = [];
foreach ($this->packageManager->getFlowPackages() as $packageKey => $package) {
$publicResourcesPath = Files::concatenatePaths([$package->getResourcesPath(), 'Public']);
if (is_dir($publicResourcesPath)) {
... | [
"public",
"function",
"getPublicResourcePaths",
"(",
")",
"{",
"$",
"paths",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"->",
"packageManager",
"->",
"getFlowPackages",
"(",
")",
"as",
"$",
"packageKey",
"=>",
"$",
"package",
")",
"{",
"$",
"public... | Returns the absolute paths of public resources directories of all active packages.
This method is used directly by the FileSystemSymlinkTarget.
@return array<string> | [
"Returns",
"the",
"absolute",
"paths",
"of",
"public",
"resources",
"directories",
"of",
"all",
"active",
"packages",
".",
"This",
"method",
"is",
"used",
"directly",
"by",
"the",
"FileSystemSymlinkTarget",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/Storage/PackageStorage.php#L157-L167 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/ViewHelpers/Widget/LinkViewHelper.php | LinkViewHelper.render | public function render($action = null, $arguments = [], $section = '', $format = '', $ajax = false, $includeWidgetContext = false)
{
if ($ajax === true) {
$uri = $this->getAjaxUri();
} else {
if ($action === null) {
throw new ViewHelper\Exception('You have to ... | php | public function render($action = null, $arguments = [], $section = '', $format = '', $ajax = false, $includeWidgetContext = false)
{
if ($ajax === true) {
$uri = $this->getAjaxUri();
} else {
if ($action === null) {
throw new ViewHelper\Exception('You have to ... | [
"public",
"function",
"render",
"(",
"$",
"action",
"=",
"null",
",",
"$",
"arguments",
"=",
"[",
"]",
",",
"$",
"section",
"=",
"''",
",",
"$",
"format",
"=",
"''",
",",
"$",
"ajax",
"=",
"false",
",",
"$",
"includeWidgetContext",
"=",
"false",
")... | Render the link.
@param string $action Target action
@param array $arguments Arguments
@param string $section The anchor to be added to the URI
@param string $format The requested format, e.g. ".html"
@param boolean $ajax true if the URI should be to an AJAX widget, false otherwise.
@param boolean $includeWidgetContex... | [
"Render",
"the",
"link",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/ViewHelpers/Widget/LinkViewHelper.php#L78-L93 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/ViewHelpers/DebugViewHelper.php | DebugViewHelper.render | public function render()
{
$expressionToExamine = $this->renderChildren();
if ($this->arguments['typeOnly'] === true && $expressionToExamine !== null) {
$expressionToExamine = (is_object($expressionToExamine) ? get_class($expressionToExamine) : gettype($expressionToExamine));
}
... | php | public function render()
{
$expressionToExamine = $this->renderChildren();
if ($this->arguments['typeOnly'] === true && $expressionToExamine !== null) {
$expressionToExamine = (is_object($expressionToExamine) ? get_class($expressionToExamine) : gettype($expressionToExamine));
}
... | [
"public",
"function",
"render",
"(",
")",
"{",
"$",
"expressionToExamine",
"=",
"$",
"this",
"->",
"renderChildren",
"(",
")",
";",
"if",
"(",
"$",
"this",
"->",
"arguments",
"[",
"'typeOnly'",
"]",
"===",
"true",
"&&",
"$",
"expressionToExamine",
"!==",
... | Wrapper for \Neos\Flow\var_dump()
@return string debug string | [
"Wrapper",
"for",
"\\",
"Neos",
"\\",
"Flow",
"\\",
"var_dump",
"()"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/ViewHelpers/DebugViewHelper.php#L74-L86 |
neos/flow-development-collection | Neos.Flow/Classes/Http/Helper/ArgumentsHelper.php | ArgumentsHelper.buildUnifiedArguments | public static function buildUnifiedArguments(array $getArguments, array $postArguments, array $untangledFiles): array
{
$arguments = Arrays::arrayMergeRecursiveOverrule($getArguments, $postArguments);
$arguments = Arrays::arrayMergeRecursiveOverrule($arguments, $untangledFiles);
return $arg... | php | public static function buildUnifiedArguments(array $getArguments, array $postArguments, array $untangledFiles): array
{
$arguments = Arrays::arrayMergeRecursiveOverrule($getArguments, $postArguments);
$arguments = Arrays::arrayMergeRecursiveOverrule($arguments, $untangledFiles);
return $arg... | [
"public",
"static",
"function",
"buildUnifiedArguments",
"(",
"array",
"$",
"getArguments",
",",
"array",
"$",
"postArguments",
",",
"array",
"$",
"untangledFiles",
")",
":",
"array",
"{",
"$",
"arguments",
"=",
"Arrays",
"::",
"arrayMergeRecursiveOverrule",
"(",
... | Takes the raw GET & POST arguments and maps them into the request object.
Afterwards all mapped arguments can be retrieved by the getArgument(s) method, no matter if they
have been GET, POST or PUT arguments before.
The order of merging is GET, POST, FILES, with later items overriding earlier ones.
@param array $getA... | [
"Takes",
"the",
"raw",
"GET",
"&",
"POST",
"arguments",
"and",
"maps",
"them",
"into",
"the",
"request",
"object",
".",
"Afterwards",
"all",
"mapped",
"arguments",
"can",
"be",
"retrieved",
"by",
"the",
"getArgument",
"(",
"s",
")",
"method",
"no",
"matter... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Http/Helper/ArgumentsHelper.php#L35-L41 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.toArray | public function toArray(): array
{
$sortedArrayKeys = $this->getSortedKeys();
$sortedArray = [];
foreach ($sortedArrayKeys as $key) {
$sortedArray[$key] = $this->subject[$key];
}
return $sortedArray;
} | php | public function toArray(): array
{
$sortedArrayKeys = $this->getSortedKeys();
$sortedArray = [];
foreach ($sortedArrayKeys as $key) {
$sortedArray[$key] = $this->subject[$key];
}
return $sortedArray;
} | [
"public",
"function",
"toArray",
"(",
")",
":",
"array",
"{",
"$",
"sortedArrayKeys",
"=",
"$",
"this",
"->",
"getSortedKeys",
"(",
")",
";",
"$",
"sortedArray",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"sortedArrayKeys",
"as",
"$",
"key",
")",
"{",
... | Returns a sorted copy of the subject array
@return array | [
"Returns",
"a",
"sorted",
"copy",
"of",
"the",
"subject",
"array"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L94-L103 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.getSortedKeys | public function getSortedKeys(): array
{
$arrayKeysWithPosition = $this->collectArrayKeysAndPositions();
$this->extractMiddleKeys($arrayKeysWithPosition);
$this->extractStartKeys($arrayKeysWithPosition);
$this->extractEndKeys($arrayKeysWithPosition);
$this->extractBeforeKeys... | php | public function getSortedKeys(): array
{
$arrayKeysWithPosition = $this->collectArrayKeysAndPositions();
$this->extractMiddleKeys($arrayKeysWithPosition);
$this->extractStartKeys($arrayKeysWithPosition);
$this->extractEndKeys($arrayKeysWithPosition);
$this->extractBeforeKeys... | [
"public",
"function",
"getSortedKeys",
"(",
")",
":",
"array",
"{",
"$",
"arrayKeysWithPosition",
"=",
"$",
"this",
"->",
"collectArrayKeysAndPositions",
"(",
")",
";",
"$",
"this",
"->",
"extractMiddleKeys",
"(",
"$",
"arrayKeysWithPosition",
")",
";",
"$",
"... | Returns the keys of $this->subject sorted according to the position meta data
TODO Detect circles in after / before dependencies (#52185)
@return array an ordered list of keys
@throws Exception\InvalidPositionException if the positional string has an unsupported format | [
"Returns",
"the",
"keys",
"of",
"$this",
"-",
">",
"subject",
"sorted",
"according",
"to",
"the",
"position",
"meta",
"data"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L113-L135 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.extractMiddleKeys | protected function extractMiddleKeys(array &$arrayKeysWithPosition)
{
$this->middleKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (!is_numeric($position)) {
continue;
}
$this->middleKeys[intval($position)][] = $key;
... | php | protected function extractMiddleKeys(array &$arrayKeysWithPosition)
{
$this->middleKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (!is_numeric($position)) {
continue;
}
$this->middleKeys[intval($position)][] = $key;
... | [
"protected",
"function",
"extractMiddleKeys",
"(",
"array",
"&",
"$",
"arrayKeysWithPosition",
")",
"{",
"$",
"this",
"->",
"middleKeys",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"arrayKeysWithPosition",
"as",
"$",
"key",
"=>",
"$",
"position",
")",
"{",
"... | Extracts all "middle" keys from $arrayKeysWithPosition. Those are all keys with a numeric position.
The result is a multi-dimensional arrays where the KEY of each array is a PRIORITY and the VALUE is an array of matching KEYS
This also removes matching keys from the given $arrayKeysWithPosition
@param array $arrayKeys... | [
"Extracts",
"all",
"middle",
"keys",
"from",
"$arrayKeysWithPosition",
".",
"Those",
"are",
"all",
"keys",
"with",
"a",
"numeric",
"position",
".",
"The",
"result",
"is",
"a",
"multi",
"-",
"dimensional",
"arrays",
"where",
"the",
"KEY",
"of",
"each",
"array... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L145-L156 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.extractStartKeys | protected function extractStartKeys(array &$arrayKeysWithPosition)
{
$this->startKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^start(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset($matches... | php | protected function extractStartKeys(array &$arrayKeysWithPosition)
{
$this->startKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^start(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset($matches... | [
"protected",
"function",
"extractStartKeys",
"(",
"array",
"&",
"$",
"arrayKeysWithPosition",
")",
"{",
"$",
"this",
"->",
"startKeys",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"arrayKeysWithPosition",
"as",
"$",
"key",
"=>",
"$",
"position",
")",
"{",
"if... | Extracts all "start" keys from $arrayKeysWithPosition. Those are all keys with a position starting with "start"
The result is a multi-dimensional arrays where the KEY of each array is a PRIORITY and the VALUE is an array of matching KEYS
This also removes matching keys from the given $arrayKeysWithPosition
@param arra... | [
"Extracts",
"all",
"start",
"keys",
"from",
"$arrayKeysWithPosition",
".",
"Those",
"are",
"all",
"keys",
"with",
"a",
"position",
"starting",
"with",
"start",
"The",
"result",
"is",
"a",
"multi",
"-",
"dimensional",
"arrays",
"where",
"the",
"KEY",
"of",
"e... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L166-L181 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.extractEndKeys | protected function extractEndKeys(array &$arrayKeysWithPosition)
{
$this->endKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^end(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset($matches[1])) ... | php | protected function extractEndKeys(array &$arrayKeysWithPosition)
{
$this->endKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^end(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset($matches[1])) ... | [
"protected",
"function",
"extractEndKeys",
"(",
"array",
"&",
"$",
"arrayKeysWithPosition",
")",
"{",
"$",
"this",
"->",
"endKeys",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"arrayKeysWithPosition",
"as",
"$",
"key",
"=>",
"$",
"position",
")",
"{",
"if",
... | Extracts all "end" keys from $arrayKeysWithPosition. Those are all keys with a position starting with "end"
The result is a multi-dimensional arrays where the KEY of each array is a PRIORITY and the VALUE is an array of matching KEYS
This also removes matching keys from the given $arrayKeysWithPosition
@param array $a... | [
"Extracts",
"all",
"end",
"keys",
"from",
"$arrayKeysWithPosition",
".",
"Those",
"are",
"all",
"keys",
"with",
"a",
"position",
"starting",
"with",
"end",
"The",
"result",
"is",
"a",
"multi",
"-",
"dimensional",
"arrays",
"where",
"the",
"KEY",
"of",
"each"... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L191-L206 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.extractBeforeKeys | protected function extractBeforeKeys(array &$arrayKeysWithPosition)
{
$this->beforeKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^before (\S+)(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset... | php | protected function extractBeforeKeys(array &$arrayKeysWithPosition)
{
$this->beforeKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^before (\S+)(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset... | [
"protected",
"function",
"extractBeforeKeys",
"(",
"array",
"&",
"$",
"arrayKeysWithPosition",
")",
"{",
"$",
"this",
"->",
"beforeKeys",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"arrayKeysWithPosition",
"as",
"$",
"key",
"=>",
"$",
"position",
")",
"{",
"... | Extracts all "before" keys from $arrayKeysWithPosition. Those are all keys with a position starting with "before"
The result is a multi-dimensional arrays where the KEY of each array is a PRIORITY and the VALUE is an array of matching KEYS
This also removes matching keys from the given $arrayKeysWithPosition
@param ar... | [
"Extracts",
"all",
"before",
"keys",
"from",
"$arrayKeysWithPosition",
".",
"Those",
"are",
"all",
"keys",
"with",
"a",
"position",
"starting",
"with",
"before",
"The",
"result",
"is",
"a",
"multi",
"-",
"dimensional",
"arrays",
"where",
"the",
"KEY",
"of",
... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L216-L233 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.extractAfterKeys | protected function extractAfterKeys(array &$arrayKeysWithPosition)
{
$this->afterKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^after (\S+)(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset($m... | php | protected function extractAfterKeys(array &$arrayKeysWithPosition)
{
$this->afterKeys = [];
foreach ($arrayKeysWithPosition as $key => $position) {
if (preg_match('/^after (\S+)(?: ([0-9]+))?$/', $position, $matches) < 1) {
continue;
}
if (isset($m... | [
"protected",
"function",
"extractAfterKeys",
"(",
"array",
"&",
"$",
"arrayKeysWithPosition",
")",
"{",
"$",
"this",
"->",
"afterKeys",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"arrayKeysWithPosition",
"as",
"$",
"key",
"=>",
"$",
"position",
")",
"{",
"if... | Extracts all "after" keys from $arrayKeysWithPosition. Those are all keys with a position starting with "after"
The result is a multi-dimensional arrays where the KEY of each array is a PRIORITY and the VALUE is an array of matching KEYS
This also removes matching keys from the given $arrayKeysWithPosition
@param arra... | [
"Extracts",
"all",
"after",
"keys",
"from",
"$arrayKeysWithPosition",
".",
"Those",
"are",
"all",
"keys",
"with",
"a",
"position",
"starting",
"with",
"after",
"The",
"result",
"is",
"a",
"multi",
"-",
"dimensional",
"arrays",
"where",
"the",
"KEY",
"of",
"e... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L243-L260 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.collectArrayKeysAndPositions | protected function collectArrayKeysAndPositions(): array
{
$arrayKeysWithPosition = [];
foreach ($this->subject as $key => $value) {
// if the value was set to NULL it was unset and should not be used
if ($value === null) {
continue;
}
... | php | protected function collectArrayKeysAndPositions(): array
{
$arrayKeysWithPosition = [];
foreach ($this->subject as $key => $value) {
// if the value was set to NULL it was unset and should not be used
if ($value === null) {
continue;
}
... | [
"protected",
"function",
"collectArrayKeysAndPositions",
"(",
")",
":",
"array",
"{",
"$",
"arrayKeysWithPosition",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"this",
"->",
"subject",
"as",
"$",
"key",
"=>",
"$",
"value",
")",
"{",
"// if the value was set to NU... | Collect the array keys inside $this->subject with each position meta-argument.
If there is no position but the array is numerically ordered, we use the array index as position.
@return array an associative array where each key of $subject has a position string assigned | [
"Collect",
"the",
"array",
"keys",
"inside",
"$this",
"-",
">",
"subject",
"with",
"each",
"position",
"meta",
"-",
"argument",
".",
"If",
"there",
"is",
"no",
"position",
"but",
"the",
"array",
"is",
"numerically",
"ordered",
"we",
"use",
"the",
"array",
... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L268-L288 |
neos/flow-development-collection | Neos.Utility.Arrays/Classes/PositionalArraySorter.php | PositionalArraySorter.generateSortedKeysMap | protected function generateSortedKeysMap(): array
{
$sortedKeysMap = [];
$startKeys = $this->startKeys;
$middleKeys = $this->middleKeys;
$endKeys = $this->endKeys;
$beforeKeys = $this->beforeKeys;
$afterKeys = $this->afterKeys;
$flattenFunction = function ($v... | php | protected function generateSortedKeysMap(): array
{
$sortedKeysMap = [];
$startKeys = $this->startKeys;
$middleKeys = $this->middleKeys;
$endKeys = $this->endKeys;
$beforeKeys = $this->beforeKeys;
$afterKeys = $this->afterKeys;
$flattenFunction = function ($v... | [
"protected",
"function",
"generateSortedKeysMap",
"(",
")",
":",
"array",
"{",
"$",
"sortedKeysMap",
"=",
"[",
"]",
";",
"$",
"startKeys",
"=",
"$",
"this",
"->",
"startKeys",
";",
"$",
"middleKeys",
"=",
"$",
"this",
"->",
"middleKeys",
";",
"$",
"endKe... | Flattens start-, middle-, end-, before- and afterKeys to a single dimension and merges them together to a single array
@return array | [
"Flattens",
"start",
"-",
"middle",
"-",
"end",
"-",
"before",
"-",
"and",
"afterKeys",
"to",
"a",
"single",
"dimension",
"and",
"merges",
"them",
"together",
"to",
"a",
"single",
"array"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Utility.Arrays/Classes/PositionalArraySorter.php#L295-L327 |
neos/flow-development-collection | Neos.Cache/Classes/Frontend/AbstractFrontend.php | AbstractFrontend.has | public function has(string $entryIdentifier): bool
{
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233058486);
}
return $this->backend->has($entryIdentifier);
... | php | public function has(string $entryIdentifier): bool
{
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233058486);
}
return $this->backend->has($entryIdentifier);
... | [
"public",
"function",
"has",
"(",
"string",
"$",
"entryIdentifier",
")",
":",
"bool",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"isValidEntryIdentifier",
"(",
"$",
"entryIdentifier",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'\"'",... | 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
@throws \InvalidArgumentException
@api | [
"Checks",
"if",
"a",
"cache",
"entry",
"with",
"the",
"specified",
"identifier",
"exists",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Frontend/AbstractFrontend.php#L97-L104 |
neos/flow-development-collection | Neos.Cache/Classes/Frontend/AbstractFrontend.php | AbstractFrontend.remove | public function remove(string $entryIdentifier): bool
{
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233058495);
}
return $this->backend->remove($entryIdentifier)... | php | public function remove(string $entryIdentifier): bool
{
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new \InvalidArgumentException('"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233058495);
}
return $this->backend->remove($entryIdentifier)... | [
"public",
"function",
"remove",
"(",
"string",
"$",
"entryIdentifier",
")",
":",
"bool",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"isValidEntryIdentifier",
"(",
"$",
"entryIdentifier",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'\"... | Removes the given cache entry from the cache.
@param string $entryIdentifier An identifier specifying the cache entry
@return boolean true if such an entry exists, false if not
@throws \InvalidArgumentException
@api | [
"Removes",
"the",
"given",
"cache",
"entry",
"from",
"the",
"cache",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Frontend/AbstractFrontend.php#L114-L121 |
neos/flow-development-collection | Neos.Cache/Classes/Frontend/AbstractFrontend.php | AbstractFrontend.flushByTag | public function flushByTag(string $tag): int
{
if (!$this->isValidTag($tag)) {
throw new \InvalidArgumentException('"' . $tag . '" is not a valid tag for a cache entry.', 1233057359);
}
if ($this->backend instanceof TaggableBackendInterface) {
return $this->backend->f... | php | public function flushByTag(string $tag): int
{
if (!$this->isValidTag($tag)) {
throw new \InvalidArgumentException('"' . $tag . '" is not a valid tag for a cache entry.', 1233057359);
}
if ($this->backend instanceof TaggableBackendInterface) {
return $this->backend->f... | [
"public",
"function",
"flushByTag",
"(",
"string",
"$",
"tag",
")",
":",
"int",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"isValidTag",
"(",
"$",
"tag",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'\"'",
".",
"$",
"tag",
".",... | Removes all cache entries of this cache which are tagged by the specified tag.
@param string $tag The tag the entries must have
@return integer The number of entries which have been affected by this flush
@throws \InvalidArgumentException
@api | [
"Removes",
"all",
"cache",
"entries",
"of",
"this",
"cache",
"which",
"are",
"tagged",
"by",
"the",
"specified",
"tag",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Cache/Classes/Frontend/AbstractFrontend.php#L142-L151 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/ViewHelpers/Format/JsonViewHelper.php | JsonViewHelper.render | public function render()
{
$value = $this->arguments['value'];
if ($value === null) {
$value = $this->renderChildren();
}
$options = JSON_HEX_TAG;
if ($this->arguments['forceObject'] !== false) {
$options = $options | JSON_FORCE_OBJECT;
}
... | php | public function render()
{
$value = $this->arguments['value'];
if ($value === null) {
$value = $this->renderChildren();
}
$options = JSON_HEX_TAG;
if ($this->arguments['forceObject'] !== false) {
$options = $options | JSON_FORCE_OBJECT;
}
... | [
"public",
"function",
"render",
"(",
")",
"{",
"$",
"value",
"=",
"$",
"this",
"->",
"arguments",
"[",
"'value'",
"]",
";",
"if",
"(",
"$",
"value",
"===",
"null",
")",
"{",
"$",
"value",
"=",
"$",
"this",
"->",
"renderChildren",
"(",
")",
";",
"... | Outputs content with its JSON representation. To prevent issues in HTML context, occurrences
of greater-than or less-than characters are converted to their hexadecimal representations.
If $forceObject is true a JSON object is outputted even if the value is a non-associative array
Example: array('foo', 'bar') as input ... | [
"Outputs",
"content",
"with",
"its",
"JSON",
"representation",
".",
"To",
"prevent",
"issues",
"in",
"HTML",
"context",
"occurrences",
"of",
"greater",
"-",
"than",
"or",
"less",
"-",
"than",
"characters",
"are",
"converted",
"to",
"their",
"hexadecimal",
"rep... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/ViewHelpers/Format/JsonViewHelper.php#L77-L90 |
neos/flow-development-collection | Neos.Flow.Log/Classes/Backend/NullBackend.php | NullBackend.append | public function append($message, $severity = 1, $additionalData = null, $packageKey = null, $className = null, $methodName = null)
{
} | php | public function append($message, $severity = 1, $additionalData = null, $packageKey = null, $className = null, $methodName = null)
{
} | [
"public",
"function",
"append",
"(",
"$",
"message",
",",
"$",
"severity",
"=",
"1",
",",
"$",
"additionalData",
"=",
"null",
",",
"$",
"packageKey",
"=",
"null",
",",
"$",
"className",
"=",
"null",
",",
"$",
"methodName",
"=",
"null",
")",
"{",
"}"
... | Ignores the call
@param string $message The message to log
@param integer $severity One of the LOG_* constants
@param mixed $additionalData A variable containing more information about the event to be logged
@param string $packageKey Key of the package triggering the log (determined automatically if not specified)
@pa... | [
"Ignores",
"the",
"call"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow.Log/Classes/Backend/NullBackend.php#L44-L46 |
neos/flow-development-collection | Neos.Flow/Classes/Log/ThrowableStorage/FileStorage.php | FileStorage.renderErrorInfo | protected function renderErrorInfo(\Throwable $error, array $additionalData = [])
{
$maximumDepth = 100;
$backTrace = $error->getTrace();
$message = $this->getErrorLogMessage($error);
$postMortemInfo = $message . PHP_EOL . PHP_EOL . $this->renderBacktrace($backTrace);
$depth ... | php | protected function renderErrorInfo(\Throwable $error, array $additionalData = [])
{
$maximumDepth = 100;
$backTrace = $error->getTrace();
$message = $this->getErrorLogMessage($error);
$postMortemInfo = $message . PHP_EOL . PHP_EOL . $this->renderBacktrace($backTrace);
$depth ... | [
"protected",
"function",
"renderErrorInfo",
"(",
"\\",
"Throwable",
"$",
"error",
",",
"array",
"$",
"additionalData",
"=",
"[",
"]",
")",
"{",
"$",
"maximumDepth",
"=",
"100",
";",
"$",
"backTrace",
"=",
"$",
"error",
"->",
"getTrace",
"(",
")",
";",
... | Get current error post mortem informations with support for error chaining
@param \Throwable $error
@param array $additionalData
@return string | [
"Get",
"current",
"error",
"post",
"mortem",
"informations",
"with",
"support",
"for",
"error",
"chaining"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Log/ThrowableStorage/FileStorage.php#L159-L183 |
neos/flow-development-collection | Neos.Flow/Classes/Log/ThrowableStorage/FileStorage.php | FileStorage.renderBacktrace | protected function renderBacktrace($backtrace)
{
$output = '';
if ($this->backtraceRenderer !== null) {
$output = $this->backtraceRenderer->__invoke($backtrace);
}
return $output;
} | php | protected function renderBacktrace($backtrace)
{
$output = '';
if ($this->backtraceRenderer !== null) {
$output = $this->backtraceRenderer->__invoke($backtrace);
}
return $output;
} | [
"protected",
"function",
"renderBacktrace",
"(",
"$",
"backtrace",
")",
"{",
"$",
"output",
"=",
"''",
";",
"if",
"(",
"$",
"this",
"->",
"backtraceRenderer",
"!==",
"null",
")",
"{",
"$",
"output",
"=",
"$",
"this",
"->",
"backtraceRenderer",
"->",
"__i... | Renders background information about the circumstances of the exception.
@param array $backtrace
@return string | [
"Renders",
"background",
"information",
"about",
"the",
"circumstances",
"of",
"the",
"exception",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Log/ThrowableStorage/FileStorage.php#L204-L212 |
neos/flow-development-collection | Neos.Flow/Classes/Log/ThrowableStorage/FileStorage.php | FileStorage.renderRequestInfo | protected function renderRequestInfo()
{
$output = '';
if ($this->requestInformationRenderer !== null) {
$output = $this->requestInformationRenderer->__invoke();
}
return $output;
} | php | protected function renderRequestInfo()
{
$output = '';
if ($this->requestInformationRenderer !== null) {
$output = $this->requestInformationRenderer->__invoke();
}
return $output;
} | [
"protected",
"function",
"renderRequestInfo",
"(",
")",
"{",
"$",
"output",
"=",
"''",
";",
"if",
"(",
"$",
"this",
"->",
"requestInformationRenderer",
"!==",
"null",
")",
"{",
"$",
"output",
"=",
"$",
"this",
"->",
"requestInformationRenderer",
"->",
"__inv... | Render information about the current request, if possible
@return string | [
"Render",
"information",
"about",
"the",
"current",
"request",
"if",
"possible"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Log/ThrowableStorage/FileStorage.php#L219-L227 |
neos/flow-development-collection | Neos.Flow/Classes/Session/Aspect/SessionObjectMethodsPointcutFilter.php | SessionObjectMethodsPointcutFilter.matches | public function matches($className, $methodName, $methodDeclaringClassName, $pointcutQueryIdentifier)
{
if ($methodName === null) {
return false;
}
$objectName = $this->objectManager->getObjectNameByClassName($className);
if (empty($objectName)) {
return fals... | php | public function matches($className, $methodName, $methodDeclaringClassName, $pointcutQueryIdentifier)
{
if ($methodName === null) {
return false;
}
$objectName = $this->objectManager->getObjectNameByClassName($className);
if (empty($objectName)) {
return fals... | [
"public",
"function",
"matches",
"(",
"$",
"className",
",",
"$",
"methodName",
",",
"$",
"methodDeclaringClassName",
",",
"$",
"pointcutQueryIdentifier",
")",
"{",
"if",
"(",
"$",
"methodName",
"===",
"null",
")",
"{",
"return",
"false",
";",
"}",
"$",
"o... | Checks if the specified class and method matches against the filter
@param string $className Name of the class to check against
@param string $methodName Name of the method to check against
@param string $methodDeclaringClassName Name of the class the method was originally declared in
@param mixed $pointcutQueryIdenti... | [
"Checks",
"if",
"the",
"specified",
"class",
"and",
"method",
"matches",
"against",
"the",
"filter"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Session/Aspect/SessionObjectMethodsPointcutFilter.php#L50-L70 |
neos/flow-development-collection | Neos.Flow/Classes/Session/Aspect/SessionObjectMethodsPointcutFilter.php | SessionObjectMethodsPointcutFilter.reduceTargetClassNames | public function reduceTargetClassNames(ClassNameIndex $classNameIndex)
{
$sessionClasses = new ClassNameIndex();
$sessionClasses->setClassNames($this->objectManager->getClassNamesByScope(ObjectConfiguration::SCOPE_SESSION));
return $classNameIndex->intersect($sessionClasses);
} | php | public function reduceTargetClassNames(ClassNameIndex $classNameIndex)
{
$sessionClasses = new ClassNameIndex();
$sessionClasses->setClassNames($this->objectManager->getClassNamesByScope(ObjectConfiguration::SCOPE_SESSION));
return $classNameIndex->intersect($sessionClasses);
} | [
"public",
"function",
"reduceTargetClassNames",
"(",
"ClassNameIndex",
"$",
"classNameIndex",
")",
"{",
"$",
"sessionClasses",
"=",
"new",
"ClassNameIndex",
"(",
")",
";",
"$",
"sessionClasses",
"->",
"setClassNames",
"(",
"$",
"this",
"->",
"objectManager",
"->",... | This method is used to optimize the matching process.
@param ClassNameIndex $classNameIndex
@return ClassNameIndex | [
"This",
"method",
"is",
"used",
"to",
"optimize",
"the",
"matching",
"process",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Session/Aspect/SessionObjectMethodsPointcutFilter.php#L98-L103 |
neos/flow-development-collection | Neos.Flow/Classes/Command/PackageCommandController.php | PackageCommandController.createCommand | public function createCommand(string $packageKey, string $packageType = PackageInterface::DEFAULT_COMPOSER_TYPE)
{
if (!$this->packageManager->isPackageKeyValid($packageKey)) {
$this->outputLine('The package key "%s" is not valid.', [$packageKey]);
$this->quit(1);
}
i... | php | public function createCommand(string $packageKey, string $packageType = PackageInterface::DEFAULT_COMPOSER_TYPE)
{
if (!$this->packageManager->isPackageKeyValid($packageKey)) {
$this->outputLine('The package key "%s" is not valid.', [$packageKey]);
$this->quit(1);
}
i... | [
"public",
"function",
"createCommand",
"(",
"string",
"$",
"packageKey",
",",
"string",
"$",
"packageType",
"=",
"PackageInterface",
"::",
"DEFAULT_COMPOSER_TYPE",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"packageManager",
"->",
"isPackageKeyValid",
"(",
"$"... | Create a new package
This command creates a new package which contains only the mandatory
directories and files.
@Flow\FlushesCaches
@param string $packageKey The package key of the package to create
@param string $packageType The package type of the package to create
@return void
@see neos.kickstarter:kickstart:pack... | [
"Create",
"a",
"new",
"package"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/PackageCommandController.php#L84-L101 |
neos/flow-development-collection | Neos.Flow/Classes/Command/PackageCommandController.php | PackageCommandController.listCommand | public function listCommand(bool $loadingOrder = false)
{
$availablePackages = [];
$frozenPackages = [];
$longestPackageKey = 0;
$freezeSupported = $this->bootstrap->getContext()->isDevelopment();
foreach ($this->packageManager->getAvailablePackages() as $packageKey => $pack... | php | public function listCommand(bool $loadingOrder = false)
{
$availablePackages = [];
$frozenPackages = [];
$longestPackageKey = 0;
$freezeSupported = $this->bootstrap->getContext()->isDevelopment();
foreach ($this->packageManager->getAvailablePackages() as $packageKey => $pack... | [
"public",
"function",
"listCommand",
"(",
"bool",
"$",
"loadingOrder",
"=",
"false",
")",
"{",
"$",
"availablePackages",
"=",
"[",
"]",
";",
"$",
"frozenPackages",
"=",
"[",
"]",
";",
"$",
"longestPackageKey",
"=",
"0",
";",
"$",
"freezeSupported",
"=",
... | List available packages
Lists all locally available packages. Displays the package key, version and
package title.
@param boolean $loadingOrder The returned packages are ordered by their loading order.
@return void The list of packages
@see neos.flow:package:activate
@see neos.flow:package:deactivate | [
"List",
"available",
"packages"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/PackageCommandController.php#L114-L148 |
neos/flow-development-collection | Neos.Flow/Classes/Command/PackageCommandController.php | PackageCommandController.freezeCommand | public function freezeCommand(string $packageKey = 'all')
{
if (!$this->bootstrap->getContext()->isDevelopment()) {
$this->outputLine('Package freezing is only supported in Development context.');
$this->quit(3);
}
$packagesToFreeze = [];
if ($packageKey ===... | php | public function freezeCommand(string $packageKey = 'all')
{
if (!$this->bootstrap->getContext()->isDevelopment()) {
$this->outputLine('Package freezing is only supported in Development context.');
$this->quit(3);
}
$packagesToFreeze = [];
if ($packageKey ===... | [
"public",
"function",
"freezeCommand",
"(",
"string",
"$",
"packageKey",
"=",
"'all'",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"bootstrap",
"->",
"getContext",
"(",
")",
"->",
"isDevelopment",
"(",
")",
")",
"{",
"$",
"this",
"->",
"outputLine",
"... | Freeze a package
This function marks a package as <b>frozen</b> in order to improve performance
in a development context. While a package is frozen, any modification of files
within that package won't be tracked and can lead to unexpected behavior.
File monitoring won't consider the given package. Further more, refle... | [
"Freeze",
"a",
"package"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/PackageCommandController.php#L171-L211 |
neos/flow-development-collection | Neos.Flow/Classes/Command/PackageCommandController.php | PackageCommandController.unfreezeCommand | public function unfreezeCommand(string $packageKey = 'all')
{
if (!$this->bootstrap->getContext()->isDevelopment()) {
$this->outputLine('Package freezing is only supported in Development context.');
$this->quit(3);
}
$packagesToUnfreeze = [];
if ($packageKey... | php | public function unfreezeCommand(string $packageKey = 'all')
{
if (!$this->bootstrap->getContext()->isDevelopment()) {
$this->outputLine('Package freezing is only supported in Development context.');
$this->quit(3);
}
$packagesToUnfreeze = [];
if ($packageKey... | [
"public",
"function",
"unfreezeCommand",
"(",
"string",
"$",
"packageKey",
"=",
"'all'",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"bootstrap",
"->",
"getContext",
"(",
")",
"->",
"isDevelopment",
"(",
")",
")",
"{",
"$",
"this",
"->",
"outputLine",
... | Unfreeze a package
Unfreezes a previously frozen package. On the next request, this package will
be considered again by the file monitoring and related services – if they are
enabled in the current context.
By specifying <b>all</b> as a package key, all currently frozen packages are
unfrozen (the default).
@param st... | [
"Unfreeze",
"a",
"package"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/PackageCommandController.php#L228-L268 |
neos/flow-development-collection | Neos.Flow/Classes/Command/PackageCommandController.php | PackageCommandController.refreezeCommand | public function refreezeCommand(string $packageKey = 'all')
{
if (!$this->bootstrap->getContext()->isDevelopment()) {
$this->outputLine('Package freezing is only supported in Development context.');
$this->quit(3);
}
$packagesToRefreeze = [];
if ($packageKey... | php | public function refreezeCommand(string $packageKey = 'all')
{
if (!$this->bootstrap->getContext()->isDevelopment()) {
$this->outputLine('Package freezing is only supported in Development context.');
$this->quit(3);
}
$packagesToRefreeze = [];
if ($packageKey... | [
"public",
"function",
"refreezeCommand",
"(",
"string",
"$",
"packageKey",
"=",
"'all'",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"bootstrap",
"->",
"getContext",
"(",
")",
"->",
"isDevelopment",
"(",
")",
")",
"{",
"$",
"this",
"->",
"outputLine",
... | Refreeze a package
Refreezes a currently frozen package: all precompiled information is removed
and file monitoring will consider the package exactly once, on the next
request. After that request, the package remains frozen again, just with the
updated data.
By specifying <b>all</b> as a package key, all currently fr... | [
"Refreeze",
"a",
"package"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/PackageCommandController.php#L286-L329 |
neos/flow-development-collection | Neos.Flow/Classes/Command/PackageCommandController.php | PackageCommandController.rescanCommand | public function rescanCommand()
{
$packageStates = $this->packageManager->rescanPackages();
$this->outputLine('The following packages are registered and will be loaded in this order:');
$this->outputLine('');
foreach ($packageStates['packages'] as $composerName => $packageState) {
... | php | public function rescanCommand()
{
$packageStates = $this->packageManager->rescanPackages();
$this->outputLine('The following packages are registered and will be loaded in this order:');
$this->outputLine('');
foreach ($packageStates['packages'] as $composerName => $packageState) {
... | [
"public",
"function",
"rescanCommand",
"(",
")",
"{",
"$",
"packageStates",
"=",
"$",
"this",
"->",
"packageManager",
"->",
"rescanPackages",
"(",
")",
";",
"$",
"this",
"->",
"outputLine",
"(",
"'The following packages are registered and will be loaded in this order:'"... | Rescan package availability and recreates the PackageStates configuration. | [
"Rescan",
"package",
"availability",
"and",
"recreates",
"the",
"PackageStates",
"configuration",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Command/PackageCommandController.php#L334-L345 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.getResult | public function getResult()
{
try {
$query = $this->queryBuilder->getQuery();
if ($this->cacheResult === true || $this->settings['cacheAllQueryResults']) {
$query->useResultCache(true);
}
return $query->getResult();
} catch (\Doctrine\O... | php | public function getResult()
{
try {
$query = $this->queryBuilder->getQuery();
if ($this->cacheResult === true || $this->settings['cacheAllQueryResults']) {
$query->useResultCache(true);
}
return $query->getResult();
} catch (\Doctrine\O... | [
"public",
"function",
"getResult",
"(",
")",
"{",
"try",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"queryBuilder",
"->",
"getQuery",
"(",
")",
";",
"if",
"(",
"$",
"this",
"->",
"cacheResult",
"===",
"true",
"||",
"$",
"this",
"->",
"settings",
"[",... | Gets the results of this query as array.
Really executes the query on the database.
This should only ever be executed from the QueryResult class.
@return array result set
@throws Exception\DatabaseException
@throws Exception\DatabaseConnectionException
@throws Exception\DatabaseStructureException | [
"Gets",
"the",
"results",
"of",
"this",
"query",
"as",
"array",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L186-L233 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.count | public function count()
{
try {
$originalQuery = $this->queryBuilder->getQuery();
$dqlQuery = clone $originalQuery;
$dqlQuery->setParameters($originalQuery->getParameters());
$dqlQuery->setHint(\Doctrine\ORM\Query::HINT_CUSTOM_TREE_WALKERS, [CountWalker::class... | php | public function count()
{
try {
$originalQuery = $this->queryBuilder->getQuery();
$dqlQuery = clone $originalQuery;
$dqlQuery->setParameters($originalQuery->getParameters());
$dqlQuery->setHint(\Doctrine\ORM\Query::HINT_CUSTOM_TREE_WALKERS, [CountWalker::class... | [
"public",
"function",
"count",
"(",
")",
"{",
"try",
"{",
"$",
"originalQuery",
"=",
"$",
"this",
"->",
"queryBuilder",
"->",
"getQuery",
"(",
")",
";",
"$",
"dqlQuery",
"=",
"clone",
"$",
"originalQuery",
";",
"$",
"dqlQuery",
"->",
"setParameters",
"("... | Returns the query result count
@return integer The query result count
@throws Exception\DatabaseConnectionException
@api | [
"Returns",
"the",
"query",
"result",
"count"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L242-L269 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.setOrderings | public function setOrderings(array $orderings)
{
$this->orderings = $orderings;
$this->queryBuilder->resetDQLPart('orderBy');
foreach ($this->orderings as $propertyName => $order) {
$this->queryBuilder->addOrderBy($this->getPropertyNameWithAlias($propertyName), $order);
}... | php | public function setOrderings(array $orderings)
{
$this->orderings = $orderings;
$this->queryBuilder->resetDQLPart('orderBy');
foreach ($this->orderings as $propertyName => $order) {
$this->queryBuilder->addOrderBy($this->getPropertyNameWithAlias($propertyName), $order);
}... | [
"public",
"function",
"setOrderings",
"(",
"array",
"$",
"orderings",
")",
"{",
"$",
"this",
"->",
"orderings",
"=",
"$",
"orderings",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"resetDQLPart",
"(",
"'orderBy'",
")",
";",
"foreach",
"(",
"$",
"this",
... | Sets the property names to order the result by. Expected like this:
array(
'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING,
'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING
)
@param array $orderings The property names to order by
@return QueryInterface
@api | [
"Sets",
"the",
"property",
"names",
"to",
"order",
"the",
"result",
"by",
".",
"Expected",
"like",
"this",
":",
"array",
"(",
"foo",
"=",
">",
"\\",
"Neos",
"\\",
"Flow",
"\\",
"Persistence",
"\\",
"QueryInterface",
"::",
"ORDER_ASCENDING",
"bar",
"=",
"... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L282-L290 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.setLimit | public function setLimit($limit)
{
$this->limit = $limit;
$this->queryBuilder->setMaxResults($limit);
return $this;
} | php | public function setLimit($limit)
{
$this->limit = $limit;
$this->queryBuilder->setMaxResults($limit);
return $this;
} | [
"public",
"function",
"setLimit",
"(",
"$",
"limit",
")",
"{",
"$",
"this",
"->",
"limit",
"=",
"$",
"limit",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"setMaxResults",
"(",
"$",
"limit",
")",
";",
"return",
"$",
"this",
";",
"}"
] | Sets the maximum size of the result set to limit. Returns $this to allow
for chaining (fluid interface)
@param integer $limit
@return QueryInterface
@api | [
"Sets",
"the",
"maximum",
"size",
"of",
"the",
"result",
"set",
"to",
"limit",
".",
"Returns",
"$this",
"to",
"allow",
"for",
"chaining",
"(",
"fluid",
"interface",
")"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L315-L320 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.setDistinct | public function setDistinct($distinct = true)
{
$this->distinct = $distinct;
$this->queryBuilder->distinct($distinct);
return $this;
} | php | public function setDistinct($distinct = true)
{
$this->distinct = $distinct;
$this->queryBuilder->distinct($distinct);
return $this;
} | [
"public",
"function",
"setDistinct",
"(",
"$",
"distinct",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"distinct",
"=",
"$",
"distinct",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"distinct",
"(",
"$",
"distinct",
")",
";",
"return",
"$",
"this",
";",... | Sets the DISTINCT flag for this query.
@param boolean $distinct
@return QueryInterface
@api | [
"Sets",
"the",
"DISTINCT",
"flag",
"for",
"this",
"query",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L340-L345 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.setOffset | public function setOffset($offset)
{
$this->offset = $offset;
$this->queryBuilder->setFirstResult($offset);
return $this;
} | php | public function setOffset($offset)
{
$this->offset = $offset;
$this->queryBuilder->setFirstResult($offset);
return $this;
} | [
"public",
"function",
"setOffset",
"(",
"$",
"offset",
")",
"{",
"$",
"this",
"->",
"offset",
"=",
"$",
"offset",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"setFirstResult",
"(",
"$",
"offset",
")",
";",
"return",
"$",
"this",
";",
"}"
] | Sets the start offset of the result set to offset. Returns $this to
allow for chaining (fluid interface)
@param integer $offset
@return QueryInterface
@api | [
"Sets",
"the",
"start",
"offset",
"of",
"the",
"result",
"set",
"to",
"offset",
".",
"Returns",
"$this",
"to",
"allow",
"for",
"chaining",
"(",
"fluid",
"interface",
")"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L366-L371 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.matching | public function matching($constraint)
{
$this->constraint = $constraint;
$this->queryBuilder->where($constraint);
return $this;
} | php | public function matching($constraint)
{
$this->constraint = $constraint;
$this->queryBuilder->where($constraint);
return $this;
} | [
"public",
"function",
"matching",
"(",
"$",
"constraint",
")",
"{",
"$",
"this",
"->",
"constraint",
"=",
"$",
"constraint",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"where",
"(",
"$",
"constraint",
")",
";",
"return",
"$",
"this",
";",
"}"
] | The constraint used to limit the result set. Returns $this to allow
for chaining (fluid interface)
@param object $constraint Some constraint, depending on the backend
@return QueryInterface
@api | [
"The",
"constraint",
"used",
"to",
"limit",
"the",
"result",
"set",
".",
"Returns",
"$this",
"to",
"allow",
"for",
"chaining",
"(",
"fluid",
"interface",
")"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L392-L397 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.logicalOr | public function logicalOr($constraint1)
{
if (is_array($constraint1)) {
$constraints = $constraint1;
} else {
$constraints = func_get_args();
}
return call_user_func_array([$this->queryBuilder->expr(), 'orX'], $constraints);
} | php | public function logicalOr($constraint1)
{
if (is_array($constraint1)) {
$constraints = $constraint1;
} else {
$constraints = func_get_args();
}
return call_user_func_array([$this->queryBuilder->expr(), 'orX'], $constraints);
} | [
"public",
"function",
"logicalOr",
"(",
"$",
"constraint1",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"constraint1",
")",
")",
"{",
"$",
"constraints",
"=",
"$",
"constraint1",
";",
"}",
"else",
"{",
"$",
"constraints",
"=",
"func_get_args",
"(",
")",
... | Performs a logical disjunction of the two given constraints. The method
takes one or more constraints and concatenates them with a boolean OR.
It also accepts a single array of constraints to be concatenated.
@param mixed $constraint1 The first of multiple constraints or an array of constraints.
@return object
@api | [
"Performs",
"a",
"logical",
"disjunction",
"of",
"the",
"two",
"given",
"constraints",
".",
"The",
"method",
"takes",
"one",
"or",
"more",
"constraints",
"and",
"concatenates",
"them",
"with",
"a",
"boolean",
"OR",
".",
"It",
"also",
"accepts",
"a",
"single"... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L438-L446 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.equals | public function equals($propertyName, $operand, $caseSensitive = true)
{
$aliasedPropertyName = $this->getPropertyNameWithAlias($propertyName);
if ($operand === null) {
return $this->queryBuilder->expr()->isNull($aliasedPropertyName);
}
if ($caseSensitive === true) {
... | php | public function equals($propertyName, $operand, $caseSensitive = true)
{
$aliasedPropertyName = $this->getPropertyNameWithAlias($propertyName);
if ($operand === null) {
return $this->queryBuilder->expr()->isNull($aliasedPropertyName);
}
if ($caseSensitive === true) {
... | [
"public",
"function",
"equals",
"(",
"$",
"propertyName",
",",
"$",
"operand",
",",
"$",
"caseSensitive",
"=",
"true",
")",
"{",
"$",
"aliasedPropertyName",
"=",
"$",
"this",
"->",
"getPropertyNameWithAlias",
"(",
"$",
"propertyName",
")",
";",
"if",
"(",
... | Returns an equals criterion used for matching objects against a query.
It matches if the $operand equals the value of the property named
$propertyName. If $operand is NULL a strict check for NULL is done. For
strings the comparison can be done with or without case-sensitivity.
Note: case-sensitivity is only possible ... | [
"Returns",
"an",
"equals",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L478-L490 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.like | public function like($propertyName, $operand, $caseSensitive = true)
{
$aliasedPropertyName = $this->getPropertyNameWithAlias($propertyName);
if ($caseSensitive === true) {
return $this->queryBuilder->expr()->like($aliasedPropertyName, $this->getParamNeedle($operand));
}
... | php | public function like($propertyName, $operand, $caseSensitive = true)
{
$aliasedPropertyName = $this->getPropertyNameWithAlias($propertyName);
if ($caseSensitive === true) {
return $this->queryBuilder->expr()->like($aliasedPropertyName, $this->getParamNeedle($operand));
}
... | [
"public",
"function",
"like",
"(",
"$",
"propertyName",
",",
"$",
"operand",
",",
"$",
"caseSensitive",
"=",
"true",
")",
"{",
"$",
"aliasedPropertyName",
"=",
"$",
"this",
"->",
"getPropertyNameWithAlias",
"(",
"$",
"propertyName",
")",
";",
"if",
"(",
"$... | Returns a like criterion used for matching objects against a query.
Matches if the property named $propertyName is like the $operand, using
standard SQL wildcards.
@param string $propertyName The name of the property to compare against
@param string $operand The value to compare with
@param boolean $caseSensitive Whet... | [
"Returns",
"a",
"like",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query",
".",
"Matches",
"if",
"the",
"property",
"named",
"$propertyName",
"is",
"like",
"the",
"$operand",
"using",
"standard",
"SQL",
"wildcards",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L504-L512 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.in | public function in($propertyName, $operand)
{
// Take care: In cannot be needled at the moment! DQL escapes it, but only as literals, making caching a bit harder.
// This is a todo for Doctrine 2.1
return $this->queryBuilder->expr()->in($this->getPropertyNameWithAlias($propertyName), $operan... | php | public function in($propertyName, $operand)
{
// Take care: In cannot be needled at the moment! DQL escapes it, but only as literals, making caching a bit harder.
// This is a todo for Doctrine 2.1
return $this->queryBuilder->expr()->in($this->getPropertyNameWithAlias($propertyName), $operan... | [
"public",
"function",
"in",
"(",
"$",
"propertyName",
",",
"$",
"operand",
")",
"{",
"// Take care: In cannot be needled at the moment! DQL escapes it, but only as literals, making caching a bit harder.",
"// This is a todo for Doctrine 2.1",
"return",
"$",
"this",
"->",
"queryBuil... | Returns an "in" criterion used for matching objects against a query. It
matches if the property's value is contained in the multivalued operand.
@param string $propertyName The name of the property to compare against
@param mixed $operand The value to compare with, multivalued
@return object
@throws InvalidQueryExcept... | [
"Returns",
"an",
"in",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query",
".",
"It",
"matches",
"if",
"the",
"property",
"s",
"value",
"is",
"contained",
"in",
"the",
"multivalued",
"operand",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L555-L560 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.lessThan | public function lessThan($propertyName, $operand)
{
return $this->queryBuilder->expr()->lt($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | php | public function lessThan($propertyName, $operand)
{
return $this->queryBuilder->expr()->lt($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | [
"public",
"function",
"lessThan",
"(",
"$",
"propertyName",
",",
"$",
"operand",
")",
"{",
"return",
"$",
"this",
"->",
"queryBuilder",
"->",
"expr",
"(",
")",
"->",
"lt",
"(",
"$",
"this",
"->",
"getPropertyNameWithAlias",
"(",
"$",
"propertyName",
")",
... | Returns a less than criterion used for matching objects against a query
@param string $propertyName The name of the property to compare against
@param mixed $operand The value to compare with
@return object
@throws InvalidQueryException if used on a multi-valued property or with a non-literal/non-DateTime operand
@api | [
"Returns",
"a",
"less",
"than",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L571-L574 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.lessThanOrEqual | public function lessThanOrEqual($propertyName, $operand)
{
return $this->queryBuilder->expr()->lte($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | php | public function lessThanOrEqual($propertyName, $operand)
{
return $this->queryBuilder->expr()->lte($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | [
"public",
"function",
"lessThanOrEqual",
"(",
"$",
"propertyName",
",",
"$",
"operand",
")",
"{",
"return",
"$",
"this",
"->",
"queryBuilder",
"->",
"expr",
"(",
")",
"->",
"lte",
"(",
"$",
"this",
"->",
"getPropertyNameWithAlias",
"(",
"$",
"propertyName",
... | Returns a less or equal than criterion used for matching objects against a query
@param string $propertyName The name of the property to compare against
@param mixed $operand The value to compare with
@return object
@throws InvalidQueryException if used on a multi-valued property or with a non-literal/non-DateTime ope... | [
"Returns",
"a",
"less",
"or",
"equal",
"than",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L585-L588 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.greaterThan | public function greaterThan($propertyName, $operand)
{
return $this->queryBuilder->expr()->gt($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | php | public function greaterThan($propertyName, $operand)
{
return $this->queryBuilder->expr()->gt($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | [
"public",
"function",
"greaterThan",
"(",
"$",
"propertyName",
",",
"$",
"operand",
")",
"{",
"return",
"$",
"this",
"->",
"queryBuilder",
"->",
"expr",
"(",
")",
"->",
"gt",
"(",
"$",
"this",
"->",
"getPropertyNameWithAlias",
"(",
"$",
"propertyName",
")"... | Returns a greater than criterion used for matching objects against a query
@param string $propertyName The name of the property to compare against
@param mixed $operand The value to compare with
@return object
@throws InvalidQueryException if used on a multi-valued property or with a non-literal/non-DateTime operand
@... | [
"Returns",
"a",
"greater",
"than",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L599-L602 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.greaterThanOrEqual | public function greaterThanOrEqual($propertyName, $operand)
{
return $this->queryBuilder->expr()->gte($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | php | public function greaterThanOrEqual($propertyName, $operand)
{
return $this->queryBuilder->expr()->gte($this->getPropertyNameWithAlias($propertyName), $this->getParamNeedle($operand));
} | [
"public",
"function",
"greaterThanOrEqual",
"(",
"$",
"propertyName",
",",
"$",
"operand",
")",
"{",
"return",
"$",
"this",
"->",
"queryBuilder",
"->",
"expr",
"(",
")",
"->",
"gte",
"(",
"$",
"this",
"->",
"getPropertyNameWithAlias",
"(",
"$",
"propertyName... | Returns a greater than or equal criterion used for matching objects against a query
@param string $propertyName The name of the property to compare against
@param mixed $operand The value to compare with
@return object
@throws InvalidQueryException if used on a multi-valued property or with a non-literal/non-DateTime ... | [
"Returns",
"a",
"greater",
"than",
"or",
"equal",
"criterion",
"used",
"for",
"matching",
"objects",
"against",
"a",
"query"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L613-L616 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.addParameters | public function addParameters($parameters)
{
foreach ($parameters as $parameter) {
$index = $this->parameterIndex++;
$this->queryBuilder->setParameter($index, $parameter);
}
} | php | public function addParameters($parameters)
{
foreach ($parameters as $parameter) {
$index = $this->parameterIndex++;
$this->queryBuilder->setParameter($index, $parameter);
}
} | [
"public",
"function",
"addParameters",
"(",
"$",
"parameters",
")",
"{",
"foreach",
"(",
"$",
"parameters",
"as",
"$",
"parameter",
")",
"{",
"$",
"index",
"=",
"$",
"this",
"->",
"parameterIndex",
"++",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"set... | Add parameters to the query
@param array $parameters
@return void | [
"Add",
"parameters",
"to",
"the",
"query"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L624-L630 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.getParamNeedle | protected function getParamNeedle($operand)
{
$index = $this->parameterIndex++;
$this->queryBuilder->setParameter($index, $operand);
return '?' . $index;
} | php | protected function getParamNeedle($operand)
{
$index = $this->parameterIndex++;
$this->queryBuilder->setParameter($index, $operand);
return '?' . $index;
} | [
"protected",
"function",
"getParamNeedle",
"(",
"$",
"operand",
")",
"{",
"$",
"index",
"=",
"$",
"this",
"->",
"parameterIndex",
"++",
";",
"$",
"this",
"->",
"queryBuilder",
"->",
"setParameter",
"(",
"$",
"index",
",",
"$",
"operand",
")",
";",
"retur... | Get a needle for parameter binding.
@param mixed $operand
@return string | [
"Get",
"a",
"needle",
"for",
"parameter",
"binding",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L648-L653 |
neos/flow-development-collection | Neos.Flow/Classes/Persistence/Doctrine/Query.php | Query.getPropertyNameWithAlias | protected function getPropertyNameWithAlias($propertyPath)
{
$aliases = $this->queryBuilder->getRootAliases();
$previousJoinAlias = $aliases[0];
if (strpos($propertyPath, '.') === false) {
return $previousJoinAlias . '.' . $propertyPath;
}
$propertyPathParts = ex... | php | protected function getPropertyNameWithAlias($propertyPath)
{
$aliases = $this->queryBuilder->getRootAliases();
$previousJoinAlias = $aliases[0];
if (strpos($propertyPath, '.') === false) {
return $previousJoinAlias . '.' . $propertyPath;
}
$propertyPathParts = ex... | [
"protected",
"function",
"getPropertyNameWithAlias",
"(",
"$",
"propertyPath",
")",
"{",
"$",
"aliases",
"=",
"$",
"this",
"->",
"queryBuilder",
"->",
"getRootAliases",
"(",
")",
";",
"$",
"previousJoinAlias",
"=",
"$",
"aliases",
"[",
"0",
"]",
";",
"if",
... | Adds left join clauses along the given property path to the query, if needed.
This enables us to set conditions on related objects.
@param string $propertyPath The path to a sub property, e.g. property.subProperty.foo, or a simple property name
@return string The last part of the property name prefixed by the used joi... | [
"Adds",
"left",
"join",
"clauses",
"along",
"the",
"given",
"property",
"path",
"to",
"the",
"query",
"if",
"needed",
".",
"This",
"enables",
"us",
"to",
"set",
"conditions",
"on",
"related",
"objects",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Persistence/Doctrine/Query.php#L662-L684 |
neos/flow-development-collection | Neos.Eel/Classes/Helper/JsonHelper.php | JsonHelper.stringify | public function stringify($value, array $options = []): string
{
$optionSum = array_sum(array_map('constant', $options));
return json_encode($value, $optionSum);
} | php | public function stringify($value, array $options = []): string
{
$optionSum = array_sum(array_map('constant', $options));
return json_encode($value, $optionSum);
} | [
"public",
"function",
"stringify",
"(",
"$",
"value",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
":",
"string",
"{",
"$",
"optionSum",
"=",
"array_sum",
"(",
"array_map",
"(",
"'constant'",
",",
"$",
"options",
")",
")",
";",
"return",
"json_enc... | JSON encode the given value
Usage example for options:
Json.stringify(value, ['JSON_UNESCAPED_UNICODE', 'JSON_FORCE_OBJECT'])
@param mixed $value
@param array $options Array of option constant names as strings
@return string | [
"JSON",
"encode",
"the",
"given",
"value"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Eel/Classes/Helper/JsonHelper.php#L35-L39 |
neos/flow-development-collection | Neos.Flow/Classes/Http/Client/Browser.php | Browser.request | public function request($uri, $method = 'GET', array $arguments = [], array $files = [], array $server = [], $content = null)
{
if (is_string($uri)) {
$uri = new Uri($uri);
}
if (!$uri instanceof Uri) {
throw new \InvalidArgumentException('$uri must be a URI object or... | php | public function request($uri, $method = 'GET', array $arguments = [], array $files = [], array $server = [], $content = null)
{
if (is_string($uri)) {
$uri = new Uri($uri);
}
if (!$uri instanceof Uri) {
throw new \InvalidArgumentException('$uri must be a URI object or... | [
"public",
"function",
"request",
"(",
"$",
"uri",
",",
"$",
"method",
"=",
"'GET'",
",",
"array",
"$",
"arguments",
"=",
"[",
"]",
",",
"array",
"$",
"files",
"=",
"[",
"]",
",",
"array",
"$",
"server",
"=",
"[",
"]",
",",
"$",
"content",
"=",
... | Requests the given URI with the method and other parameters as specified.
If a Location header was given and the status code is of response type 3xx
(see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, 14.30 Location)
@param string|Uri $uri
@param string $method Request method, for example "GET"
@param array $... | [
"Requests",
"the",
"given",
"URI",
"with",
"the",
"method",
"and",
"other",
"parameters",
"as",
"specified",
".",
"If",
"a",
"Location",
"header",
"was",
"given",
"and",
"the",
"status",
"code",
"is",
"of",
"response",
"type",
"3xx",
"(",
"see",
"http",
... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Http/Client/Browser.php#L131-L162 |
neos/flow-development-collection | Neos.Flow/Classes/Http/Client/Browser.php | Browser.sendRequest | public function sendRequest(Request $request)
{
foreach ($this->automaticRequestHeaders->getAll() as $name => $values) {
$request->setHeader($name, $values);
}
$this->lastRequest = $request;
$this->lastResponse = $this->requestEngine->sendRequest($request);
retur... | php | public function sendRequest(Request $request)
{
foreach ($this->automaticRequestHeaders->getAll() as $name => $values) {
$request->setHeader($name, $values);
}
$this->lastRequest = $request;
$this->lastResponse = $this->requestEngine->sendRequest($request);
retur... | [
"public",
"function",
"sendRequest",
"(",
"Request",
"$",
"request",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"automaticRequestHeaders",
"->",
"getAll",
"(",
")",
"as",
"$",
"name",
"=>",
"$",
"values",
")",
"{",
"$",
"request",
"->",
"setHeader",
"(... | Sends a prepared request and returns the respective response.
@param Request $request
@return Response
@api | [
"Sends",
"a",
"prepared",
"request",
"and",
"returns",
"the",
"respective",
"response",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Http/Client/Browser.php#L182-L191 |
neos/flow-development-collection | Neos.Flow/Classes/Http/Client/Browser.php | Browser.getCrawler | public function getCrawler()
{
$crawler = new Crawler(null, $this->lastRequest->getBaseUri());
$crawler->addContent($this->lastResponse->getContent(), $this->lastResponse->getHeader('Content-Type'));
return $crawler;
} | php | public function getCrawler()
{
$crawler = new Crawler(null, $this->lastRequest->getBaseUri());
$crawler->addContent($this->lastResponse->getContent(), $this->lastResponse->getHeader('Content-Type'));
return $crawler;
} | [
"public",
"function",
"getCrawler",
"(",
")",
"{",
"$",
"crawler",
"=",
"new",
"Crawler",
"(",
"null",
",",
"$",
"this",
"->",
"lastRequest",
"->",
"getBaseUri",
"(",
")",
")",
";",
"$",
"crawler",
"->",
"addContent",
"(",
"$",
"this",
"->",
"lastRespo... | Returns the DOM crawler which can be used to interact with the web page
structure, submit forms, click links or fetch specific parts of the
website's contents.
The returned DOM crawler is bound to the response of the last executed
request.
@return \Symfony\Component\DomCrawler\Crawler
@api | [
"Returns",
"the",
"DOM",
"crawler",
"which",
"can",
"be",
"used",
"to",
"interact",
"with",
"the",
"web",
"page",
"structure",
"submit",
"forms",
"click",
"links",
"or",
"fetch",
"specific",
"parts",
"of",
"the",
"website",
"s",
"contents",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Http/Client/Browser.php#L237-L243 |
neos/flow-development-collection | Neos.Flow/Classes/Http/Client/Browser.php | Browser.submit | public function submit(Form $form)
{
return $this->request($form->getUri(), $form->getMethod(), $form->getPhpValues(), $form->getPhpFiles());
} | php | public function submit(Form $form)
{
return $this->request($form->getUri(), $form->getMethod(), $form->getPhpValues(), $form->getPhpFiles());
} | [
"public",
"function",
"submit",
"(",
"Form",
"$",
"form",
")",
"{",
"return",
"$",
"this",
"->",
"request",
"(",
"$",
"form",
"->",
"getUri",
"(",
")",
",",
"$",
"form",
"->",
"getMethod",
"(",
")",
",",
"$",
"form",
"->",
"getPhpValues",
"(",
")",... | Submit a form
@param \Symfony\Component\DomCrawler\Form $form
@return Response
@api | [
"Submit",
"a",
"form"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Http/Client/Browser.php#L265-L268 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.resolveConfigurationProcessingType | public function resolveConfigurationProcessingType(string $configurationType): string
{
if (!isset($this->configurationTypes[$configurationType])) {
throw new Exception\InvalidConfigurationTypeException('Configuration type "' . $configurationType . '" is not registered. You can Register it by ca... | php | public function resolveConfigurationProcessingType(string $configurationType): string
{
if (!isset($this->configurationTypes[$configurationType])) {
throw new Exception\InvalidConfigurationTypeException('Configuration type "' . $configurationType . '" is not registered. You can Register it by ca... | [
"public",
"function",
"resolveConfigurationProcessingType",
"(",
"string",
"$",
"configurationType",
")",
":",
"string",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
"configurationTypes",
"[",
"$",
"configurationType",
"]",
")",
")",
"{",
"throw",
"ne... | Resolve the processing type for the configuration type.
This returns the CONFIGURATION_PROCESSING_TYPE_* to use for the given
$configurationType.
@param string $configurationType
@return string
@throws Exception\InvalidConfigurationTypeException on non-existing configurationType | [
"Resolve",
"the",
"processing",
"type",
"for",
"the",
"configuration",
"type",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L248-L255 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.isSplitSourceAllowedForConfigurationType | public function isSplitSourceAllowedForConfigurationType(string $configurationType): bool
{
if (!isset($this->configurationTypes[$configurationType])) {
throw new Exception\InvalidConfigurationTypeException('Configuration type "' . $configurationType . '" is not registered. You can Register it b... | php | public function isSplitSourceAllowedForConfigurationType(string $configurationType): bool
{
if (!isset($this->configurationTypes[$configurationType])) {
throw new Exception\InvalidConfigurationTypeException('Configuration type "' . $configurationType . '" is not registered. You can Register it b... | [
"public",
"function",
"isSplitSourceAllowedForConfigurationType",
"(",
"string",
"$",
"configurationType",
")",
":",
"bool",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
"configurationTypes",
"[",
"$",
"configurationType",
"]",
")",
")",
"{",
"throw",
... | Check the allowSplitSource setting for the configuration type.
@param string $configurationType
@return boolean
@throws Exception\InvalidConfigurationTypeException on non-existing configurationType | [
"Check",
"the",
"allowSplitSource",
"setting",
"for",
"the",
"configuration",
"type",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L264-L271 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.registerConfigurationType | public function registerConfigurationType(string $configurationType, string $configurationProcessingType = self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, bool $allowSplitSource = false)
{
$configurationProcessingTypes = [
self::CONFIGURATION_PROCESSING_TYPE_DEFAULT,
self::CONFIGURATION... | php | public function registerConfigurationType(string $configurationType, string $configurationProcessingType = self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, bool $allowSplitSource = false)
{
$configurationProcessingTypes = [
self::CONFIGURATION_PROCESSING_TYPE_DEFAULT,
self::CONFIGURATION... | [
"public",
"function",
"registerConfigurationType",
"(",
"string",
"$",
"configurationType",
",",
"string",
"$",
"configurationProcessingType",
"=",
"self",
"::",
"CONFIGURATION_PROCESSING_TYPE_DEFAULT",
",",
"bool",
"$",
"allowSplitSource",
"=",
"false",
")",
"{",
"$",
... | Registers a new configuration type with the given configuration processing type.
The processing type must be supported by the ConfigurationManager, see
CONFIGURATION_PROCESSING_TYPE_* for what is available.
@param string $configurationType The type to register, may be anything
@param string $configurationProcessingTy... | [
"Registers",
"a",
"new",
"configuration",
"type",
"with",
"the",
"given",
"configuration",
"processing",
"type",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L285-L299 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.getConfiguration | public function getConfiguration(string $configurationType, string $configurationPath = null)
{
if (empty($this->configurations[$configurationType])) {
$this->loadConfiguration($configurationType, $this->packages);
}
$configuration = $this->configurations[$configurationType] ?? ... | php | public function getConfiguration(string $configurationType, string $configurationPath = null)
{
if (empty($this->configurations[$configurationType])) {
$this->loadConfiguration($configurationType, $this->packages);
}
$configuration = $this->configurations[$configurationType] ?? ... | [
"public",
"function",
"getConfiguration",
"(",
"string",
"$",
"configurationType",
",",
"string",
"$",
"configurationPath",
"=",
"null",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"this",
"->",
"configurations",
"[",
"$",
"configurationType",
"]",
")",
")",
"{"... | Returns the specified raw configuration.
The actual configuration will be merged from different sources in a defined order.
Note that this is a low level method and mostly makes sense to be used by Flow internally.
If possible just use settings and have them injected.
@param string $configurationType The kind of conf... | [
"Returns",
"the",
"specified",
"raw",
"configuration",
".",
"The",
"actual",
"configuration",
"will",
"be",
"merged",
"from",
"different",
"sources",
"in",
"a",
"defined",
"order",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L324-L336 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.loadConfiguration | protected function loadConfiguration(string $configurationType, array $packages)
{
$this->configurations[$configurationType] = [];
$this->cacheNeedsUpdate = true;
$configurationProcessingType = $this->resolveConfigurationProcessingType($configurationType);
$allowSplitSource = $this-... | php | protected function loadConfiguration(string $configurationType, array $packages)
{
$this->configurations[$configurationType] = [];
$this->cacheNeedsUpdate = true;
$configurationProcessingType = $this->resolveConfigurationProcessingType($configurationType);
$allowSplitSource = $this-... | [
"protected",
"function",
"loadConfiguration",
"(",
"string",
"$",
"configurationType",
",",
"array",
"$",
"packages",
")",
"{",
"$",
"this",
"->",
"configurations",
"[",
"$",
"configurationType",
"]",
"=",
"[",
"]",
";",
"$",
"this",
"->",
"cacheNeedsUpdate",
... | Loads special configuration defined in the specified packages and merges them with
those potentially existing in the global configuration folders. The result is stored
in the configuration manager's configuration registry and can be retrieved with the
getConfiguration() method.
@param string $configurationType The kin... | [
"Loads",
"special",
"configuration",
"defined",
"in",
"the",
"specified",
"packages",
"and",
"merges",
"them",
"with",
"those",
"potentially",
"existing",
"in",
"the",
"global",
"configuration",
"folders",
".",
"The",
"result",
"is",
"stored",
"in",
"the",
"conf... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L377-L499 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.loadConfigurationCache | public function loadConfigurationCache(): bool
{
$cachePathAndFilename = $this->constructConfigurationCachePath();
$configurations = @include $cachePathAndFilename;
if ($configurations !== false) {
$this->configurations = $configurations;
return true;
}
... | php | public function loadConfigurationCache(): bool
{
$cachePathAndFilename = $this->constructConfigurationCachePath();
$configurations = @include $cachePathAndFilename;
if ($configurations !== false) {
$this->configurations = $configurations;
return true;
}
... | [
"public",
"function",
"loadConfigurationCache",
"(",
")",
":",
"bool",
"{",
"$",
"cachePathAndFilename",
"=",
"$",
"this",
"->",
"constructConfigurationCachePath",
"(",
")",
";",
"$",
"configurations",
"=",
"@",
"include",
"$",
"cachePathAndFilename",
";",
"if",
... | If a cache file with previously saved configuration exists, it is loaded.
@return boolean If cached configuration was loaded or not | [
"If",
"a",
"cache",
"file",
"with",
"previously",
"saved",
"configuration",
"exists",
"it",
"is",
"loaded",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L506-L516 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.flushConfigurationCache | public function flushConfigurationCache()
{
$this->configurations = [self::CONFIGURATION_TYPE_SETTINGS => []];
if ($this->temporaryDirectoryPath === null) {
return;
}
$cachePathAndFilename = $this->constructConfigurationCachePath();
if (is_file($cachePathAndFilen... | php | public function flushConfigurationCache()
{
$this->configurations = [self::CONFIGURATION_TYPE_SETTINGS => []];
if ($this->temporaryDirectoryPath === null) {
return;
}
$cachePathAndFilename = $this->constructConfigurationCachePath();
if (is_file($cachePathAndFilen... | [
"public",
"function",
"flushConfigurationCache",
"(",
")",
"{",
"$",
"this",
"->",
"configurations",
"=",
"[",
"self",
"::",
"CONFIGURATION_TYPE_SETTINGS",
"=>",
"[",
"]",
"]",
";",
"if",
"(",
"$",
"this",
"->",
"temporaryDirectoryPath",
"===",
"null",
")",
... | If a cache file with previously saved configuration exists, it is removed.
Internal: After this the configuration manager is left without any configuration,
use refreshConfiguration if you want to reread the configuration.
@return void
@throws Exception
@see refreshConfiguration | [
"If",
"a",
"cache",
"file",
"with",
"previously",
"saved",
"configuration",
"exists",
"it",
"is",
"removed",
".",
"Internal",
":",
"After",
"this",
"the",
"configuration",
"manager",
"is",
"left",
"without",
"any",
"configuration",
"use",
"refreshConfiguration",
... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L527-L541 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.saveConfigurationCache | protected function saveConfigurationCache()
{
// Make sure that all configuration types are loaded before writing configuration caches.
foreach (array_keys($this->configurationTypes) as $configurationType) {
if (!isset($this->unprocessedConfiguration[$configurationType]) || !is_array($th... | php | protected function saveConfigurationCache()
{
// Make sure that all configuration types are loaded before writing configuration caches.
foreach (array_keys($this->configurationTypes) as $configurationType) {
if (!isset($this->unprocessedConfiguration[$configurationType]) || !is_array($th... | [
"protected",
"function",
"saveConfigurationCache",
"(",
")",
"{",
"// Make sure that all configuration types are loaded before writing configuration caches.",
"foreach",
"(",
"array_keys",
"(",
"$",
"this",
"->",
"configurationTypes",
")",
"as",
"$",
"configurationType",
")",
... | Saves the current configuration into a cache file and creates a cache inclusion script
in the context's Configuration directory.
@return void
@throws Exception | [
"Saves",
"the",
"current",
"configuration",
"into",
"a",
"cache",
"file",
"and",
"creates",
"a",
"cache",
"inclusion",
"script",
"in",
"the",
"context",
"s",
"Configuration",
"directory",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L550-L571 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.replaceVariablesInPhpString | protected function replaceVariablesInPhpString(string $phpString)
{
$phpString = preg_replace_callback('/
(?<startString>=>\s\'.*?)? # optionally assignment operator and starting a string
(?P<fullMatch>% # an expression is indicated by %
(?P<exp... | php | protected function replaceVariablesInPhpString(string $phpString)
{
$phpString = preg_replace_callback('/
(?<startString>=>\s\'.*?)? # optionally assignment operator and starting a string
(?P<fullMatch>% # an expression is indicated by %
(?P<exp... | [
"protected",
"function",
"replaceVariablesInPhpString",
"(",
"string",
"$",
"phpString",
")",
"{",
"$",
"phpString",
"=",
"preg_replace_callback",
"(",
"'/\n (?<startString>=>\\s\\'.*?)? # optionally assignment operator and starting a string\n (?P<fullMatch>... | Replaces variables (in the format %CONSTANT% or %env:ENVIRONMENT_VARIABLE%)
in the given php exported configuration string.
This is applied before caching to alllow runtime evaluation of constants and environment variables.
@param string $phpString
@return mixed | [
"Replaces",
"variables",
"(",
"in",
"the",
"format",
"%CONSTANT%",
"or",
"%env",
":",
"ENVIRONMENT_VARIABLE%",
")",
"in",
"the",
"given",
"php",
"exported",
"configuration",
"string",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L592-L632 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.mergePolicyConfiguration | protected function mergePolicyConfiguration(array $firstConfigurationArray, array $secondConfigurationArray): array
{
$result = Arrays::arrayMergeRecursiveOverrule($firstConfigurationArray, $secondConfigurationArray);
if (!isset($result['roles'])) {
return $result;
}
fore... | php | protected function mergePolicyConfiguration(array $firstConfigurationArray, array $secondConfigurationArray): array
{
$result = Arrays::arrayMergeRecursiveOverrule($firstConfigurationArray, $secondConfigurationArray);
if (!isset($result['roles'])) {
return $result;
}
fore... | [
"protected",
"function",
"mergePolicyConfiguration",
"(",
"array",
"$",
"firstConfigurationArray",
",",
"array",
"$",
"secondConfigurationArray",
")",
":",
"array",
"{",
"$",
"result",
"=",
"Arrays",
"::",
"arrayMergeRecursiveOverrule",
"(",
"$",
"firstConfigurationArra... | Merges two policy configuration arrays.
@param array $firstConfigurationArray
@param array $secondConfigurationArray
@return array | [
"Merges",
"two",
"policy",
"configuration",
"arrays",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L641-L654 |
neos/flow-development-collection | Neos.Flow/Classes/Configuration/ConfigurationManager.php | ConfigurationManager.constructConfigurationCachePath | protected function constructConfigurationCachePath(): string
{
$configurationCachePath = $this->temporaryDirectoryPath . 'Configuration/';
return $configurationCachePath . str_replace('/', '_', (string)$this->context) . 'Configurations.php';
} | php | protected function constructConfigurationCachePath(): string
{
$configurationCachePath = $this->temporaryDirectoryPath . 'Configuration/';
return $configurationCachePath . str_replace('/', '_', (string)$this->context) . 'Configurations.php';
} | [
"protected",
"function",
"constructConfigurationCachePath",
"(",
")",
":",
"string",
"{",
"$",
"configurationCachePath",
"=",
"$",
"this",
"->",
"temporaryDirectoryPath",
".",
"'Configuration/'",
";",
"return",
"$",
"configurationCachePath",
".",
"str_replace",
"(",
"... | Constructs a path to the configuration cache PHP file.
Derived from the temporary path and application context.
@return string | [
"Constructs",
"a",
"path",
"to",
"the",
"configuration",
"cache",
"PHP",
"file",
".",
"Derived",
"from",
"the",
"temporary",
"path",
"and",
"application",
"context",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Configuration/ConfigurationManager.php#L662-L666 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ClassReflection.php | ClassReflection.getInterfaces | public function getInterfaces()
{
$extendedInterfaces = [];
$interfaces = parent::getInterfaces();
foreach ($interfaces as $interface) {
$extendedInterfaces[] = new ClassReflection($interface->getName());
}
return $extendedInterfaces;
} | php | public function getInterfaces()
{
$extendedInterfaces = [];
$interfaces = parent::getInterfaces();
foreach ($interfaces as $interface) {
$extendedInterfaces[] = new ClassReflection($interface->getName());
}
return $extendedInterfaces;
} | [
"public",
"function",
"getInterfaces",
"(",
")",
"{",
"$",
"extendedInterfaces",
"=",
"[",
"]",
";",
"$",
"interfaces",
"=",
"parent",
"::",
"getInterfaces",
"(",
")",
";",
"foreach",
"(",
"$",
"interfaces",
"as",
"$",
"interface",
")",
"{",
"$",
"extend... | Replacement for the original getInterfaces() method which makes sure
that ClassReflection objects are returned instead of the
original ReflectionClass instances.
@return array<ClassReflection> Class reflection objects of the properties in this class | [
"Replacement",
"for",
"the",
"original",
"getInterfaces",
"()",
"method",
"which",
"makes",
"sure",
"that",
"ClassReflection",
"objects",
"are",
"returned",
"instead",
"of",
"the",
"original",
"ReflectionClass",
"instances",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ClassReflection.php#L68-L76 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ClassReflection.php | ClassReflection.getParentClass | public function getParentClass()
{
$parentClass = parent::getParentClass();
return ($parentClass === false) ? false : new ClassReflection($parentClass->getName());
} | php | public function getParentClass()
{
$parentClass = parent::getParentClass();
return ($parentClass === false) ? false : new ClassReflection($parentClass->getName());
} | [
"public",
"function",
"getParentClass",
"(",
")",
"{",
"$",
"parentClass",
"=",
"parent",
"::",
"getParentClass",
"(",
")",
";",
"return",
"(",
"$",
"parentClass",
"===",
"false",
")",
"?",
"false",
":",
"new",
"ClassReflection",
"(",
"$",
"parentClass",
"... | Replacement for the original getParentClass() method which makes sure
that a ClassReflection object is returned instead of the
orginal ReflectionClass instance.
@return ClassReflection Reflection of the parent class - if any | [
"Replacement",
"for",
"the",
"original",
"getParentClass",
"()",
"method",
"which",
"makes",
"sure",
"that",
"a",
"ClassReflection",
"object",
"is",
"returned",
"instead",
"of",
"the",
"orginal",
"ReflectionClass",
"instance",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ClassReflection.php#L117-L121 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ClassReflection.php | ClassReflection.getProperties | public function getProperties($filter = null)
{
$extendedProperties = [];
$properties = ($filter === null ? parent::getProperties() : parent::getProperties($filter));
foreach ($properties as $property) {
$extendedProperties[] = new PropertyReflection($this->getName(), $property->... | php | public function getProperties($filter = null)
{
$extendedProperties = [];
$properties = ($filter === null ? parent::getProperties() : parent::getProperties($filter));
foreach ($properties as $property) {
$extendedProperties[] = new PropertyReflection($this->getName(), $property->... | [
"public",
"function",
"getProperties",
"(",
"$",
"filter",
"=",
"null",
")",
"{",
"$",
"extendedProperties",
"=",
"[",
"]",
";",
"$",
"properties",
"=",
"(",
"$",
"filter",
"===",
"null",
"?",
"parent",
"::",
"getProperties",
"(",
")",
":",
"parent",
"... | Replacement for the original getProperties() method which makes sure
that PropertyReflection objects are returned instead of the
orginal ReflectionProperty instances.
@param integer $filter A filter mask
@return array<PropertyReflection> Property reflection objects of the properties in this class | [
"Replacement",
"for",
"the",
"original",
"getProperties",
"()",
"method",
"which",
"makes",
"sure",
"that",
"PropertyReflection",
"objects",
"are",
"returned",
"instead",
"of",
"the",
"orginal",
"ReflectionProperty",
"instances",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ClassReflection.php#L131-L139 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ClassReflection.php | ClassReflection.newInstanceWithoutConstructor | public function newInstanceWithoutConstructor()
{
$instance = parent::newInstanceWithoutConstructor();
if (method_exists($instance, '__wakeup') && is_callable([$instance, '__wakeup'])) {
$instance->__wakeup();
}
return $instance;
} | php | public function newInstanceWithoutConstructor()
{
$instance = parent::newInstanceWithoutConstructor();
if (method_exists($instance, '__wakeup') && is_callable([$instance, '__wakeup'])) {
$instance->__wakeup();
}
return $instance;
} | [
"public",
"function",
"newInstanceWithoutConstructor",
"(",
")",
"{",
"$",
"instance",
"=",
"parent",
"::",
"newInstanceWithoutConstructor",
"(",
")",
";",
"if",
"(",
"method_exists",
"(",
"$",
"instance",
",",
"'__wakeup'",
")",
"&&",
"is_callable",
"(",
"[",
... | Creates a new class instance without invoking the constructor.
Overridden to make sure DI works even when instances are created using
newInstanceWithoutConstructor()
@see https://github.com/doctrine/doctrine2/commit/530c01b5e3ed7345cde564bd511794ac72f49b65
@return object | [
"Creates",
"a",
"new",
"class",
"instance",
"without",
"invoking",
"the",
"constructor",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ClassReflection.php#L205-L214 |
neos/flow-development-collection | Neos.Flow/Classes/Reflection/ClassReflection.php | ClassReflection.getDocCommentParser | protected function getDocCommentParser()
{
if (!is_object($this->docCommentParser)) {
$this->docCommentParser = new DocCommentParser;
$this->docCommentParser->parseDocComment($this->getDocComment());
}
return $this->docCommentParser;
} | php | protected function getDocCommentParser()
{
if (!is_object($this->docCommentParser)) {
$this->docCommentParser = new DocCommentParser;
$this->docCommentParser->parseDocComment($this->getDocComment());
}
return $this->docCommentParser;
} | [
"protected",
"function",
"getDocCommentParser",
"(",
")",
"{",
"if",
"(",
"!",
"is_object",
"(",
"$",
"this",
"->",
"docCommentParser",
")",
")",
"{",
"$",
"this",
"->",
"docCommentParser",
"=",
"new",
"DocCommentParser",
";",
"$",
"this",
"->",
"docCommentP... | Returns an instance of the doc comment parser and
runs the parse() method.
@return DocCommentParser | [
"Returns",
"an",
"instance",
"of",
"the",
"doc",
"comment",
"parser",
"and",
"runs",
"the",
"parse",
"()",
"method",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Reflection/ClassReflection.php#L222-L229 |
neos/flow-development-collection | Neos.Flow/Classes/Session/Aspect/LazyLoadingAspect.php | LazyLoadingAspect.initializeSession | public function initializeSession(JoinPointInterface $joinPoint)
{
$session = $this->sessionManager->getCurrentSession();
if ($session->isStarted() === true) {
return;
}
$objectName = $this->objectManager->getObjectNameByClassName(get_class($joinPoint->getProxy()));
... | php | public function initializeSession(JoinPointInterface $joinPoint)
{
$session = $this->sessionManager->getCurrentSession();
if ($session->isStarted() === true) {
return;
}
$objectName = $this->objectManager->getObjectNameByClassName(get_class($joinPoint->getProxy()));
... | [
"public",
"function",
"initializeSession",
"(",
"JoinPointInterface",
"$",
"joinPoint",
")",
"{",
"$",
"session",
"=",
"$",
"this",
"->",
"sessionManager",
"->",
"getCurrentSession",
"(",
")",
";",
"if",
"(",
"$",
"session",
"->",
"isStarted",
"(",
")",
"===... | Before advice for all methods annotated with "@Flow\Session(autoStart=true)".
Those methods will trigger a session initialization if a session does not exist
yet.
@param JoinPointInterface $joinPoint The current join point
@return void
@fixme The pointcut expression below does not consider the options of the session a... | [
"Before",
"advice",
"for",
"all",
"methods",
"annotated",
"with",
"@Flow",
"\\",
"Session",
"(",
"autoStart",
"=",
"true",
")",
".",
"Those",
"methods",
"will",
"trigger",
"a",
"session",
"initialization",
"if",
"a",
"session",
"does",
"not",
"exist",
"yet",... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Session/Aspect/LazyLoadingAspect.php#L85-L98 |
neos/flow-development-collection | Neos.Flow/Classes/Session/Aspect/LazyLoadingAspect.php | LazyLoadingAspect.callMethodOnOriginalSessionObject | public function callMethodOnOriginalSessionObject(JoinPointInterface $joinPoint)
{
$objectName = $this->objectManager->getObjectNameByClassName(get_class($joinPoint->getProxy()));
$methodName = $joinPoint->getMethodName();
$proxy = $joinPoint->getProxy();
if (!isset($this->sessionOr... | php | public function callMethodOnOriginalSessionObject(JoinPointInterface $joinPoint)
{
$objectName = $this->objectManager->getObjectNameByClassName(get_class($joinPoint->getProxy()));
$methodName = $joinPoint->getMethodName();
$proxy = $joinPoint->getProxy();
if (!isset($this->sessionOr... | [
"public",
"function",
"callMethodOnOriginalSessionObject",
"(",
"JoinPointInterface",
"$",
"joinPoint",
")",
"{",
"$",
"objectName",
"=",
"$",
"this",
"->",
"objectManager",
"->",
"getObjectNameByClassName",
"(",
"get_class",
"(",
"$",
"joinPoint",
"->",
"getProxy",
... | Around advice, wrapping every method of a scope session object. It redirects
all method calls to the session object once there is one.
@param JoinPointInterface $joinPoint The current join point
@return mixed
@Flow\Around("filter(Neos\Flow\Session\Aspect\SessionObjectMethodsPointcutFilter)") | [
"Around",
"advice",
"wrapping",
"every",
"method",
"of",
"a",
"scope",
"session",
"object",
".",
"It",
"redirects",
"all",
"method",
"calls",
"to",
"the",
"session",
"object",
"once",
"there",
"is",
"one",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Session/Aspect/LazyLoadingAspect.php#L108-L123 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.getTemplateRootPaths | public function getTemplateRootPaths()
{
if ($this->templateRootPaths !== []) {
return $this->templateRootPaths;
}
if ($this->templateRootPathPattern === null) {
return [];
}
$templateRootPath = $this->templateRootPathPattern;
if (isset($this... | php | public function getTemplateRootPaths()
{
if ($this->templateRootPaths !== []) {
return $this->templateRootPaths;
}
if ($this->templateRootPathPattern === null) {
return [];
}
$templateRootPath = $this->templateRootPathPattern;
if (isset($this... | [
"public",
"function",
"getTemplateRootPaths",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"templateRootPaths",
"!==",
"[",
"]",
")",
"{",
"return",
"$",
"this",
"->",
"templateRootPaths",
";",
"}",
"if",
"(",
"$",
"this",
"->",
"templateRootPathPattern",
... | Resolves the template root to be used inside other paths.
@return array Path(s) to template root directory | [
"Resolves",
"the",
"template",
"root",
"to",
"be",
"used",
"inside",
"other",
"paths",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L122-L138 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.resolveTemplateFileForControllerAndActionAndFormat | public function resolveTemplateFileForControllerAndActionAndFormat($controller, $action, $format = null)
{
if ($this->templatePathAndFilename) {
return $this->templatePathAndFilename;
}
$action = ucfirst($action);
$paths = $this->getTemplateRootPaths();
if (isse... | php | public function resolveTemplateFileForControllerAndActionAndFormat($controller, $action, $format = null)
{
if ($this->templatePathAndFilename) {
return $this->templatePathAndFilename;
}
$action = ucfirst($action);
$paths = $this->getTemplateRootPaths();
if (isse... | [
"public",
"function",
"resolveTemplateFileForControllerAndActionAndFormat",
"(",
"$",
"controller",
",",
"$",
"action",
",",
"$",
"format",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"templatePathAndFilename",
")",
"{",
"return",
"$",
"this",
"->",
"... | Resolves a template file based on the given controller and action,
together with eventually defined patternReplacementVariables.
@param string $controller
@param string $action
@param string $format
@return mixed|string
@throws Exception\InvalidTemplateResourceException | [
"Resolves",
"a",
"template",
"file",
"based",
"on",
"the",
"given",
"controller",
"and",
"action",
"together",
"with",
"eventually",
"defined",
"patternReplacementVariables",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L221-L245 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.getLayoutPathAndFilename | public function getLayoutPathAndFilename($layoutName = 'Default')
{
if (isset($this->options['layoutPathAndFilename'])) {
return $this->options['layoutPathAndFilename'];
}
$layoutName = ucfirst($layoutName);
$paths = $this->getLayoutRootPaths();
if (isset($this->... | php | public function getLayoutPathAndFilename($layoutName = 'Default')
{
if (isset($this->options['layoutPathAndFilename'])) {
return $this->options['layoutPathAndFilename'];
}
$layoutName = ucfirst($layoutName);
$paths = $this->getLayoutRootPaths();
if (isset($this->... | [
"public",
"function",
"getLayoutPathAndFilename",
"(",
"$",
"layoutName",
"=",
"'Default'",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"options",
"[",
"'layoutPathAndFilename'",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"options",
"[",
"'... | Resolve the path and file name of the layout file, based on
$this->options['layoutPathAndFilename'] and $this->options['layoutPathAndFilenamePattern'].
In case a layout has already been set with setLayoutPathAndFilename(),
this method returns that path, otherwise a path and filename will be
resolved using the layoutPa... | [
"Resolve",
"the",
"path",
"and",
"file",
"name",
"of",
"the",
"layout",
"file",
"based",
"on",
"$this",
"-",
">",
"options",
"[",
"layoutPathAndFilename",
"]",
"and",
"$this",
"-",
">",
"options",
"[",
"layoutPathAndFilenamePattern",
"]",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L259-L279 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.getPartialPathAndFilename | public function getPartialPathAndFilename($partialName)
{
$patternReplacementVariables = array_merge($this->patternReplacementVariables, [
'partial' => $partialName,
]);
if (strpos($partialName, ':') !== false) {
list($packageKey, $actualPartialName) = explode(':', $... | php | public function getPartialPathAndFilename($partialName)
{
$patternReplacementVariables = array_merge($this->patternReplacementVariables, [
'partial' => $partialName,
]);
if (strpos($partialName, ':') !== false) {
list($packageKey, $actualPartialName) = explode(':', $... | [
"public",
"function",
"getPartialPathAndFilename",
"(",
"$",
"partialName",
")",
"{",
"$",
"patternReplacementVariables",
"=",
"array_merge",
"(",
"$",
"this",
"->",
"patternReplacementVariables",
",",
"[",
"'partial'",
"=>",
"$",
"partialName",
",",
"]",
")",
";"... | Resolve the partial path and filename based on $this->options['partialPathAndFilenamePattern'].
@param string $partialName The name of the partial
@return string the full path which should be used. The path definitely exists.
@throws InvalidTemplateResourceException | [
"Resolve",
"the",
"partial",
"path",
"and",
"filename",
"based",
"on",
"$this",
"-",
">",
"options",
"[",
"partialPathAndFilenamePattern",
"]",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L288-L311 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.sanitizePath | protected function sanitizePath($path)
{
if (empty($path)) {
return '';
}
$path = Files::getUnixStylePath($path);
if (is_dir($path)) {
$path = Files::getNormalizedPath($path);
}
return $path;
} | php | protected function sanitizePath($path)
{
if (empty($path)) {
return '';
}
$path = Files::getUnixStylePath($path);
if (is_dir($path)) {
$path = Files::getNormalizedPath($path);
}
return $path;
} | [
"protected",
"function",
"sanitizePath",
"(",
"$",
"path",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"path",
")",
")",
"{",
"return",
"''",
";",
"}",
"$",
"path",
"=",
"Files",
"::",
"getUnixStylePath",
"(",
"$",
"path",
")",
";",
"if",
"(",
"is_dir"... | Sanitize a path, ensuring it is absolute and
if a directory, suffixed by a trailing slash.
@param string $path
@return string | [
"Sanitize",
"a",
"path",
"ensuring",
"it",
"is",
"absolute",
"and",
"if",
"a",
"directory",
"suffixed",
"by",
"a",
"trailing",
"slash",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L340-L352 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.expandGenericPathPattern | protected function expandGenericPathPattern($pattern, array $patternReplacementVariables, $bubbleControllerAndSubpackage, $formatIsOptional)
{
$paths = [$pattern];
$paths = $this->expandPatterns($paths, '@templateRoot', isset($patternReplacementVariables['templateRoot']) ? [$patternReplacementVariab... | php | protected function expandGenericPathPattern($pattern, array $patternReplacementVariables, $bubbleControllerAndSubpackage, $formatIsOptional)
{
$paths = [$pattern];
$paths = $this->expandPatterns($paths, '@templateRoot', isset($patternReplacementVariables['templateRoot']) ? [$patternReplacementVariab... | [
"protected",
"function",
"expandGenericPathPattern",
"(",
"$",
"pattern",
",",
"array",
"$",
"patternReplacementVariables",
",",
"$",
"bubbleControllerAndSubpackage",
",",
"$",
"formatIsOptional",
")",
"{",
"$",
"paths",
"=",
"[",
"$",
"pattern",
"]",
";",
"$",
... | Processes following placeholders inside $pattern:
- "@templateRoot"
- "@partialRoot"
- "@layoutRoot"
- "@subpackage"
- "@controller"
- "@format"
This method is used to generate "fallback chains" for file system locations where a certain Partial can reside.
If $bubbleControllerAndSubpackage is false and $formatIsOptio... | [
"Processes",
"following",
"placeholders",
"inside",
"$pattern",
":",
"-",
"@templateRoot",
"-",
"@partialRoot",
"-",
"@layoutRoot",
"-",
"@subpackage",
"-",
"@controller",
"-",
"@format"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L404-L433 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.expandPatterns | protected function expandPatterns(array $patterns, $search, array $replacements)
{
if ($replacements === []) {
return $patterns;
}
$patternsWithReplacements = [];
foreach ($patterns as $pattern) {
foreach ($replacements as $replacement) {
$patt... | php | protected function expandPatterns(array $patterns, $search, array $replacements)
{
if ($replacements === []) {
return $patterns;
}
$patternsWithReplacements = [];
foreach ($patterns as $pattern) {
foreach ($replacements as $replacement) {
$patt... | [
"protected",
"function",
"expandPatterns",
"(",
"array",
"$",
"patterns",
",",
"$",
"search",
",",
"array",
"$",
"replacements",
")",
"{",
"if",
"(",
"$",
"replacements",
"===",
"[",
"]",
")",
"{",
"return",
"$",
"patterns",
";",
"}",
"$",
"patternsWithR... | Expands the given $patterns by adding an array element for each $replacement
replacing occurrences of $search.
@param array $patterns
@param string $search
@param array $replacements
@return void | [
"Expands",
"the",
"given",
"$patterns",
"by",
"adding",
"an",
"array",
"element",
"for",
"each",
"$replacement",
"replacing",
"occurrences",
"of",
"$search",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L491-L504 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.setOption | public function setOption($optionName, $value)
{
$this->options[$optionName] = $value;
if (ObjectAccess::isPropertySettable($this, $optionName)) {
ObjectAccess::setProperty($this, $optionName, $value);
}
} | php | public function setOption($optionName, $value)
{
$this->options[$optionName] = $value;
if (ObjectAccess::isPropertySettable($this, $optionName)) {
ObjectAccess::setProperty($this, $optionName, $value);
}
} | [
"public",
"function",
"setOption",
"(",
"$",
"optionName",
",",
"$",
"value",
")",
"{",
"$",
"this",
"->",
"options",
"[",
"$",
"optionName",
"]",
"=",
"$",
"value",
";",
"if",
"(",
"ObjectAccess",
"::",
"isPropertySettable",
"(",
"$",
"this",
",",
"$"... | Set a specific option of this object
@param string $optionName
@param mixed $value
@return void | [
"Set",
"a",
"specific",
"option",
"of",
"this",
"object"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L524-L530 |
neos/flow-development-collection | Neos.FluidAdaptor/Classes/View/TemplatePaths.php | TemplatePaths.createIdentifierForFile | protected function createIdentifierForFile($pathAndFilename, $prefix)
{
$templateModifiedTimestamp = 0;
$isStandardInput = $pathAndFilename === 'php://stdin';
$isFile = is_file($pathAndFilename);
if ($isStandardInput === false && $isFile === false) {
throw new InvalidTemp... | php | protected function createIdentifierForFile($pathAndFilename, $prefix)
{
$templateModifiedTimestamp = 0;
$isStandardInput = $pathAndFilename === 'php://stdin';
$isFile = is_file($pathAndFilename);
if ($isStandardInput === false && $isFile === false) {
throw new InvalidTemp... | [
"protected",
"function",
"createIdentifierForFile",
"(",
"$",
"pathAndFilename",
",",
"$",
"prefix",
")",
"{",
"$",
"templateModifiedTimestamp",
"=",
"0",
";",
"$",
"isStandardInput",
"=",
"$",
"pathAndFilename",
"===",
"'php://stdin'",
";",
"$",
"isFile",
"=",
... | Returns a unique identifier for the given file in the format
<PackageKey>_<SubPackageKey>_<ControllerName>_<prefix>_<SHA1>
The SH1 hash is a checksum that is based on the file path and last modification date
@param string $pathAndFilename
@param string $prefix
@return string
@throws InvalidTemplateResourceException | [
"Returns",
"a",
"unique",
"identifier",
"for",
"the",
"given",
"file",
"in",
"the",
"format",
"<PackageKey",
">",
"_<SubPackageKey",
">",
"_<ControllerName",
">",
"_<prefix",
">",
"_<SHA1",
">",
"The",
"SH1",
"hash",
"is",
"a",
"checksum",
"that",
"is",
"bas... | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.FluidAdaptor/Classes/View/TemplatePaths.php#L542-L556 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.remove | public function remove($object)
{
// Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by
// the ResourceManager's deleteResource() method which also calls this remove() function:
if (!$this->removedResources->contains($object)) {
... | php | public function remove($object)
{
// Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by
// the ResourceManager's deleteResource() method which also calls this remove() function:
if (!$this->removedResources->contains($object)) {
... | [
"public",
"function",
"remove",
"(",
"$",
"object",
")",
"{",
"// Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by",
"// the ResourceManager's deleteResource() method which also calls this remove() function:",
"if",
"(",
"!",
"... | Removes a PersistentResource object from this repository
@param object $object
@return void | [
"Removes",
"a",
"PersistentResource",
"object",
"from",
"this",
"repository"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L93-L101 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findByIdentifier | public function findByIdentifier($identifier)
{
$object = $this->persistenceManager->getObjectByIdentifier($identifier, $this->entityClassName);
if ($object === null) {
foreach ($this->addedResources as $addedResource) {
if ($this->persistenceManager->getIdentifierByObjec... | php | public function findByIdentifier($identifier)
{
$object = $this->persistenceManager->getObjectByIdentifier($identifier, $this->entityClassName);
if ($object === null) {
foreach ($this->addedResources as $addedResource) {
if ($this->persistenceManager->getIdentifierByObjec... | [
"public",
"function",
"findByIdentifier",
"(",
"$",
"identifier",
")",
"{",
"$",
"object",
"=",
"$",
"this",
"->",
"persistenceManager",
"->",
"getObjectByIdentifier",
"(",
"$",
"identifier",
",",
"$",
"this",
"->",
"entityClassName",
")",
";",
"if",
"(",
"$... | Finds an object matching the given identifier.
@param mixed $identifier The identifier of the object to find
@return object The matching object if found, otherwise NULL
@api | [
"Finds",
"an",
"object",
"matching",
"the",
"given",
"identifier",
"."
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L121-L134 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findAllIterator | public function findAllIterator()
{
/** @var QueryBuilder $queryBuilder */
$queryBuilder = $this->entityManager->createQueryBuilder();
return $queryBuilder
->select('PersistentResource')
->from($this->getEntityClassName(), 'PersistentResource')
->getQuery(... | php | public function findAllIterator()
{
/** @var QueryBuilder $queryBuilder */
$queryBuilder = $this->entityManager->createQueryBuilder();
return $queryBuilder
->select('PersistentResource')
->from($this->getEntityClassName(), 'PersistentResource')
->getQuery(... | [
"public",
"function",
"findAllIterator",
"(",
")",
"{",
"/** @var QueryBuilder $queryBuilder */",
"$",
"queryBuilder",
"=",
"$",
"this",
"->",
"entityManager",
"->",
"createQueryBuilder",
"(",
")",
";",
"return",
"$",
"queryBuilder",
"->",
"select",
"(",
"'Persisten... | Finds all objects and return an IterableResult
@return IterableResult | [
"Finds",
"all",
"objects",
"and",
"return",
"an",
"IterableResult"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L165-L173 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findByCollectionNameIterator | public function findByCollectionNameIterator($collectionName)
{
/** @var QueryBuilder $queryBuilder */
$queryBuilder = $this->entityManager->createQueryBuilder();
return $queryBuilder
->select('PersistentResource')
->from($this->getEntityClassName(), 'PersistentResour... | php | public function findByCollectionNameIterator($collectionName)
{
/** @var QueryBuilder $queryBuilder */
$queryBuilder = $this->entityManager->createQueryBuilder();
return $queryBuilder
->select('PersistentResource')
->from($this->getEntityClassName(), 'PersistentResour... | [
"public",
"function",
"findByCollectionNameIterator",
"(",
"$",
"collectionName",
")",
"{",
"/** @var QueryBuilder $queryBuilder */",
"$",
"queryBuilder",
"=",
"$",
"this",
"->",
"entityManager",
"->",
"createQueryBuilder",
"(",
")",
";",
"return",
"$",
"queryBuilder",
... | Finds all objects by collection name and return an IterableResult
@param string $collectionName
@return IterableResult | [
"Finds",
"all",
"objects",
"by",
"collection",
"name",
"and",
"return",
"an",
"IterableResult"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L181-L191 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findSimilarResources | public function findSimilarResources(PersistentResource $resource)
{
$query = $this->createQuery();
$query->matching(
$query->logicalAnd(
$query->equals('sha1', $resource->getSha1()),
$query->equals('filename', $resource->getFilename()),
$q... | php | public function findSimilarResources(PersistentResource $resource)
{
$query = $this->createQuery();
$query->matching(
$query->logicalAnd(
$query->equals('sha1', $resource->getSha1()),
$query->equals('filename', $resource->getFilename()),
$q... | [
"public",
"function",
"findSimilarResources",
"(",
"PersistentResource",
"$",
"resource",
")",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"createQuery",
"(",
")",
";",
"$",
"query",
"->",
"matching",
"(",
"$",
"query",
"->",
"logicalAnd",
"(",
"$",
"query"... | Finds other resources which are referring to the same resource data, filename and collection
@param PersistentResource $resource The resource used for finding similar resources
@return QueryResultInterface The result, including the given resource | [
"Finds",
"other",
"resources",
"which",
"are",
"referring",
"to",
"the",
"same",
"resource",
"data",
"filename",
"and",
"collection"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L199-L210 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findBySha1 | public function findBySha1($sha1Hash)
{
$query = $this->createQuery();
$query->matching($query->equals('sha1', $sha1Hash));
$resources = $query->execute()->toArray();
foreach ($this->addedResources as $importedResource) {
if ($importedResource->getSha1() === $sha1Hash) {
... | php | public function findBySha1($sha1Hash)
{
$query = $this->createQuery();
$query->matching($query->equals('sha1', $sha1Hash));
$resources = $query->execute()->toArray();
foreach ($this->addedResources as $importedResource) {
if ($importedResource->getSha1() === $sha1Hash) {
... | [
"public",
"function",
"findBySha1",
"(",
"$",
"sha1Hash",
")",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"createQuery",
"(",
")",
";",
"$",
"query",
"->",
"matching",
"(",
"$",
"query",
"->",
"equals",
"(",
"'sha1'",
",",
"$",
"sha1Hash",
")",
")",
... | Find all resources with the same SHA1 hash
@param string $sha1Hash
@return array | [
"Find",
"all",
"resources",
"with",
"the",
"same",
"SHA1",
"hash"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L218-L230 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findBySha1AndCollectionName | public function findBySha1AndCollectionName($sha1Hash, $collectionName)
{
$query = $this->createQuery();
$query->matching(
$query->logicalAnd(
$query->equals('sha1', $sha1Hash),
$query->equals('collectionName', $collectionName)
)
);
... | php | public function findBySha1AndCollectionName($sha1Hash, $collectionName)
{
$query = $this->createQuery();
$query->matching(
$query->logicalAnd(
$query->equals('sha1', $sha1Hash),
$query->equals('collectionName', $collectionName)
)
);
... | [
"public",
"function",
"findBySha1AndCollectionName",
"(",
"$",
"sha1Hash",
",",
"$",
"collectionName",
")",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"createQuery",
"(",
")",
";",
"$",
"query",
"->",
"matching",
"(",
"$",
"query",
"->",
"logicalAnd",
"(",... | Find all resources with the same SHA1 hash and collection
@param string $sha1Hash
@param string $collectionName
@return array | [
"Find",
"all",
"resources",
"with",
"the",
"same",
"SHA1",
"hash",
"and",
"collection"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L239-L256 |
neos/flow-development-collection | Neos.Flow/Classes/ResourceManagement/ResourceRepository.php | ResourceRepository.findOneBySha1 | public function findOneBySha1($sha1Hash)
{
$query = $this->createQuery();
$query->matching($query->equals('sha1', $sha1Hash))->setLimit(1);
/** @var PersistentResource $resource */
$resource = $query->execute()->getFirst();
if ($resource === null) {
/** @var Persi... | php | public function findOneBySha1($sha1Hash)
{
$query = $this->createQuery();
$query->matching($query->equals('sha1', $sha1Hash))->setLimit(1);
/** @var PersistentResource $resource */
$resource = $query->execute()->getFirst();
if ($resource === null) {
/** @var Persi... | [
"public",
"function",
"findOneBySha1",
"(",
"$",
"sha1Hash",
")",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"createQuery",
"(",
")",
";",
"$",
"query",
"->",
"matching",
"(",
"$",
"query",
"->",
"equals",
"(",
"'sha1'",
",",
"$",
"sha1Hash",
")",
")... | Find one resource by SHA1
@param string $sha1Hash
@return PersistentResource | [
"Find",
"one",
"resource",
"by",
"SHA1"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/ResourceManagement/ResourceRepository.php#L264-L280 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Routing/Dto/UriConstraints.php | UriConstraints.merge | public function merge(UriConstraints $uriConstraints): self
{
$mergedConstraints = array_merge($this->constraints, $uriConstraints->constraints);
return new static($mergedConstraints);
} | php | public function merge(UriConstraints $uriConstraints): self
{
$mergedConstraints = array_merge($this->constraints, $uriConstraints->constraints);
return new static($mergedConstraints);
} | [
"public",
"function",
"merge",
"(",
"UriConstraints",
"$",
"uriConstraints",
")",
":",
"self",
"{",
"$",
"mergedConstraints",
"=",
"array_merge",
"(",
"$",
"this",
"->",
"constraints",
",",
"$",
"uriConstraints",
"->",
"constraints",
")",
";",
"return",
"new",... | Merge two instances of UriConstraints
Constraints of the given $uriConstraints instance will overrule similar constraints of this instance
@param UriConstraints $uriConstraints
@return UriConstraints | [
"Merge",
"two",
"instances",
"of",
"UriConstraints",
"Constraints",
"of",
"the",
"given",
"$uriConstraints",
"instance",
"will",
"overrule",
"similar",
"constraints",
"of",
"this",
"instance"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Routing/Dto/UriConstraints.php#L75-L79 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Routing/Dto/UriConstraints.php | UriConstraints.withScheme | public function withScheme(string $scheme): self
{
$newConstraints = $this->constraints;
$newConstraints[self::CONSTRAINT_SCHEME] = $scheme;
return new static($newConstraints);
} | php | public function withScheme(string $scheme): self
{
$newConstraints = $this->constraints;
$newConstraints[self::CONSTRAINT_SCHEME] = $scheme;
return new static($newConstraints);
} | [
"public",
"function",
"withScheme",
"(",
"string",
"$",
"scheme",
")",
":",
"self",
"{",
"$",
"newConstraints",
"=",
"$",
"this",
"->",
"constraints",
";",
"$",
"newConstraints",
"[",
"self",
"::",
"CONSTRAINT_SCHEME",
"]",
"=",
"$",
"scheme",
";",
"return... | Create a new instance with the scheme constraint added
@param string $scheme The URI scheme to force, usually "http" or "https"
@return UriConstraints | [
"Create",
"a",
"new",
"instance",
"with",
"the",
"scheme",
"constraint",
"added"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Routing/Dto/UriConstraints.php#L87-L92 |
neos/flow-development-collection | Neos.Flow/Classes/Mvc/Routing/Dto/UriConstraints.php | UriConstraints.withHost | public function withHost(string $host): self
{
$newConstraints = $this->constraints;
$newConstraints[self::CONSTRAINT_HOST] = $host;
return new static($newConstraints);
} | php | public function withHost(string $host): self
{
$newConstraints = $this->constraints;
$newConstraints[self::CONSTRAINT_HOST] = $host;
return new static($newConstraints);
} | [
"public",
"function",
"withHost",
"(",
"string",
"$",
"host",
")",
":",
"self",
"{",
"$",
"newConstraints",
"=",
"$",
"this",
"->",
"constraints",
";",
"$",
"newConstraints",
"[",
"self",
"::",
"CONSTRAINT_HOST",
"]",
"=",
"$",
"host",
";",
"return",
"ne... | Create a new instance with the host constraint added
@param string $host The URI host part to force, for example "neos.io"
@return UriConstraints | [
"Create",
"a",
"new",
"instance",
"with",
"the",
"host",
"constraint",
"added"
] | train | https://github.com/neos/flow-development-collection/blob/a4484ef2a57e050dc9bd87c8481eeb250c7a36fa/Neos.Flow/Classes/Mvc/Routing/Dto/UriConstraints.php#L100-L105 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.