Provides Kohana-specific helper functions. This is where the magic happens! $Id: Kohana.php 4372 2009-05-28 17:00:34Z ixmatus $
This is the code documentation for the SproutCMS project
Search documentation |
class KohanaProvides Kohana-specific helper functions. This is where the magic happens! $Id: Kohana.php 4372 2009-05-28 17:00:34Z ixmatus $
AuthorsVariables
Functions
protected _obEndCleanboolean Kohana::_obEndClean ( [ callback $callback ] ); Ends the current output buffer with callback in mind PHP doesn't pass the output to the callback defined in ob_start() since 5.4 public backtracestring Kohana::backtrace ( array $trace ); Displays nice backtrace information. public cachemixed Kohana::cache ( string $name ); Load data from a simple cache file. This should only be used internally, and is NOT a replacement for the Cache library. public cacheSaveboolean Kohana::cacheSave ( string $name , mixed $data ); Save data to a simple cache file. This should only be used internally, and is NOT a replacement for the Cache library. public closeBuffersvoid Kohana::closeBuffers ( [ boolean $flush ] ); Closes all open output buffers, either by flushing or cleaning, and stores the Kohana output buffer for display during shutdown. public configmixed Kohana::config ( string $key [, boolean $slash [, boolean $required ]] ); Get a config item or group. public configClearvoid Kohana::configClear ( string $group ); Clears a config group from the cached configuration. public configLoadarray Kohana::configLoad ( string $name [, boolean $required ] ); Load a config file. public configSetboolean Kohana::configSet ( string $key , string $value ); Sets a configuration item, if allowed. public debugstring Kohana::debug ( ); Quick debugging of any variable. Any number of parameters can be set. public disableCachevoid Kohana::disableCache ( ); Disable the find-files and configuration caches This may be required if the caching is causing problems public errorHandlervoid Kohana::errorHandler ( int $errno , string $errmsg , string $file , int $line ); Converts PHP errors into ErrorExceptions public exceptionHandlervoid Kohana::exceptionHandler ( object $exception ); Exception handler. public findFileFALSE|string|array Kohana::findFile ( string $directory , string $filename [, boolean $required [, string $ext ]] ); Find a resource file in a given directory. Files will be located according to the order of the include paths. Configuration and i18n files will be returned in reverse order. public includePathsarray Kohana::includePaths ( [ boolean &$process ] ); Get all include paths. APPPATH is the first path, followed by module paths in the order they are configured. public instanceobject Kohana::instance ( ); Loads the controller and initializes it. Runs the pre_controller, post_controller_constructor, and post_controller events. Triggers a system.404 event when the route cannot be mapped to a controller. public internalCacheSaveboolean Kohana::internalCacheSave ( ); Saves the internal caches: configuration, include paths, etc. public keyStringvoid|string Kohana::keyString ( array $array , string $keys ); Returns the value of a key, defined by a 'dot-noted' string, from an array. public keyStringSetvoid|mixed Kohana::keyStringSet ( array &$array , string $keys [, mixed $fill ] ); Sets values in an array by using a 'dot-noted' string. public langstring Kohana::lang ( string $key , array $args ); Fetch an i18n language item. public listFilesarray Kohana::listFiles ( string $directory [, boolean $recursive [, string $path ]] ); Lists all files and directories in a resource path. public logvoid Kohana::log ( mixed $type , mixed $message ); Deprecated. This function has been removed, and it's signature has been left for compatibilty only. public logExceptionint Kohana::logException ( (\Exception|\Throwable) $exception ); Log exceptions in the database public outputBufferstring Kohana::outputBuffer ( string $output ); Kohana output handler. Called during ob_clean, ob_flush, and their variants. public rendervoid Kohana::render ( string $output ); Inserts global Kohana variables into the generated output and prints it. public setupvoid Kohana::setup ( ); Sets up the PHP environment. Adds error/exception handling, output buffering, and adds an auto-loading method for loading classes. For security, this function also destroys the $_REQUEST global variable. Using the proper global (GET, POST, COOKIE, etc) is inherently more secure. public show404void Kohana::show404 ( [ string $page ] ); Displays a 404 page. public shutdownvoid Kohana::shutdown ( ); Triggers the shutdown of Kohana by closing the output buffer, runs the system.display event. public userAgentboolean|array|string Kohana::userAgent ( [ string $key [, string $compare ]] ); Retrieves current user agent information: keys: browser, version, platform, mobile, robot, referrer, languages, charsets tests: is_browser, is_mobile, is_robot, accept_lang, accept_charset |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|