Pluf_Shortcuts_GetRequestParamOr403()
Pluf_Shortcuts_GetRequestParamOr403( $request, $id)
Parameters
$request | ||
$id |
Pluf_Shortcuts_GetObjectOr404( $object, $id) : \Pluf_Model
Get an object by id or raise a 404 error.
$object | ||
$id |
The found object.
Pluf_Shortcuts_RenderToResponse( $tplfile, $params, $request = null) : \Pluf_HTTP_Response
Render a template file and an array as a reponse.
If a none null request object is given, the context used will automatically be a Pluf_Template_Context_Request context and thus the context will be populated using the 'template_context_processors' functions.
$tplfile | ||
$params | ||
$request |
The response with the rendered template
Pluf_Shortcuts_GetFormForModel( $model, $data = null, $extra = array(), $label_suffix = null) : \Pluf_Form_Model
Get a given form from a model.
$model | ||
$data | ||
$extra | ||
$label_suffix |
Form for this model.
Pluf_Shortcuts_GetAssociationTableName(string $modelName1, string $modelName2) : string
Returns association table name (without prefix) for given models.
string | $modelName1 | name of model (of type Pluf_Model) |
string | $modelName2 | name of model (of type Pluf_Model) |
name of association table for given modeles.
Pluf_Shortcuts_GetForeignKeyName(string $modelName) : string
Returns column name for given model as foreign key in an association table.
string | $modelName | name of model (of type Pluf_Model) |
column name for given model as foreign key in an association table.
package |
Default |
---|
Pluf_Shortcuts_GetListCount(\Pluf_HTTP_Request $request) : \number
Returns list count for given request.
If count is not set in request or count is more than a threshold (50) returns a default value (50).
\Pluf_HTTP_Request | $request |
package |
Default |
---|