[ 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/_core/ui/ -> _uiwidget.class.php (sommaire)

This file implements the Widget class. 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: _uiwidget.class.php,v 1.5 2007/09/26 21:53:23 fplanque Exp $
Poids: 868 lignes (24 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

Widget:: (8 méthodes):
  Widget()
  global_icon()
  disp_template_raw()
  disp_template_replaced()
  replace_vars()
  replace_callback_wrapper()
  replace_callback()
  gen_global_icons()

Table:: (13 méthodes):
  Table()
  display_init()
  display_list_start()
  display_list_end()
  display_head()
  display_col_headers()
  display_body_start()
  display_body_end()
  display_line_start()
  display_line_end()
  display_col_start()
  display_col_end()
  replace_callback()


Classe: Widget  - X-Ref

Widget class which provides an interface to widget methods for other classes.

It provides a method {@link replace_vars()} that can be used to replace object properties in given strings.
You can also register global action icons.

Widget( $ui_template = NULL )   X-Ref
Constructor

param: string template name to get from $AdminUI

global_icon( $title, $icon, $url, $word = '', $icon_weight = 3, $word_weight = 2, $link_attribs = array( 'class'=>'action_icon' )   X-Ref
Registers a global action icon

param: string TITLE text (IMG and A link)
param: string icon code for {@link get_icon()}
param: string URL to link to
param: integer 1-5: weight of the icon. the icon will be displayed only if its weight is >= than the user setting threshold
param: integer 1-5: weight of the word. the word will be displayed only if its weight is >= than the user setting threshold
param: array Additional attributes to the A tag. See {@link action_icon()}.

disp_template_raw( $param_name )   X-Ref
Display a template param without replacing variables


disp_template_replaced( $param_name )   X-Ref
Display a template param with its variables replaced


replace_vars( $template, $params = NULL )   X-Ref
Replaces $vars$ with appropriate values.

You can give an alternative string to display, if the substituted variable
is empty, like:
<code>$vars "Display if empty"$</code>

param: string template
param: array optional params that are put into {@link $this->params}
return: string The substituted string

replace_callback_wrapper( $match )   X-Ref
This is an additional wrapper to {@link replace_vars()} that allows to react
on the return value of it.

Used by replace_callback()

param: array {@link preg_match() preg match}
return: string

replace_callback( $matches )   X-Ref
Callback function used to replace only necessary values in template.

This gets used by {@link replace_vars()} to replace $vars$.

param: array {@link preg_match() preg match}. Index 1 is the template variable.
return: string to be substituted

gen_global_icons()   X-Ref
Generate img tags for registered icons, through {@link global_icon()}.

This is used by the default callback to replace '$global_icons$'.

Classe: Table  - X-Ref

Class Table

Table( $ui_template = NULL )   X-Ref
Constructor

param: string template name to get from $AdminUI

display_init( $display_params = NULL, $fadeout = NULL )   X-Ref
Initialize things in order to be ready for displaying.

Lazy fills $this->params

param: array ***please document***
param: array Fadeout settings array( 'key column' => array of values ) or 'session'

display_list_start()   X-Ref
Display list/table start.

Typically outputs UL or TABLE tags.

display_list_end()   X-Ref
Display list/table end.

Typically outputs </ul> or </table>

display_head()   X-Ref
Display list/table head.

This includes list head/title and column headers.
EXPERIMENTAL: also dispays <tfoot>


display_col_headers()   X-Ref
Display column headers


display_body_start()   X-Ref
Pas de description

display_body_end()   X-Ref
Pas de description

display_line_start( $is_last = false, $is_fadeout_line = false )   X-Ref
Pas de description

display_line_end()   X-Ref
Pas de description

display_col_start()   X-Ref
Pas de description

display_col_end()   X-Ref
Pas de description

replace_callback( $matches )   X-Ref
Widget callback for template vars.

This allows to replace template vars, see {@link Widget::replace_callback()}.

return: string



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