public getTime () Log timestamp
public bytes ([mixed $len]) Generates a random binary string The Random::bytes method returns a string and accepts as input an int representing the length in bytes to be returned. If $len is not specified, 16 is assumed. It may be larger in future. The result may contain any byte: “x00” - “xFF”. $random = new \Phalcon\Security\Random(); $bytes = $random->bytes(); var_dump(bin2hex($bytes)); // possible output: string(32) "00f6c04b144b41fad6a59111c126e1ee"
public string format (string $message, int $type, int $timestamp, [array $context]) Applies a format to a message before sent it to the internal log
public offsetSet (string $alias, mixed $definition) Allows to register a shared service in the internal services container using the array syntax $app['request'] = new \Phalcon\Http\Request();
public Phalcon\Mvc\Router\RouteInterface options (string $routePattern, callable $handler) Maps a route to a handler that only matches if the HTTP method is OPTIONS
public logInternal (mixed $message, mixed $type, mixed $time, array $context) Writes the log to the stream itself
public setIsNewTransaction (mixed $isNew) Sets if is a reused transaction or new once
abstract public createView (mixed $viewName, array $definition, [mixed $schemaName]) ...
abstract public setLimit (mixed $limit) ...
public registerEngines (array $engines) Register templating engines $this->view->registerEngines([ '.phtml' => 'Phalcon\Mvc\View\Engine\Php', '.volt' => 'Phalcon\Mvc\View\Engine\Volt', '.mhtml' => 'MyCustomEngine' ]);
Page 86 of 382