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

Class: Admin_View

Source Location: /DotKernel/admin/views/AdminView.php

Class Overview

Dot_Template
   |
   --View
      |
      --Admin_View

Admin View Class


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: View

View::displayMessage()
Display message - error, warning, info
View::getInstance()
Returns an instance of Dot_View
View::init()
Initalize some parameter
View::paginator()
Create the pagination, based on how many data
View::setInfoBar()
Display the info bar only if user is logged id
View::setSeoValues()
Set SEO values
View::setViewFile()
Set the template file
View::setViewMenu()
Display the specific menu that were declared in configs/menu.
View::setViewPaths()
Set different paths url(site, templates, images)

Class: Dot_Template

Dot_Template::__construct()
Singleton pattern implementation makes 'new' unavailable
Dot_Template::endTimer()
Return the end time
Dot_Template::exists()
Inspired From PEAR HTML_Template_PHPLIB 1. Checks if the given variable exists.
Dot_Template::filename()
When called with a relative pathname, this function will return the pathname with $this->root prepended.
Dot_Template::finish()
Returns the finished version of $str.
Dot_Template::get()
Returns the finished version of the value of the variable named by $varname.
Dot_Template::getInstance()
Returns an instance of Dot_View
Dot_Template::getLastError()
Returns the last error message if any
Dot_Template::getUndefined()
Returns a hash of unresolved variable names in $varname, keyed by their names (that is, the hash has the form $a[$name] = $name).
Dot_Template::getVar()
Returns the value of the variable named by $varname.
Dot_Template::getVars()
Returns an associative array of all defined variables with the name as the key and the value of the variable as the value.
Dot_Template::halt()
Is called whenever an error occurs and will handle the error according to the policy defined in $this->haltOnError. in $this->lastError.
Dot_Template::haltMsg()
Prints an error message.
Dot_Template::initBlock()
Initialize a block A variable $parent may contain a variable block defined by: <!-- BEGIN $varname --> content <!-- END $varname -->.
Dot_Template::initVar()
Initialize the value of a variable.
Dot_Template::loadFile()
If a variable's value is undefined and the variable has a filename stored in $this->file[$varname] then the backing file will be loaded and the file's contents will be assigned as the variable's value.
Dot_Template::p()
Prints the finished version of the value of the variable named by $varname.
Dot_Template::parse()
Substitutes the values of all defined variables in the variable named $varname and stores or appends the result in the variable named $target.
Dot_Template::pparse()
This is shorthand for print $this->parse(.
Dot_Template::psubst()
This is shorthand for print $this->subst($varname).
Dot_Template::setBlock()
A variable $parent may contain a variable block defined by: <!-- BEGIN $varname --> content <!-- END $varname -->.
Dot_Template::setFile()
Defines a filename for the initial value of a variable.
Dot_Template::setRoot()
Checks that $root is a valid directory and if so sets this directory as the base directory from which templates are loaded by storing the value in $this->root.
Dot_Template::setUnknowns()
Sets the policy for dealing with unresolved variable names.
Dot_Template::setVar()
Sets the value of a variable.
Dot_Template::startTimer()
Start the time to measure something
Dot_Template::subst()
Fills in all the variables contained within the variable named $varname. original value of the variable varname is not changed. is not 'finished'.
Dot_Template::unsetVar()
Unsets a variable completely.
Dot_Template::varname()
Will construct a regexp for a given variable name with any special chars quoted.
Dot_Template::__clone()
Singleton pattern implementation makes 'clone' unavailable

Class Details

[line 21]
Admin View Class

Admin View Class class that prepare output related to User controller




Tags:

author:  DotKernel Team <team@dotkernel.com>


[ Top ]


Class Methods


constructor __construct [line 28]

Admin_View __construct( Dot_Template $tpl)

Constructor

Constructor




Tags:

access:  public


Overrides Dot_Template::__construct() (Singleton pattern implementation makes 'new' unavailable)

Parameters:

Dot_Template   $tpl  

[ Top ]

method details [line 84]

void details( string $templateFile, [array $data = array()])

Display admin user details.

Display admin user details. It is used for add and update actions




Tags:

access:  public


Parameters:

string   $templateFile  
array   $data   [optional]

[ Top ]

method listUser [line 52]

void listUser( string $templateFile, array $list, int $page, [bool $ajax = false])

List the admin users

List the admin users




Tags:

access:  public


Parameters:

string   $templateFile  
array   $list  
int   $page  
bool   $ajax   - Using ajax, parse only the list content

[ Top ]

method loginForm [line 39]

void loginForm( string $templateFile)

Display the login form

Display the login form




Tags:

access:  public


Parameters:

string   $templateFile  

[ Top ]

method loginsUser [line 108]

void loginsUser( string $templateFile, array $list, int $page)

Display user logins list

Display user logins list




Tags:

access:  public


Parameters:

string   $templateFile  
array   $list  
int   $page  

[ Top ]


Documentation generated on Wed, 21 Jul 2010 07:34:36 +0000 by phpDocumentor 1.4.3