/includes/theme.inc

Description
Functions
table_cell (line 529)
void table_cell ( $cell,  $header,  $ts,  $i)
  • $cell
  • $header
  • $ts
  • $i
table_get_order (line 548)
void table_get_order ( $headers)
  • $headers
table_get_querystring (line 544)
void table_get_querystring ()
table_get_sort (line 572)
void table_get_sort ( $headers)
  • $headers
table_header (line 494)
void table_header ( $cell,  $header,  $ts)
  • $cell
  • $header
  • $ts
table_init (line 467)
void table_init ( $header)
  • $header
table_sql (line 482)

获得 table 排序 sql

(string) table_sql ((array) $header, [(string) $before = ''])
  • (array) $header: table header
  • (string) $before: 在 by 之后添加内容,比如首先按照某个字段排序
template_preprocess (line 199)

传递给所有模板文件的变量,以 site_ 开头

模块应尽量避免使用 site_ 开头来命名模板变量

void template_preprocess ( &$var,  $hook)
  • &$var
  • $hook
template_preprocess_page (line 223)
void template_preprocess_page ( &$var,  $args)
  • &$var
  • $args
theme (line 63)
void theme ()
theme_breadcrumb (line 333)
void theme_breadcrumb ( $breadcrumb)
  • $breadcrumb
theme_get_cache (line 48)

缓存各模块定义的主题函数

void theme_get_cache ()
theme_help (line 337)
void theme_help ( $help)
  • $help
theme_init (line 4)
void theme_init ()
theme_item_list (line 341)
void theme_item_list ([ $items = array()], [ $title = NULL], [ $type = 'ul'], [ $attributes = NULL], [ $wrapper = 1])
  • $items
  • $title
  • $type
  • $attributes
  • $wrapper
theme_render_tpl (line 304)

输出缓冲

void theme_render_tpl ((string) $tpl, (array) $var, [(string) $hook = NULL])
  • (string) $tpl: theme 文件
  • (array) $var: 取出的变量
  • (string) $hook: theme 名称
theme_table (line 403)
void theme_table ( $header,  $rows, [ $attributes = array()], [ $caption = NULL])
  • $header
  • $rows
  • $attributes
  • $caption
_theme_table_cell (line 585)
void _theme_table_cell ( $cell, [ $header = FALSE])
  • $cell
  • $header

Documentation generated on Wed, 04 Jul 2012 14:35:57 +0800 by phpDocumentor 1.4.3