Home « Server software «
Documentation: overlays/recipe.php
class Recipe extends Overlay - Describe one recipe
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
get_fields() - Build the list of fields for one overlay
function get_fields($host, $capability='?')
- $host - the hosting attributes
- $capability='?' - string surfer capability ('?', 'M', or 'A')
- returns a list of ($label, $input, $hint)
Voir aussi:
get_label() - Get an overlaid label
function get_label($name, $action='view')
- $name - string the target label
- $action='view' - string the on-going action
- returns the label to use
- 'edit' the modification of an existing object
- 'delete' the deleting form
- 'new' the creation of a new object
- 'view' a displayed object
Voir aussi:
get_text() - Display the content of one recipe
function get_text($variant='view', $host=NULL)
- $variant='view' - string the variant code
- $host=NULL - array the hosting record
- returns some HTML to be inserted into the resulting page
- 'view' - embedded into the main viewing page
Voir aussi:
parse_fields() - Retrieve the content of one modified overlay
function parse_fields($fields)
- $fields - the fields as filled by the end user
- returns the updated fields
Voir aussi: