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

Class: Nsm_reports_model

Source Location: /models/nsm_reports_model.php

Class Overview

CI_Model
   |
   --Nsm_reports_model

Reports model class


Variables

Methods



Class Details

[line 22]
Reports model class

This class is added to the Code Igniter library and is used to retrieve reports




[ Top ]


Class Variables

$report_path =  ''

[line 31]

File-path of module reports directory



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 41]

void __construct( )

PHP5 constructor function.

Sets the report_path of the model during object construction to a default location




Tags:

access:  public


[ Top ]

method find [line 110]

array find( $report)

Retrieves a report from the reports directory.

Includes the report using PHP native file-system command and returns a new instance of the report




Tags:

return:  Array of reports found in the method
access:  public


Parameters:

   $report  

[ Top ]

method find_all [line 75]

array find_all( )

Retrieves all reports that appear in the reports directory as an array



Tags:

return:  Array of reports found in the method
access:  public


[ Top ]

method get_report_path [line 64]

string get_report_path( )

Returns the report path that the object is using



Tags:

return:  File-path of reports directory
access:  public


[ Top ]

method set_report_path [line 53]

void set_report_path( string $report_path)

Sets the folder path that the object is using



Tags:

access:  public


Parameters:

string   $report_path   The file-path where reports are located

[ Top ]


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