[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/plugins/ -> _plugin.funcs.php (sommaire)

Functions for Plugin handling. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

Author: fplanque: Francois PLANQUE
Author: blueyed: Daniel HAHLER
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _plugin.funcs.php,v 1.2 2007/09/03 23:45:56 blueyed Exp $
Poids: 1077 lignes (32 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 6 fonctions

  autoform_display_field()
  _set_setting_by_path()
  get_plugin_settings_node_by_path()
  autoform_set_param_from_request()
  autoform_validate_param_value()
  handle_array_keys_in_plugin_settings()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

autoform_display_field( $parname, $parmeta, & $Form, $set_type, $Obj, $set_target = NULL, $use_value = NULL )   X-Ref
Recursive helper function to display a field of the plugin's settings (by manipulating a Form).

This gets used for PluginSettings ("Edit plugin") and PluginUserSettings ("Edit user settings").

param: string Settings path, e.g. 'locales[0]' or 'setting'
param: array Meta data for this setting.
param: Form (by reference)
param: string Settings type ('Settings' or 'UserSettings' or 'Widget')
param: Plugin|Widget
param: mixed Target (User object for 'UserSettings')
param: mixed Value to really use (used for recursion into array type settings)

_set_setting_by_path( & $Plugin, $set_type, $path, $init_value = array()   X-Ref
Pas de description

get_plugin_settings_node_by_path( & $Plugin, $set_type, $path, $create = false )   X-Ref
Get a node from settings by path (e.g. "locales[0][questions]")

param: Plugin
param: string Settings type ("Settings" or "UserSettings")
param: string The settings path, e.g. 'setting[0]foo[1]' or even 'setting[]'. (Is used as array internally for recursion.)
return: array Array(

autoform_set_param_from_request( $parname, $parmeta, & $Obj, $set_type, $set_target = NULL )   X-Ref
Set Plugin settings from params.

fp> WARNING: also used outside of plugins. Work in progress.

This handled plugin specific params when saving a user profile (PluginUserSettings) or plugin settings (PluginSettings).

param: string Settings path, e.g. 'locales[0]' or 'setting'
param: array Meta data for this setting.
param: Plugin|Widget
param: string Type of Settings (either 'Settings' or 'UserSettings').
param: mixed Target (User object for 'UserSettings')

autoform_validate_param_value( $param_name, $value, $meta )   X-Ref
Validates settings according to their meta info recursively.

param: string Param name
param: array Meta info
return: boolean

handle_array_keys_in_plugin_settings( & $a )   X-Ref
This handles the special "__key__" index in all array type values
in the given array. It makes sure, that "__key__" is unique and
replaces the original key of the value with it.

param: array (by reference)



Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics