CodeIgniter
[ class tree: CodeIgniter ] [ index: CodeIgniter ] [ all elements ]

Class: Prepare_view

Source Location: /libraries/Prepare_view.php

Class Overview


Prepare View Class


Author(s):

Copyright:

  • Zdenek Kalina

Variables

Methods



Class Details

[line 12]
Prepare View Class

Used for preping data before sending to view




Tags:

author:  Zdenek Kalina <kalinz1@fel.cvut.cz>
copyright:  Zdenek Kalina


[ Top ]


Class Variables

$actions = array()

[line 14]


Type:   mixed


[ Top ]

$buttons = array()

[line 15]


Type:   mixed


[ Top ]

$cnt_rows =  0

[line 20]


Type:   mixed


[ Top ]

$cols = array()

[line 17]


Type:   mixed


[ Top ]

$items = array()

[line 13]


Type:   mixed


[ Top ]

$max_cols =  0

[line 19]


Type:   mixed


[ Top ]

$messages = array()

[line 16]


Type:   mixed


[ Top ]

$rows = array()

[line 18]


Type:   mixed


[ Top ]



Class Methods


method add_action [line 155]

void add_action( string $action, [string $label = ''], [integer $params_count = 0], [boolean $anchor = true], [string $optional = ''])

Add action, means url



Tags:

access:  public


Parameters:

string   $action   target url
string   $label  
integer   $params_count   count of params in target url
boolean   $anchor   use anchor method - local urls
string   $optional   some params to html tag

[ Top ]

method add_button [line 185]

void add_button( string $value)

Add button



Tags:

access:  public


Parameters:

string   $value  

[ Top ]

method add_col [line 74]

void add_col( string $name, [string $value = ''], [string $label = ''], [boolean $required = false], [boolean $form_error = false], [array $optional = array()])

Add column to form or table



Tags:

access:  public


Parameters:

string   $name   identificantion
string   $value  
string   $label  
boolean   $required   if print that field is required
boolean   $form_error   if error has to be shown if field not equal some rules
array   $optional  

[ Top ]

method add_item [line 29]

void add_item( string $name, [string $value = ''])

Add item



Tags:

access:  public


Parameters:

string   $name   identificantion
string   $value  

[ Top ]

method add_item2 [line 36]

void add_item2( $name, [ $value = ''], [ $label = ''], [ $required = false], [ $form_error = false], [ $optional = array()])



Parameters:

   $name  
   $value  
   $label  
   $required  
   $form_error  
   $optional  

[ Top ]

method add_message [line 213]

void add_message( string $value)

Add message



Tags:

access:  public


Parameters:

string   $value  

[ Top ]

method add_row [line 99]

void add_row( integer $cols, [array $items = array()], [integer $trim_row = 0])

Add row to form or table You can add items that was already added to cols array



Tags:

access:  public


Parameters:

integer   $cols   number of cols which has to be in row
array   $items   items by name to add into row
integer   $trim_row   number of rows, if 0 rows will added since some cols are in items array

[ Top ]

method load_actions [line 172]

string|array load_actions( [boolean $string = true], [boolean $clear = true], [string $delim = ' | '])

Load actions



Tags:

access:  public


Parameters:

boolean   $string   return as string
boolean   $clear   delete all actions after load
string   $delim   delimiter if returning as string

[ Top ]

method load_buttons [line 200]

string|array load_buttons( [boolean $string = true], [boolean $clear = true], [string $delim = ''])

Load buttons



Tags:

access:  public


Parameters:

boolean   $string   return as string
boolean   $clear   delete all buttons after load
string   $delim   delimiter if returning as string

[ Top ]

method load_items [line 56]

array load_items( [boolean $clear = true])

Load items



Tags:

access:  public


Parameters:

boolean   $clear   delete all items after load

[ Top ]

method load_messages [line 244]

string|array load_messages( [boolean $string = true], [boolean $clear = true], [string $delim = ''])

Load messages



Tags:

access:  public


Parameters:

boolean   $string   return as string
boolean   $clear   delete all messages after load
string   $delim   delimiter if returning as string

[ Top ]

method load_rows [line 135]

array load_rows( [boolean $clear_rows = true], [boolean $clear_cols = true], [boolean $clear_max_cols = true], [boolean $clear_cnt_rows = true])

Load rows



Tags:

access:  public


Parameters:

boolean   $clear_rows   clear all rows after load
boolean   $clear_cols   clear cols rows after load
boolean   $clear_max_cols   clear max col counter
boolean   $clear_cnt_rows   clear rows counter

[ Top ]

method set_message_delimiters [line 226]

void set_message_delimiters( [string $before = ''], [string $after = ''])

Set delimiters for message



Tags:

access:  public


Parameters:

string   $before  
string   $after  

[ Top ]


Documentation generated on Sun, 11 Jan 2009 04:21:11 +0100 by phpDocumentor 1.4.1