Procedural File: _functions.php
Source Location: /_functions.php
Page Details:
dbscript for PHP 4 & 5 - restful crud framework
Tags:
after_filter [line 241]
void after_filter(
string $name, string $func, [string $when = 'after'])
|
|
After Filter set an aspect function to trigger after another function
Tags:
Parameters
| string |
$name |
|
| string |
$func |
|
| string |
$when |
|
always [line 269]
aspect_join_functions [line 209]
void aspect_join_functions(
string $func, string $callback, [string $type = 'after'])
|
|
aspect_join_functions add trigger function name pairs to GLOBALS
Tags:
Parameters
| string |
$func |
|
| string |
$callback |
|
| string |
$type |
|
before_filter [line 225]
void before_filter(
string $name, string $func, [string $when = 'before'])
|
|
Before Filter set an aspect function to trigger before another function
Tags:
Parameters
| string |
$name |
|
| string |
$func |
|
| string |
$when |
|
breadcrumbs [line 595]
check_cookie [line 828]
check_cookie is the Cookie fit for consumption?
Tags:
classify [line 25]
string classify(
string $resource)
|
|
classify takes a table/resource name ('entries') makes it singular & capitalized ('Entry')
Tags:
Parameters
content_for_layout [line 586]
void content_for_layout(
string $template)
|
|
content_for_layout render a _template using content-negotiation
Tags:
Parameters
content_types [line 616]
controller_path [line 356]
string controller_path(
)
|
|
controller_path path to controllers
Tags:
dbscript_error [line 118]
void dbscript_error(
integer $errno, string $errstr, string $errfile, integer $errline)
|
|
Error custom Error handling per-client-type
Tags:
Parameters
| integer |
$errno |
|
| string |
$errstr |
|
| string |
$errfile |
|
| integer |
$errline |
|
dbscript_path [line 311]
dbscript_path path to library/dbscript
Tags:
dbsession_model [line 698]
string dbsession_model(
)
|
|
dbsession_model get global DbSession data model
Tags:
db_include [line 660]
string db_include(
$file)
|
|
db_include get global Mapper object
Tags:
Parameters
db_object [line 370]
db_object get global Database object
Tags:
dictionary_parse [line 935]
array dictionary_parse(
string $data)
|
|
dictionary_parse Parses an xml dictionary. First argument is file name OR xml data. Second argument must be 'true' if the first arg is file name.
Tags:
Parameters
dircopy [line 1028]
void dircopy(
$srcdir, $dstdir, [ $verbose = false])
|
|
Parameters
drop_array_element [line 909]
void drop_array_element(
$array_with_elements, $key_name, string $str)
|
|
drop_array_element returns the array minus the named element
Tags:
Parameters
| string |
$str |
|
| |
$array_with_elements |
|
| |
$key_name |
|
environment [line 376]
fetch_blob [line 406]
form_for [line 465]
void form_for(
&$resource, &$member, $url, string $template)
|
|
Form For generate a form action string
Tags:
Parameters
| string |
$template |
|
| |
&$resource |
|
| |
&$member |
|
| |
$url |
|
getEtag [line 895]
get_script_name [line 1012]
string get_script_name(
)
|
|
get_script_name the name of the current script
Tags:
header_status [line 783]
void header_status(
string $status)
|
|
header_status
Tags:
Parameters
ignore_errors [line 325]
ignore_errors returns value of environment variable, if set
Tags:
in_string [line 994]
boolean in_string(
string $needle, array $haystack, [integer $insensitive = 0])
|
|
in_string search for a substring
Tags:
Parameters
| string |
$needle |
|
| array |
$haystack |
|
| integer |
$insensitive |
|
is_obj [line 1070]
boolean is_obj(
&$object, [boolean $check = null], [boolean $strict = true], object $object)
|
|
is_obj more flexible is_object
Tags:
Parameters
| object |
$object |
|
| boolean |
$check |
|
| boolean |
$strict |
|
| |
&$object |
|
library_path [line 297]
library_path path to libraries
Tags:
magic_quotes_stripquotes [line 766]
array magic_quotes_stripquotes(
array $a)
|
|
magic_quotes_stripquotes
Tags:
Parameters
magic_quotes_stripquotes_b [line 748]
array magic_quotes_stripquotes_b(
array $a)
|
|
magic_quotes_stripquotes_b
Tags:
Parameters
magic_quotes_stripslashes [line 730]
array magic_quotes_stripslashes(
array $a)
|
|
magic_quotes_stripslashes
Tags:
Parameters
magic_quotes_stripslashes_b [line 712]
array magic_quotes_stripslashes_b(
array $a)
|
|
magic_quotes_stripslashes_b
Tags:
Parameters
model_path [line 283]
model_path path to data models
Tags:
never [line 255]
plugin_path [line 342]
plugin_path path to data models
Tags:
randomstring [line 882]
string randomstring(
integer $len)
|
|
Randomstring give it a string length and you will receive a random string!
Tags:
Parameters
redirect_to [line 512]
void redirect_to(
$param, [ $altparam = NULL], string $template)
|
|
Redirect To redirect the browser via Routes
Tags:
Parameters
| string |
$template |
|
| |
$param |
|
| |
$altparam |
|
render [line 530]
void render(
$param, $value, string $template)
|
|
Render render template or blob using content-negotiation
Tags:
Parameters
| string |
$template |
|
| |
$param |
|
| |
$value |
|
render_blob [line 382]
void render_blob(
$value)
|
|
Parameters
render_partial [line 560]
void render_partial(
string $template)
|
|
Render Partial render a _template using content-negotiation
Tags:
Parameters
request_object [line 610]
request_object get global Mapper object
Tags:
response_object [line 645]
response_object get global View object
Tags:
set_cookie [line 799]
void set_cookie(
integer $userid)
|
|
set_cookie bake a fresh Cookie
Tags:
Parameters
tableize [line 67]
string tableize(
$object, string $table)
|
|
tableize takes a (CamelCase or not) name ('DbSession') makes it lower_case and plural ('db_sessions')
Tags:
Parameters
template_exists [line 441]
boolean template_exists(
&$request, string $extension, $template, Mapper $request)
|
|
template_exists find a template during content-negotiation
Tags:
Parameters
| Mapper |
$request |
|
| string |
$extension |
|
| |
&$request |
|
| |
$template |
|
timestamp [line 685]
trigger_after [line 189]
void trigger_after(
string $func, &$obj_a, &$obj_b, object $obj_a, object $obj_b)
|
|
Trigger After trip after filters for a function
Tags:
Parameters
| string |
$func |
|
| object |
$obj_a |
|
| object |
$obj_b |
|
| |
&$obj_a |
|
| |
&$obj_b |
|
trigger_before [line 169]
void trigger_before(
string $func, &$obj_a, &$obj_b, object $obj_a, object $obj_b)
|
|
Trigger Before trip before filters for a function
Tags:
Parameters
| string |
$func |
|
| object |
$obj_a |
|
| object |
$obj_b |
|
| |
&$obj_a |
|
| |
&$obj_b |
|
unset_cookie [line 814]
unset_cookie throw the Cookie away? noo..
Tags:
url_for [line 494]
void url_for(
array $params, [array $altparams = NULL])
|
|
URL For generate a url from a Route
Tags:
Parameters
| array |
$params |
|
| array |
$altparams |
|
vars [line 848]
string vars(
$varios, [ $scope = false], [ $prefix = 'unique'], [ $suffix = 'value'], string $var)
|
|
Vars mutator function makes an array of local variables extractable
Tags:
Parameters
| string |
$var |
|
| |
$varios |
|
| |
$scope |
|
| |
$prefix |
|
| |
$suffix |
|
version [line 679]
version get dbscript version
Tags:
|
|