code
stringlengths
15
9.96M
docstring
stringlengths
1
10.1k
func_name
stringlengths
1
124
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
6
186
url
stringlengths
50
236
license
stringclasses
4 values
public function parse(Token $token) { parent::parse($token); $values = explode('->', $token->getValue()); if (2 !== count($values)) { throw ExpressionLanguageExceptionFactory::createForUnparsableToken($token); } $fixture = $this->parser->parse($values[0]); $method = $this->parser->parse(sprintf('<%s>', $values[1])); try { return new FixtureMethodCallValue($fixture, $method); } catch (TypeError $exception) { throw ExpressionLanguageExceptionFactory::createForUnparsableToken($token, 0, $exception); } }
Parses expressions such as "@username->getName()". @throws ParseException
parse
php
nelmio/alice
src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureMethodReferenceTokenParser.php
https://github.com/nelmio/alice/blob/master/src/FixtureBuilder/ExpressionLanguage/Parser/TokenParser/Chainable/FixtureMethodReferenceTokenParser.php
MIT
public function __construct(FlagParserInterface $flagParser, array $denormalizers) { foreach ($denormalizers as $index => $denormalizer) { if (false === $denormalizer instanceof ChainableFixtureDenormalizerInterface) { throw TypeErrorFactory::createForInvalidDenormalizerType($index, $denormalizer); } if ($denormalizer instanceof FixtureDenormalizerAwareInterface) { $denormalizer = $denormalizer->withFixtureDenormalizer($this); } if ($denormalizer instanceof FlagParserAwareInterface) { $denormalizer = $denormalizer->withFlagParser($flagParser); } $this->denormalizers[] = $denormalizer; } }
@param ChainableFixtureDenormalizerInterface[] $denormalizers
__construct
php
nelmio/alice
src/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistry.php
https://github.com/nelmio/alice/blob/master/src/FixtureBuilder/Denormalizer/Fixture/FixtureDenormalizerRegistry.php
MIT
public function __construct(CallsDenormalizerInterface $callsDenormalizer, array $methodFlagHandlers) { $this->callsDenormalizer = $callsDenormalizer; $this->methodFlagHandlers = (static fn (MethodFlagHandler ...$handlers) => $handlers)(...$methodFlagHandlers); }
@param MethodFlagHandler[] $methodFlagHandlers
__construct
php
nelmio/alice
src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/CallsWithFlagsDenormalizer.php
https://github.com/nelmio/alice/blob/master/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Calls/CallsWithFlagsDenormalizer.php
MIT
private function parseValue(ParserInterface $parser, string $value) { try { return $parser->parse($value); } catch (ParseThrowable $throwable) { throw DenormalizerExceptionFactory::createForUnparsableValue($value, 0, $throwable); } }
@return mixed|ValueInterface
parseValue
php
nelmio/alice
src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/SimpleValueDenormalizer.php
https://github.com/nelmio/alice/blob/master/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/SimpleValueDenormalizer.php
MIT
public function denormalize(FixtureInterface $scope, ?FlagBag $flags, $value) { $value = $this->denormalizer->denormalize($scope, $flags, $value); if (false === $this->requiresUnique($flags)) { return $value; } return $this->generateValue($scope, $flags, $value); }
@param mixed $value @throws InvalidScopeException
denormalize
php
nelmio/alice
src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/UniqueValueDenormalizer.php
https://github.com/nelmio/alice/blob/master/src/FixtureBuilder/Denormalizer/Fixture/SpecificationBagDenormalizer/Value/UniqueValueDenormalizer.php
MIT
public function __construct(array $parsers) { $this->parsers = ( static fn (ChainableFlagParserInterface ...$parsers) => $parsers )(...$parsers); }
@param ChainableFlagParserInterface[] $parsers
__construct
php
nelmio/alice
src/FixtureBuilder/Denormalizer/FlagParser/FlagParserRegistry.php
https://github.com/nelmio/alice/blob/master/src/FixtureBuilder/Denormalizer/FlagParser/FlagParserRegistry.php
MIT
protected function getSeed() { return 1; }
Seed used to generate random data. The seed is passed to the random number generator, so calling the a script twice with the same seed produces the same results. @return int|null
getSeed
php
nelmio/alice
src/Loader/NativeLoader.php
https://github.com/nelmio/alice/blob/master/src/Loader/NativeLoader.php
MIT
public static function identity($expression) { return $expression; }
Returns whatever is passed to it. This allows you among other things to use a PHP expression while still benefiting from variable replacement. @param mixed $expression
identity
php
nelmio/alice
src/Faker/Provider/AliceProvider.php
https://github.com/nelmio/alice/blob/master/src/Faker/Provider/AliceProvider.php
MIT
public static function current(FixtureInterface $fixture) { return $fixture->getValueForCurrent(); }
@return string
current
php
nelmio/alice
src/Faker/Provider/AliceProvider.php
https://github.com/nelmio/alice/blob/master/src/Faker/Provider/AliceProvider.php
MIT
public function __construct(string $id, $instance) { $this->id = $id; $this->instance = deep_clone($instance); }
@param object $instance
__construct
php
nelmio/alice
fixtures/Definition/Object/ImmutableObject.php
https://github.com/nelmio/alice/blob/master/fixtures/Definition/Object/ImmutableObject.php
MIT
public function withFixtureDenormalizer(FixtureDenormalizerInterface $denormalizer) { $this->denormalizer = $denormalizer; return $this; }
@return static
withFixtureDenormalizer
php
nelmio/alice
fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizerAwareDenormalizer.php
https://github.com/nelmio/alice/blob/master/fixtures/FixtureBuilder/Denormalizer/Fixture/Chainable/FakeChainableDenormalizerAwareDenormalizer.php
MIT
private static function getList($name) { if (null === self::$references) { new self(); } return self::$references[$name]; }
@param string $name @return array
getList
php
nelmio/alice
tests/FixtureBuilder/Denormalizer/Fixture/Reference.php
https://github.com/nelmio/alice/blob/master/tests/FixtureBuilder/Denormalizer/Fixture/Reference.php
MIT
function linux() { compile(fn () => run('vendor/bin/box compile -c box.linux-amd64.json')); compile(fn () => run('vendor/bin/box compile -c box.linux-arm64.json')); }
[AsTask(description: 'Build phar for Linux system')]
linux
php
jolicode/castor
tools/phar/castor.php
https://github.com/jolicode/castor/blob/master/tools/phar/castor.php
MIT
function darwin() { compile(fn () => run('vendor/bin/box compile -c box.darwin-amd64.json')); compile(fn () => run('vendor/bin/box compile -c box.darwin-arm64.json')); }
[AsTask(description: 'Build phar for MacOS system')]
darwin
php
jolicode/castor
tools/phar/castor.php
https://github.com/jolicode/castor/blob/master/tools/phar/castor.php
MIT
function windows() { compile(fn () => run('vendor/bin/box compile -c box.windows-amd64.json')); }
[AsTask(description: 'Build phar for Windows system')]
windows
php
jolicode/castor
tools/phar/castor.php
https://github.com/jolicode/castor/blob/master/tools/phar/castor.php
MIT
function build() { parallel(linux(...), darwin(...), windows(...)); }
[AsTask(description: 'Build phar for all systems')]
build
php
jolicode/castor
tools/phar/castor.php
https://github.com/jolicode/castor/blob/master/tools/phar/castor.php
MIT
function linux() { run('bin/castor compile tools/phar/build/castor.linux-amd64.phar --os=linux --arch=x86_64 --binary-path=castor.linux-amd64 --php-extensions=mbstring,phar,posix,tokenizer,pcntl,curl,filter,openssl,sodium,ctype,zip,bz2', timeout: 0); }
Extensions should be in sync with .github/actions/cache/action.yaml [AsTask(description: 'Build static binary for Linux system')]
linux
php
jolicode/castor
tools/static/castor.php
https://github.com/jolicode/castor/blob/master/tools/static/castor.php
MIT
function darwinAmd64() { run('bin/castor compile tools/phar/build/castor.darwin-amd64.phar --os=macos --arch=x86_64 --binary-path=castor.darwin-amd64 --php-extensions=mbstring,phar,posix,tokenizer,pcntl,curl,filter,openssl,sodium,ctype,zip,bz2', timeout: 0); }
[AsTask(description: 'Build static binary for MacOS (amd64) system')]
darwinAmd64
php
jolicode/castor
tools/static/castor.php
https://github.com/jolicode/castor/blob/master/tools/static/castor.php
MIT
function darwinArm64() { run('bin/castor compile tools/phar/build/castor.darwin-arm64.phar --os=macos --arch=aarch64 --binary-path=castor.darwin-arm64 --php-extensions=mbstring,phar,posix,tokenizer,pcntl,curl,filter,openssl,sodium,ctype,zip,bz2', timeout: 0); }
[AsTask(description: 'Build static binary for MacOS (arm64) system')]
darwinArm64
php
jolicode/castor
tools/static/castor.php
https://github.com/jolicode/castor/blob/master/tools/static/castor.php
MIT
public function __construct( public readonly array $data = [], public readonly array $environment = [], ?string $workingDirectory = null, public readonly bool $tty = false, public readonly bool $pty = true, public readonly ?float $timeout = null, public readonly bool $quiet = false, public readonly bool $allowFailure = false, public readonly ?bool $notify = null, public readonly VerbosityLevel|LegacyVerbosityLevel $verbosityLevel = VerbosityLevel::NOT_CONFIGURED, /** * @internal * Do not use this argument, it is only used internally by the application */ public readonly string $name = '', public readonly string $notificationTitle = '', public readonly array $verboseArguments = [], ) { $this->workingDirectory = $workingDirectory ?? PathHelper::getRoot(); }
@phpstan-param ContextData $data The input parameter accepts an array or an Object @param array<string, string|\Stringable|int> $environment A list of environment variables to add to the task @param string[] $verboseArguments A list of arguments to pass to the command to enable verbose output
__construct
php
jolicode/castor
src/Context.php
https://github.com/jolicode/castor/blob/master/src/Context.php
MIT
public function __construct( public array $taskDescriptors, public array $symfonyTaskDescriptors, ) { }
@param list<TaskDescriptor> $taskDescriptors @param list<SymfonyTaskDescriptor> $symfonyTaskDescriptors
__construct
php
jolicode/castor
src/Event/FunctionsResolvedEvent.php
https://github.com/jolicode/castor/blob/master/src/Event/FunctionsResolvedEvent.php
MIT
public function enterNode(Node $node) { if ($node instanceof Namespace_) { // Remove comments at namespace level $node->setAttribute('comments', null); } if ($node instanceof ClassLike || $node instanceof Function_ || $node instanceof ClassMethod) { $docComment = $node->getDocComment(); // Remove internal classes and functions if (null !== $docComment && str_contains($docComment->getText(), '@internal')) { if ($node instanceof ClassMethod || !$node->namespacedName || !\in_array($node->namespacedName->toString(), self::INTERNAL_CLASSES_FORCED, true)) { return self::REMOVE_NODE; } } $this->replaceRelativeClassNameByFqcInPhpdoc($node); } if ($node instanceof Interface_) { $this->inInterface = true; } // Empty functions body if ($node instanceof Function_) { $node->stmts = []; } // Empty class/interface methods body if ($node instanceof ClassMethod) { if ($this->inInterface || $node->isAbstract()) { $node->stmts = null; } else { $node->stmts = []; } } return null; }
@return int|Node|null
enterNode
php
jolicode/castor
src/Stub/NodeVisitor.php
https://github.com/jolicode/castor/blob/master/src/Stub/NodeVisitor.php
MIT
public function leaveNode(Node $node, bool $preserveStack = false) { // Remove "use" statements if ($node instanceof Use_) { return self::REMOVE_NODE; } if ($node instanceof Interface_) { $this->inInterface = false; } // Remove private class members if (($node instanceof ClassMethod || $node instanceof ClassConst || $node instanceof Property) && $node->isPrivate() ) { return self::REMOVE_NODE; } return null; }
@return int|Node|Node[]|null
leaveNode
php
jolicode/castor
src/Stub/NodeVisitor.php
https://github.com/jolicode/castor/blob/master/src/Stub/NodeVisitor.php
MIT
public function enterNode(Node $node) { // Merge namespaces with the same name together if ($node instanceof Namespace_) { $currentNamespace = $node->name ? $node->name->toString() : null; if (!$currentNamespace) { return null; } $existingNode = $this->nodesByNamespace[$currentNamespace] ?? null; if ($existingNode) { $existingNode->stmts = array_merge($existingNode->stmts, $node->stmts); return self::REMOVE_NODE; } $this->nodesByNamespace[$currentNamespace] = $node; } return null; }
@return int|Node|null
enterNode
php
jolicode/castor
src/Stub/CleanVisitor.php
https://github.com/jolicode/castor/blob/master/src/Stub/CleanVisitor.php
MIT
public function afterTraverse(array $nodes) { $cleanedNodes = []; foreach ($nodes as $node) { // If namespace is empty, let's remove it if ($node instanceof Namespace_) { $stmts = array_filter($node->stmts, static fn (Node $stmt): bool => !$stmt instanceof Use_); if (!$stmts) { continue; } $cleanedNodes[] = $node; } } return $cleanedNodes; }
@return Node[]|null
afterTraverse
php
jolicode/castor
src/Stub/CleanVisitor.php
https://github.com/jolicode/castor/blob/master/src/Stub/CleanVisitor.php
MIT
public function __construct( public readonly AsContextGenerator $contextAttribute, public readonly \ReflectionFunction $function, public readonly array $generators, ) { }
@param array<\Closure(): Context> $generators
__construct
php
jolicode/castor
src/Descriptor/ContextGeneratorDescriptor.php
https://github.com/jolicode/castor/blob/master/src/Descriptor/ContextGeneratorDescriptor.php
MIT
public function __construct( public array $contextDescriptors, public array $contextGeneratorDescriptors, public array $listenerDescriptors, public array $taskDescriptors, public array $symfonyTaskDescriptors, ) { }
@param list<ContextDescriptor> $contextDescriptors @param list<ContextGeneratorDescriptor> $contextGeneratorDescriptors @param list<ListenerDescriptor> $listenerDescriptors @param list<TaskDescriptor> $taskDescriptors @param list<SymfonyTaskDescriptor> $symfonyTaskDescriptors
__construct
php
jolicode/castor
src/Descriptor/DescriptorsCollection.php
https://github.com/jolicode/castor/blob/master/src/Descriptor/DescriptorsCollection.php
MIT
public function __construct( public readonly AsSymfonyTask $taskAttribute, public readonly \ReflectionClass $function, public readonly array $definition, ) { }
@param mixed[] $definition
__construct
php
jolicode/castor
src/Descriptor/SymfonyTaskDescriptor.php
https://github.com/jolicode/castor/blob/master/src/Descriptor/SymfonyTaskDescriptor.php
MIT
public function __construct( public readonly array $taskDescriptors = [], public readonly array $symfonyTaskDescriptors = [], ) { }
@param list<TaskDescriptor> $taskDescriptors @param list<SymfonyTaskDescriptor> $symfonyTaskDescriptors
__construct
php
jolicode/castor
src/Descriptor/TaskDescriptorCollection.php
https://github.com/jolicode/castor/blob/master/src/Descriptor/TaskDescriptorCollection.php
MIT
private function __construct( public readonly AsSymfonyTask $taskAttribute, public readonly \ReflectionClass $class, public readonly array $definition, ) { parent::__construct($taskAttribute->name); }
@param mixed[] $definition
__construct
php
jolicode/castor
src/Console/Command/SymfonyTaskCommand.php
https://github.com/jolicode/castor/blob/master/src/Console/Command/SymfonyTaskCommand.php
MIT
public function __construct( ?string $name = null, public readonly string|array|null $shortcut = null, public readonly ?int $mode = null, public readonly string $description = '', /** @deprecated since Castor 0.18, use "autocomplete" property instead */ public readonly array $suggestedValues = [], public readonly mixed $autocomplete = null, ) { parent::__construct($name); }
@param string|array<string>|null $shortcut @param array<string> $suggestedValues @param array<string>|callable(CompletionInput): array<string> $autocomplete
__construct
php
jolicode/castor
src/Attribute/AsOption.php
https://github.com/jolicode/castor/blob/master/src/Attribute/AsOption.php
MIT
public function __construct( ?string $name = null, string|array|null $shortcut = null, ?int $mode = null, string $description = '', ) { parent::__construct($name, $shortcut, $mode, $description); }
@param string|array<string>|null $shortcut
__construct
php
jolicode/castor
src/Attribute/AsPathOption.php
https://github.com/jolicode/castor/blob/master/src/Attribute/AsPathOption.php
MIT
public function __construct( public ?string $name = null, public ?string $originalName = null, public readonly array $console = [\PHP_BINARY, 'bin/console'], ) { }
@param string[] $console How to start the Symfony application
__construct
php
jolicode/castor
src/Attribute/AsSymfonyTask.php
https://github.com/jolicode/castor/blob/master/src/Attribute/AsSymfonyTask.php
MIT
public function __construct( ?string $name = null, public readonly string $description = '', /** @deprecated since Castor 0.18, use "autocomplete" property instead */ public readonly array $suggestedValues = [], public readonly mixed $autocomplete = null, ) { parent::__construct($name); }
@param array<string> $suggestedValues @param array<string>|callable(CompletionInput): array<string> $autocomplete
__construct
php
jolicode/castor
src/Attribute/AsArgument.php
https://github.com/jolicode/castor/blob/master/src/Attribute/AsArgument.php
MIT
public function __construct( public string $name = '', public ?string $namespace = null, public string $description = '', public array $aliases = [], public array $onSignals = [], public string|bool $enabled = true, public bool $ignoreValidationErrors = false, public bool $default = false, ) { }
@param array<string> $aliases @param array<int, callable(int): (int|false)> $onSignals
__construct
php
jolicode/castor
src/Attribute/AsTask.php
https://github.com/jolicode/castor/blob/master/src/Attribute/AsTask.php
MIT
public function userUid($response) { return $response->id; }
@see AbstractProvider::userUid
userUid
php
basvandorst/StravaPHP
src/Strava/API/OAuth.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/OAuth.php
MIT
public function userEmail($response) { return isset($response->email) && $response->email ? $response->email : null; }
@see AbstractProvider::userEmail
userEmail
php
basvandorst/StravaPHP
src/Strava/API/OAuth.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/OAuth.php
MIT
protected function checkResponse(ResponseInterface $response, $data) { }
@see AbstractProvider::checkResponse
checkResponse
php
basvandorst/StravaPHP
src/Strava/API/OAuth.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/OAuth.php
MIT
protected function createResourceOwner(array $response, AccessToken $token) { throw new RuntimeException('Not implemented'); }
@see AbstractProvider::createResourceOwner
createResourceOwner
php
basvandorst/StravaPHP
src/Strava/API/OAuth.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/OAuth.php
MIT
public function __construct(ServiceInterface $service) { $this->service = $service; }
Initiate this class with a subclass of ServiceInterface. There are two service subclasses available: - Service\REST: Service which makes calls to the live Strava API - Service\Stub: Service stub for test purposes (unit tests)
__construct
php
basvandorst/StravaPHP
src/Strava/API/Client.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/Client.php
MIT
public function __construct($token, Client $adapter, int $responseVerbosity = 0) { if (is_object($token) && method_exists($token, 'getToken')) { $token = $token->getToken(); } $this->token = $token; $this->adapter = $adapter; $this->responseVerbosity = $responseVerbosity; }
Initiate this REST service with the application token, a instance of the REST adapter (Guzzle) and a level of verbosity for the response. @param string|AccessTokenInterface $token @param Client $adapter @param int $responseVerbosity
__construct
php
basvandorst/StravaPHP
src/Strava/API/Service/REST.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/Service/REST.php
MIT
protected function getResult($response) { // Workaround for export methods getRouteAsGPX, getRouteAsTCX: if (is_string($response)) { return $response; } $status = $response->getStatusCode(); $expandedResponse = []; $expandedResponse['headers'] = $response->getHeaders(); $expandedResponse['body'] = json_decode($response->getBody(), true); $expandedResponse['success'] = $status === 200 || $status === 201; $expandedResponse['status'] = $status; return $expandedResponse; }
Get a request result. Returns an array with a response body or and error code => reason. @param ResponseInterface|string $response @return array|string
getResult
php
basvandorst/StravaPHP
src/Strava/API/Service/REST.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/Service/REST.php
MIT
protected function getResponse(string $method, string $path, array $parameters) { try { $response = $this->adapter->request($method, $path, $parameters); $result = $this->getResult($response); if ($this->responseVerbosity === 0 && !is_string($result)) { return $result["body"]; } return $result; } catch (\Exception $e) { throw new Exception('[SERVICE] ' . $e->getMessage()); } }
Get an API request response and handle possible exceptions. @param string $method @param string $path @param array $parameters @return array|mixed|string @throws \GuzzleHttp\Exception\GuzzleException|Exception
getResponse
php
basvandorst/StravaPHP
src/Strava/API/Service/REST.php
https://github.com/basvandorst/StravaPHP/blob/master/src/Strava/API/Service/REST.php
MIT
function event_active(string $event) { global $event_expires; if (!isset($event_expires[$event])) { return false; } $dates = $event_expires[$event]; $date = new DateTime("now"); if ($date > $dates[0] && $date < $dates[1]) { return true; } return false; }
event_active Checks if an event is past the expiration date @param {String} $event - Name of event to check for @return {Boolean} - True if event is currently active
event_active
php
elementary/website
_backend/event.php
https://github.com/elementary/website/blob/master/_backend/event.php
MIT
function event_cookie_encode(string $text) { return urlencode('event_' . str_replace([' ', '.', '/'], '_', $text)); }
event_cookie_encode Encodes text to be used in cookie storage @param {String} $text - String to encode for use in cookie @return {String} - Text to use in cookie
event_cookie_encode
php
elementary/website
_backend/event.php
https://github.com/elementary/website/blob/master/_backend/event.php
MIT
function event_cookie_set(string $event, $value) { $string = event_cookie_encode($event); $expires = time() + 60 * 60 * 24 * 365; // One year in the future return setcookie($string, $value, $expires, '/', '', false, true); }
event_cookie_set Sets an event cookie to value @param {String} $event - Name of event to set for @param {*} $value - Value of cookie @return {Boolean} - True if cookie was set
event_cookie_set
php
elementary/website
_backend/event.php
https://github.com/elementary/website/blob/master/_backend/event.php
MIT
function event_cookie_get(string $event) { $string = event_cookie_encode($event); if (isset($_COOKIE[$string])) { return $_COOKIE[$string]; } return null; }
event_cookie_get Returns the amount paid for a release version @param {String} $event - Name of event to get cookie for @return {*} - Value of event cookie
event_cookie_get
php
elementary/website
_backend/event.php
https://github.com/elementary/website/blob/master/_backend/event.php
MIT
function getIPHash($hostname, $debug = false) { $hash = array_sum(str_split($hostname)); if ($debug) { echo 'Hash: "'.$hash.'"'."\n"; } $hash = $hash % 10; if ($debug) { echo 'Remainder: "'.$hash.'"'."\n"; } if ($hash > 5) { return 0; } else { return 1; } }
// getIPHash Hashes the given IP to return either a 0 or a 1 consistently for the same IP. Used when balancing between two regions returned by getDownloadRegion.
getIPHash
php
elementary/website
_backend/geolocate.functions.php
https://github.com/elementary/website/blob/master/_backend/geolocate.functions.php
MIT
function os_payment_encode(string $text) { return urlencode(str_replace([' ', '.'], '_', $text)); }
os_payment_encode Encodes text to be used in cookie storage @param {String} $text - String to encode for use in cookie @return {String} - Text to use in cookie
os_payment_encode
php
elementary/website
_backend/os-payment.php
https://github.com/elementary/website/blob/master/_backend/os-payment.php
MIT
function os_payment_setcookie(string $version, int $amount) { $string = os_payment_encode('os_payment_' . $version); $expires = time() + 60 * 60 * 24 * 365; // One year in the future return setcookie($string, $amount, $expires, '/', '', false, true); }
os_payment_setcookie Sets the payment cookie for a given release version @param {String} $version - Version of release to set cookie for @param {Number} $amount - Amount paid for release @return {Boolean} - True if cookie was set
os_payment_setcookie
php
elementary/website
_backend/os-payment.php
https://github.com/elementary/website/blob/master/_backend/os-payment.php
MIT
function os_payment_getcookie(string $version) { // DEPRECATED: this is the old version of cookie naming if (!isset($version) || $version === '') { $string = os_payment_encode('has_paid_' . $config['release_title'] . '_' . $config['release_version']); if (isset($_COOKIE[$string])) { return intval($_COOKIE[$string]); } } // DEPRECATED: all deprecated variables can be removed next version release $string = os_payment_encode('os_payment_' . $version); $deprecated_string = os_payment_encode('has_paid_Loki_' . $version); if (isset($_COOKIE[$string])) { return intval($_COOKIE[$string]); } if (isset($_COOKIE[$deprecated_string])) { return intval($_COOKIE[$deprecated_string]); } return 0; }
os_payment_getcookie Returns the amount paid for a release version @param {String} $version - Version of release to get cookie for @return {Number} - Amount paid for release, 0 for not paid
os_payment_getcookie
php
elementary/website
_backend/os-payment.php
https://github.com/elementary/website/blob/master/_backend/os-payment.php
MIT
function log_echo($msg, $echo = false) { error_log($msg); \Sentry\captureMessage($msg); if ($echo) { echo $msg.PHP_EOL; } }
Log an error and also echo it.
log_echo
php
elementary/website
_backend/log-echo.php
https://github.com/elementary/website/blob/master/_backend/log-echo.php
MIT
function captureTranslations($id, $domain, $string) { global $currentTranslations, $currentUrl; if ($domain !== $currentUrl) { return; } if (empty($id)) { return; } if (is_numeric($id) || ctype_punct($id)) { return; } if (isset($currentTranslations[$id])) { return; } $currentTranslations[$id] = $string; }
captureTranslations L10n translation callback @param string $id The source string @param string $domain The translation domain @param string $string The translation string @return Void
captureTranslations
php
elementary/website
_backend/Console/Extract.php
https://github.com/elementary/website/blob/master/_backend/Console/Extract.php
MIT
function translateMarkdown($path, $domain) { global $l10n; $markdown = file_get_contents($path); $parsedown = new ParsedownExtra(); $html = $parsedown->text($markdown); $html = str_replace('⌘', '&#8984;', $html); $l10n->setDomain($domain); $l10n->translateHtml($html, '\App\Console\captureTranslations'); }
translateMarkdown Translates a page of markdown @param string $path Path to markdown file @param string $domain Page URL without extension @return void All translations kept in $currentTranslations array
translateMarkdown
php
elementary/website
_backend/Console/Extract.php
https://github.com/elementary/website/blob/master/_backend/Console/Extract.php
MIT
public static function pages() { $rootDirectory = static::$directory . '/..'; $files = array_merge( glob($rootDirectory . '/*.{php,md}', GLOB_BRACE), glob($rootDirectory . '/docs/*.md'), glob($rootDirectory . '/docs/code/*.md'), glob($rootDirectory . '/store/*.php'), glob($rootDirectory . '/_templates/*.php') ); $pages = array(); foreach ($files as $file) { $blacklisted = false; foreach (static::$blacklistedPages as $reg) { if (preg_match($reg, $file)) { $blacklisted = true; } } if ($blacklisted === false) { $pages[] = $file; } } return $pages; }
pages Returns a list of pages that we can translate. @return array A list of pages we can translate
pages
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public static function languageDirectory($lang) { return realpath(static::$directory . '/' . $lang); }
languageDirectory Returns the directory for a language @param string $lang The language code @return string Directory the language files are in
languageDirectory
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public function langDir($lang) { return static::languageDirectory($lang); }
DEPRECATED: use the static function instead
langDir
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public function translate($id, $domain = null, $string = null) { if (empty($domain)) { $domain = $this->domain; } if (empty($string)) { $string = $id; } if (!isset($this->translations[$domain])) { $this->loadDomain($domain); } // Remove newlines and normalize spaces for matching $processedId = str_replace(["\r\n", "\n"], " ", $id); $processedId = preg_replace('/\s+/', ' ', $processedId); if (isset($this->translations[$domain][$processedId]) && is_string($this->translations[$domain][$processedId]) && ($this->translations[$domain][$processedId] !== "")) { return $this->translations[$domain][$processedId]; } else { return $string; } }
Translate a string. Returns the original string if no translation was found.
translate
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public function translateHtml($input, $translate = null) { if (empty($translate)) { $translate = array($this, 'translate'); } $output = ''; // Output HTML string // Tags that doesn't contain translatable text $tagsBlacklist = array('script', 'style', 'kbd', 'code'); // Attributes that can be translated $attrsWhitelist = array( 'input' => array('placeholder', 'value', 'title'), 'a' => array('title'), 'img' => array('alt') ); // Tags included in translation strings when used in <p>, <hX> or <li> $ignoredTags = array('a', 'kbd', 'strong', 'em', 'code', 'sup', 'sub'); // Begin parsing input HTML $i = 0; $tagName = ''; $l10nId = ''; $l10nDisabled = false; while ($i < strlen($input)) { $char = $input[$i]; // Current char if ($char == '<') { // Tag node (<HERE>) $next = strpos($input, '>', $i); $tag = substr($input, $i + 1, $next - $i - 1); // Parse <tag> $attrsStart = strpos($tag, ' '); if ($attrsStart !== false) { // There are attributes specified $tagName = substr($tag, 0, $attrsStart); $attrs = substr($tag, $attrsStart + 1); // Parse attributes only if it's interesting // (translatable attributes or data-l10n-* attributes) if (isset($attrsWhitelist[$tagName]) || strpos($attrs, 'data-l10n-') !== false) { // Attributes that can be translated in this tag if (isset($attrsWhitelist[$tagName])) { $allowedAttrs = $attrsWhitelist[$tagName]; } else { $allowedAttrs = array(); } $tag = substr($tag, 0, $attrsStart + 1); // Parse attributes $j = 0; while ($j < strlen($attrs)) { $char = $attrs[$j]; if ($j == 0 || $char == ' ') { if ($char == ' ') { $j++; } // Extract attribute name and value $nameEnd = strpos($attrs, '=', $j); if ($nameEnd === false) { // In case the last attribute is a boolean one (without value, e.g. <input disabled>) $boolAttrName = substr($attrs, $j); if (preg_match('#^[a-zA-Z0-9-]+$#', $boolAttrName)) { $valueEnd = $j + strlen($boolAttrName); $name = $boolAttrName; $value = true; } else { break; } } else { $valueEnd = strpos($attrs, '"', $nameEnd + 2); if ($valueEnd === false) { break; } $name = substr($attrs, $j, $nameEnd - $j); $value = substr($attrs, $nameEnd + 2, $valueEnd - ($nameEnd + 2)); } if ($name == 'data-l10n-id') { // Set translation ID for this tag $l10nId = $value; } if ($name == 'data-l10n-off') { // Disable translation for this tag $l10nDisabled = true; } if ($name == 'type' && $value == 'hidden') { $l10nDisabled = true; } if (in_array($name, $allowedAttrs) && !$l10nDisabled) { // Translate attribute $tag .= ' '.$name.'="'.$translate($value, $this->domain, $value).'"'; } else { $tag .= ' '.substr($attrs, $j, $valueEnd - $j + 1); } $j = $valueEnd + 1; } else { break; } } if ($j < strlen($attrs)) { // Broke inside the loop, append the remaining chars $tag .= substr($attrs, $j); } } } elseif (rtrim($tag, '/ ') != 'br') { // No attributes in this tag // Set current tag, if not a line break $tagName = $tag; } $output .= '<'.$tag.'>'; } else { // Text node (<tag>HERE</tag>) $next = strpos($input, '<', $i); if ($next === false) { // End Of File $next = strlen($input); } elseif ($tagName == 'p' || $tagName == 'li' || preg_match('#^h[1-6]$#', $tagName)) { // Do not process ignored tags in <p>, <hX> and <li> $originalNext = $next; $ignoredCount = 0; do { $found = false; foreach ($ignoredTags as $ignoredTag) { if (substr($input, $next + 1, strlen($ignoredTag)) == $ignoredTag) { $nextChar = $input[$next + strlen($ignoredTag) + 1]; if ($nextChar == '>' || $nextChar == ' ') { $tagEnd = strpos($input, '</'.$ignoredTag.'>', $next); $next = strpos($input, '<', $tagEnd + 1); $ignoredCount++; $found = true; break; } } } } while ($found); // Just one link in the <p> ? Don't ignore it. if ($ignoredCount == 1 && substr($input, $originalNext, 3) == '<a ' && substr($input, $next - 4, 4) == '</a>') { $next = $originalNext; } } elseif (in_array($tagName, $tagsBlacklist)) { // Avoid some bugs when < and > are present in script/style tags $closeTag = '</'.$tagName.'>'; while (substr($input, $next, strlen($closeTag)) != $closeTag) { $next = strpos($input, '<', $next + 1); } } // Extract text to translate $text = substr($input, $i + 1, $next - $i - 1); if ((!in_array($tagName, $tagsBlacklist) || !empty($l10nId)) && !$l10nDisabled) { $cleanedText = trim($text); if (!empty($cleanedText) || !empty($l10nId)) { if (empty($l10nId)) { // data-l10n-id attribute not set, use text as ID $l10nId = $cleanedText; } // Properly re-inject whitespaces $text = substr($text, 0, strpos($text, $cleanedText[0])) . $translate($l10nId, $this->domain, $cleanedText) . substr($text, strrpos($text, substr($cleanedText, -1)) + 1); } } $output .= $text; // Append text to output // Reset per-tag vars $l10nId = ''; $l10nDisabled = false; } $i = $next; // Jump to next interesting char } return $output; }
Translate a HTML string. This includes a minimalist XML parser. Can be provided a $translate callback to override default behaviour. (Useful to extract strings from a file for instance.)
translateHtml
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public function beginHtmlTranslation() { if (defined('HTML_I18N')) { // Do not allow nested output buffering return; } define('HTML_I18N', 1); ob_start(function ($input) { return $this->translateHtml($input); }); }
Begin to translate outputted HTML.
beginHtmlTranslation
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public function endHtmlTranslation() { if (!ob_get_level()) { return; } ob_end_flush(); }
End outputted HTML translation.
endHtmlTranslation
php
elementary/website
_backend/Lib/L10n.php
https://github.com/elementary/website/blob/master/_backend/Lib/L10n.php
MIT
public function __construct(StoreInterface $store) { $this->store = $store; }
Creates a new cache using the given storage interface. @param StoreInterface
__construct
php
elementary/website
_backend/Lib/Cache/Cache.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Cache.php
MIT
public function get($key, $default = null) { $value = $this->store->get($key); if ($value != null) { return $value; } return $default; }
Gets a value from the cache. @param string $key @param mixed $default @return mixed
get
php
elementary/website
_backend/Lib/Cache/Cache.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Cache.php
MIT
public function remember($key, $minutes, Closure $closure) { $value = $this->get($key); if ($value != null) { return $value; } $newValue = $closure(); $this->put($key, $newValue, $minutes); return $newValue; }
Remembers a value in the cache. Runs closure to generate new cache. @param string $key @param int $minutes @param closure $closure @return mixed
remember
php
elementary/website
_backend/Lib/Cache/Cache.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Cache.php
MIT
public function __call($method, $parameters) { return $this->store->$method(...$parameters); }
Redirect any none-cache method to the storage. NOTE: This is a PHP magic function. Try not to break it. @param string $method @param array $parameters @return mixed
__call
php
elementary/website
_backend/Lib/Cache/Cache.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Cache.php
MIT
protected function cacheDirectory() { $path = sys_get_temp_dir(); if (substr($path, strlen($path) - 1) !== '/') { $path .= '/'; } return $path.'elementary/website'; }
Returns the directory we use to store cache files. @return string
cacheDirectory
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
protected function cachePath($key) { return $this->cacheDirectory().'/'.base64_encode($key); }
Returns the full path to the cache file. @param string $key @return string
cachePath
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
protected function writeCache($key, $contents) { $filePath = $this->cachePath($key); if (file_exists($filePath) === false) { $fileDirectory = $this->cacheDirectory(); if (file_exists($fileDirectory) === false) { mkdir($fileDirectory, 0744, true); } } file_put_contents($filePath, serialize($contents)); }
Writes the cache to file. @param string $key @param mixed $contents
writeCache
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
public function get($key) { $content = $this->readCache($key); if ($content == null) { return; } $time = $content['time']; if ($time <= time()) { $this->forget($key); return; } return $content['data']; }
Returns a key from the file. @param string $key @return mixed|null
get
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
public function put($key, $value, $minutes = 0) { $this->writeCache($key, array( 'data' => $value, 'time' => $this->getTime($minutes), )); }
Puts a value into the file. @param string $key @param mixed $value @param int $minutes
put
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
public function forever($key, $value) { $content = $this->readCache($key); if ($content == null) { return; } $content['time'] = $this->getTime(0); $this->writeCache($key, $content); }
Sets a cache value to be cached forever. @param string $key @param int $value
forever
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
public function forget($key) { $filePath = $this->cachePath($key); if (file_exists($filePath) === true) { unlink($filePath); } }
Removes a value from the cache. @param string $key
forget
php
elementary/website
_backend/Lib/Cache/Store/FileStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/FileStore.php
MIT
protected function getTime($minutes = 0) { // Consider 0 minutes as an infinite time if ($minutes === 0) { return 9999999999; } return time() + ($minutes * 60); }
Returns the current time plus minutes. @param int $minutes @return int
getTime
php
elementary/website
_backend/Lib/Cache/Store/BaseStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/BaseStore.php
MIT
public function getMany(array $keys) { return array_map(function ($key) { return $this->get($key); }, $keys); }
Returns many values from the file. @param string[] $keys @return mixed|null[]
getMany
php
elementary/website
_backend/Lib/Cache/Store/BaseStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/BaseStore.php
MIT
public function putMany(array $items, $minutes = 0) { array_walk(function ($value, $key) { $this->put($key, $value, $minutes); }, $items); }
Puts many values into the file. @param array $items $key @param int $minutes
putMany
php
elementary/website
_backend/Lib/Cache/Store/BaseStore.php
https://github.com/elementary/website/blob/master/_backend/Lib/Cache/Store/BaseStore.php
MIT
public function __construct( Environment $twig, private Pool $pool, private ?AdminInterface $mediaAdmin, private MediaManagerInterface $mediaManager, ) { parent::__construct($twig); }
@param AdminInterface<MediaInterface>|null $mediaAdmin
__construct
php
sonata-project/SonataMediaBundle
src/Block/FeatureMediaBlockService.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Block/FeatureMediaBlockService.php
MIT
public function __construct( Environment $twig, private Pool $pool, private ?AdminInterface $mediaAdmin, private MediaManagerInterface $mediaManager, ) { parent::__construct($twig); }
@param AdminInterface<MediaInterface>|null $mediaAdmin
__construct
php
sonata-project/SonataMediaBundle
src/Block/MediaBlockService.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Block/MediaBlockService.php
MIT
public function __construct( Environment $twig, private Pool $pool, private ?AdminInterface $galleryAdmin, private GalleryManagerInterface $galleryManager, ) { parent::__construct($twig); }
@param AdminInterface<GalleryInterface<GalleryItemInterface>>|null $galleryAdmin
__construct
php
sonata-project/SonataMediaBundle
src/Block/GalleryBlockService.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Block/GalleryBlockService.php
MIT
public function __construct( private Pool $pool, private string $class, ) { }
@phpstan-param class-string<MediaInterface> $class
__construct
php
sonata-project/SonataMediaBundle
src/Form/Type/MediaType.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Form/Type/MediaType.php
MIT
public function __construct( private Pool $pool, private string $class, array $options = [], ) { $this->options = $this->getOptions($options); }
@param array<string, mixed> $options @phpstan-param class-string<MediaInterface> $class
__construct
php
sonata-project/SonataMediaBundle
src/Form/DataTransformer/ProviderDataTransformer.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Form/DataTransformer/ProviderDataTransformer.php
MIT
private function getOptions(array $options) { return array_merge([ 'provider' => false, 'context' => false, 'empty_on_new' => true, 'new_on_update' => true, ], $options); }
Define the default options for the DataTransformer. @param array<string, mixed> $options @return array<string, mixed>
getOptions
php
sonata-project/SonataMediaBundle
src/Form/DataTransformer/ProviderDataTransformer.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Form/DataTransformer/ProviderDataTransformer.php
MIT
public function __construct( $pool, $categoryManager = null, $contextManager = null, ?Pool $deprecatedPool = null, ?CategoryManagerInterface $deprecatedCategoryManager = null, ?ContextManagerInterface $deprecatedContextManager = null, ) { // NEXT_MAJOR: Keep the if part. if ($pool instanceof Pool) { \assert(!\is_string($categoryManager)); \assert(!\is_string($contextManager)); parent::__construct(); $this->pool = $pool; $this->categoryManager = $categoryManager; $this->contextManager = $contextManager; } else { \assert(\is_string($categoryManager)); \assert(\is_string($contextManager)); \assert(null !== $deprecatedPool); parent::__construct($pool, $categoryManager, $contextManager); $this->pool = $deprecatedPool; $this->categoryManager = $deprecatedCategoryManager; $this->contextManager = $deprecatedContextManager; } }
NEXT_MAJOR: Change to (Pool, ?CategoryManagerInterface, ?ContextManagerInterface). @param Pool|string $pool @param CategoryManagerInterface|string|null $categoryManager @param ContextManagerInterface|string|null $contextManager @phpstan-param CategoryManagerInterface|class-string<MediaInterface>|null $categoryManager
__construct
php
sonata-project/SonataMediaBundle
src/Admin/BaseMediaAdmin.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Admin/BaseMediaAdmin.php
MIT
protected function getMetadata(MediaInterface $media, string $url) { try { $response = $this->sendRequest('GET', $url); } catch (\RuntimeException $exception) { throw new \RuntimeException( \sprintf('Unable to retrieve the video information for: %s', $url), (int) $exception->getCode(), $exception ); } $metadata = json_decode($response, true, 512, \JSON_THROW_ON_ERROR); if (null === $metadata) { throw new \RuntimeException(\sprintf('Unable to decode the video information for: %s', $url)); } return $metadata; }
@throws \RuntimeException @return mixed
getMetadata
php
sonata-project/SonataMediaBundle
src/Provider/BaseVideoProvider.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Provider/BaseVideoProvider.php
MIT
public function __construct( string $name, Filesystem $filesystem, CDNInterface $cdn, GeneratorInterface $pathGenerator, ThumbnailInterface $thumbnail, protected array $allowedExtensions = [], protected array $allowedMimeTypes = [], protected ?MetadataBuilderInterface $metadata = null, ) { parent::__construct($name, $filesystem, $cdn, $pathGenerator, $thumbnail); }
@param string[] $allowedExtensions @param string[] $allowedMimeTypes
__construct
php
sonata-project/SonataMediaBundle
src/Provider/FileProvider.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Provider/FileProvider.php
MIT
public function __construct( private string $title, private ?string $description = null, ?string $image = null, private ?string $domain = null, private array $options = [], ) { $this->image = $image ?? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOcAAADnCAYAAADl9EEgAAAXfWlDQ1BJQ0MgUHJvZmlsZQAAWAmtWWVYVU3Xnn0KOBy6u7u7u7sbgUN3NyopUkoISIoggqCCQYmIiCCCiKACBiAhkiqooAjIu0F93ufH9/779nWdvW/W3GvNmlkzs/daAMDQgg8NDUSQAxAUHBluqafJbu/gyE7wFhACKkAHhAEG7xERqmFubgz+57U9AaDDxhcih7b+J+3/bqDw9IrwAAAyh5vdPSM8gmDcAgCizSM0PBIA1KE9rpjI0EOcB2PqcNhBGNceYp/fuOMQu//Gw0cca0stmDMLACEOjw/3AQC3DsvZoz18YDskOAAwlMGefsEAULHDWNXDF+8JAIMbzBEOCgo5xDkw5nf/lx2ff2E83v0fm3i8zz/491hgTbhjbb+I0EB83NEf/5+3oMAoeL6OLlr4jguN1LSEn/TwvNH7RRpYw5gaxuK+Ufo2f7B2vK+13SEXltsHu5uawZgSxp4eEVrwXALYDhQdEGJ0aOeQk+Pppa0DY3hVQCUR0VZ/8ZV4Xy3TPxx7f7zhYcxIYU4HPhxGv/t9FBppfujDoc03wYGmxn/whne47qF9WI7AeEXoWMEY9gHBHBlufSiHfUaIevvpGsAY7hehGRp4tOYOOZbhUZaHY+GGsadXsM1f3QxPvLYRLGeG5WXAGGgBbcAO30NAIPwLB37AE37+lXv8S24F4sFHEAy8QASsccRw9UsJ/4uBLsDD+j5wu8gffc0jiReIhrX2//JG1tvX/+I/Ou7/aOiC90c2/lgQvyq+Ir73l81O9tcvjA5GG6OP0cUI/JXAPf0eRfiRf0bwaLxAFGzLC+77rz//HlXUP4x/S3/PgeWRVgDM8PvbN7A98szvH1tG/8zMn7lA8aIkUTIoTZQKShWl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bH+ndMAReeOEFHp8qVa3jyIkTCKmBIMvw3CeJPwKp5Lz++uvjf0MJvAPk7WnVqlWeO8tDTpRAJi0kXbUsFfJcRQdigwAiIezZs4frW7lyZeMi0McGSAWKwp1v1KhRPB+qXfW25ERBJJz9/PPPWXZ2tt11dCxGCCAomCV2v9DWOXrXhwBCrMI5oVOnTsJGheTEFSVLluTxWZGy3DIpEtZEJ4xFIJWcOTk5xuqZCYphPefRRx/lERRTV2bt7t2RnNYFbdq04ZUhgNQtt9zCSWudo3fzEVi/fn2ukhdddBFfV8g9QB+UI4BYxk2aNOGByWHv3K9fPx550a1hnp/TrZDd+Z07dzJ0OsI4Uio5O4TMOVa6dGl2ySWX5Cq0cuVK9tVXX+X+Tx/kI5CVlcXzqGKBtUyZMjz8qd9WApPTb0NUnhAgBPwh8D8I22yw4XkRvwAAAABJRU5ErkJggg=='; }
@param array<string, mixed> $options
__construct
php
sonata-project/SonataMediaBundle
src/Provider/Metadata.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Provider/Metadata.php
MIT
public function mtime($key) { return $this->primary->mtime($key); }
@param string $key @return int|bool
mtime
php
sonata-project/SonataMediaBundle
src/Filesystem/Replicate.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Filesystem/Replicate.php
MIT
public function write($key, $content) { $ok = true; $return = false; try { $return = $this->primary->write($key, $content); } catch (\Exception $e) { $this->logger->critical(\sprintf('Unable to write %s, error: %s', $key, $e->getMessage())); $ok = false; } try { $return = $this->secondary->write($key, $content); } catch (\Exception $e) { $this->logger->critical(\sprintf('Unable to write %s, error: %s', $key, $e->getMessage())); $ok = false; } return $ok && false !== $return; }
@param string $key @param string $content @return bool
write
php
sonata-project/SonataMediaBundle
src/Filesystem/Replicate.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Filesystem/Replicate.php
MIT
public function read($key) { return $this->primary->read($key); }
@param string $key @return string|bool
read
php
sonata-project/SonataMediaBundle
src/Filesystem/Replicate.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Filesystem/Replicate.php
MIT
public function getMetadata($key) { if ($this->primary instanceof MetadataSupporter) { return $this->primary->getMetadata($key); } if ($this->secondary instanceof MetadataSupporter) { return $this->secondary->getMetadata($key); } return []; }
@param string $key @return mixed[]
getMetadata
php
sonata-project/SonataMediaBundle
src/Filesystem/Replicate.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Filesystem/Replicate.php
MIT
public function __construct( private TranslatorInterface $translator, private AuthorizationCheckerInterface $security, private array $roles = [], ) { }
@param string[] $roles
__construct
php
sonata-project/SonataMediaBundle
src/Security/RolesDownloadStrategy.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Security/RolesDownloadStrategy.php
MIT
public function __construct( private Pool $mediaPool, private MediaManagerInterface $mediaManager, ) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/RemoveThumbsCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/RemoveThumbsCommand.php
MIT
public function __construct(private MediaManagerInterface $mediaManager) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/AddMediaCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/AddMediaCommand.php
MIT
public function __construct( private Pool $mediaPool, private MediaManagerInterface $mediaManager, ) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/RefreshMetadataCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/RefreshMetadataCommand.php
MIT
public function __construct( private Local $filesystemLocal, private Pool $mediaPool, private MediaManagerInterface $mediaManager, ) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/CleanMediaCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/CleanMediaCommand.php
MIT
public function __construct(private MediaManagerInterface $mediaManager) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/AddMassMediaCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/AddMassMediaCommand.php
MIT
private function getFilePointer(InputInterface $input, OutputInterface $output) { if (false !== ftell(\STDIN)) { return \STDIN; } $file = $input->getOption('file'); if (null === $file) { throw new \RuntimeException('Please provide a CSV file argument or CSV input stream'); } $filePointer = fopen($file, 'r'); if (false === $filePointer) { throw new \RuntimeException(\sprintf('The provided CSV file %s could not be opened', $file)); } return $filePointer; }
@return resource
getFilePointer
php
sonata-project/SonataMediaBundle
src/Command/AddMassMediaCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/AddMassMediaCommand.php
MIT
public function __construct( private Pool $mediaPool, private ?CategoryManagerInterface $categoryManager = null, private ?ContextManagerInterface $contextManager = null, ) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/FixMediaContextCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/FixMediaContextCommand.php
MIT
public function __construct( private Pool $mediaPool, private MediaManagerInterface $mediaManager, ) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/UpdateCdnStatusCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/UpdateCdnStatusCommand.php
MIT
public function __construct( private Pool $mediaPool, private MediaManagerInterface $mediaManager, ) { parent::__construct(); }
@internal This class should only be used through the console
__construct
php
sonata-project/SonataMediaBundle
src/Command/SyncThumbsCommand.php
https://github.com/sonata-project/SonataMediaBundle/blob/master/src/Command/SyncThumbsCommand.php
MIT
public static function parseError($set = false) { static $error = false; return $set ? $error = $set : $error; }
https://github.com/shuchkin/simplexlsx#gets-extend-cell-info-by--rowsex
parseError
php
shuchkin/simplexlsx
src/SimpleXLSX.php
https://github.com/shuchkin/simplexlsx/blob/master/src/SimpleXLSX.php
MIT