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

Class: Nsm_reports_helper

Source Location: /libraries/nsm_reports_helper.php

Class Overview


Extends EE Control Panel functions


Methods



Class Details

[line 30]
Extends EE Control Panel functions



[ Top ]


Class Methods


constructor __construct [line 43]

Nsm_reports_helper __construct( )

Constructs the class and sets the addon id



Tags:

access:  public


[ Top ]

method addCpCss [line 55]

void addCpCss( $css $css, [$options $options = array()])

Adds CSS to the CP



Tags:

access:  public


Parameters:

$css   $css   string The CSS filepath or content
$options   $options   array The options for this include

[ Top ]

method addCpJs [line 72]

void addCpJs( $js $js, [$options $options = array()])

Adds JS to the CP



Tags:

access:  public


Parameters:

$js   $js   string The JS filepath or content
$options   $options   array The options for this include

[ Top ]

method addCpThemeAsset [line 89]

void addCpThemeAsset( $content $content, $options $options)

Adds either CSS or JS to the CP



Tags:

access:  public


Parameters:

$content   $content   string The CSS/JS content or filepath
$options   $options   array The options for this include

[ Top ]

method checkbox [line 207]

string checkbox( string $input_name, $input_value, boolean $checked, [ $options = array()], string $input_label)

Creates a checkbox w/ optional label



Tags:

return:  Checkbox html
access:  public


Parameters:

string   $input_name   The name of the input eg: Lg_polls_ext[log_ip]
string   $input_label   The label for the input eg: Polls
boolean   $checked   Is the checkbox checked
array   $options   Optional arguments
   $input_value  

[ Top ]

method selectbox [line 150]

string selectbox( string $input_name, $select_options, mixed $selected_options, [ $options = array()])

Creates a select box



Tags:

return:  Select box html
access:  public


Parameters:

string   $input_name   The name of the input eg: Lg_polls_ext[log_ip]
array   $select_options   The select box options in a multi-dimensional array. Array keys are used as the option label, array values are used as the option value
mixed   $selected_options   The selected value or an array of values
array   $options   Optional arguments.

[ Top ]

method yesNoRadioGroup [line 264]

string yesNoRadioGroup( string $input_name, boolean $checked_value, [array $options = array()], string $input_label)

Yes / No radio group



Tags:

return:  Checkbox html
access:  public


Parameters:

string   $input_name   The name of the input eg: Lg_polls_ext[log_ip]
string   $input_label   The label for the input eg: Polls
boolean   $checked_value   TRUE for yes, FALSE for no
array   $options   Optional arguments

[ Top ]


Documentation generated on Fri, 11 Mar 2011 10:05:49 +1100 by phpDocumentor 1.4.3