XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsTplfileHandler Class Reference
Inheritance diagram for XoopsTplfileHandler:
Inheritance graph

Public Member Functions

create ($isNew=true)
 
 delete (&$tplfile)
 
 find ($tplset=null, $type=null, $refid=null, $module=null, $file=null, $getsource=false)
 
 forceUpdate (&$tplfile)
 
get ($id, $getsource=false)
 
 getCount ($criteria=null)
 
 getModuleTplCount ($tplset)
 
 getObjects ($criteria=null, $getsource=false, $id_as_key=false)
 
 insert (&$tplfile)
 
 loadSource (&$tplfile)
 
 templateExists ($tplname, $tplset_name)
 
- Public Member Functions inherited from XoopsObjectHandler
create ()
 
 delete (&$object)
 
get ($int_id)
 
 insert (&$object)
 
 XoopsObjectHandler (&$db)
 

Additional Inherited Members

- Public Attributes inherited from XoopsObjectHandler
 $db
 

Detailed Description

XOOPS template file handler class. This class is responsible for providing data access mechanisms to the data source of XOOPS template file class objects.

Author
Kazumi Ono onoka.nosp@m.zu@x.nosp@m.oops..nosp@m.org

Definition at line 170 of file tplfile.php.

Member Function Documentation

& XoopsTplfileHandler::create (   $isNew = true)

create a new Tplfile

See Also
XoopsBlock
Parameters
bool$isNewis the new Tplfile new??
Returns
object XoopsTplfile reference to the new Tplfile

Definition at line 179 of file tplfile.php.

XoopsTplfileHandler::delete ( $tplfile)

delete a block from the database

Parameters
objectXoopsBlock $block reference to the block to delete
Returns
bool TRUE if succesful

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 344 of file tplfile.php.

References $result, and $sql.

XoopsTplfileHandler::find (   $tplset = null,
  $type = null,
  $refid = null,
  $module = null,
  $file = null,
  $getsource = false 
)

Find Template File

Parameters
string$tplset
string$type
string$refid
string$module
string$file
string$getsource
Returns
object

Definition at line 451 of file tplfile.php.

References $criteria, $criteria2, $file, $module, $type, and getObjects().

Here is the call graph for this function:

XoopsTplfileHandler::forceUpdate ( $tplfile)

Enter description here...

Parameters
unknown_type$tplfile
Returns
unknown

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 304 of file tplfile.php.

References $result, and $sql.

& XoopsTplfileHandler::get (   $id,
  $getsource = false 
)

retrieve a specific XoopsTplfile

See Also
XoopsBlock
Parameters
int$idtpl_id of the block to retrieve
Returns
object XoopsTplfile reference to the Tplfile

Definition at line 195 of file tplfile.php.

References $result, and $sql.

XoopsTplfileHandler::getCount (   $criteria = null)

Get count

Parameters
array$criteria
Returns
int

Definition at line 405 of file tplfile.php.

References $criteria, $result, and $sql.

Referenced by templateExists().

Here is the caller graph for this function:

XoopsTplfileHandler::getModuleTplCount (   $tplset)

getModuleTplCount

Parameters
string$tplset
Returns
array

Definition at line 424 of file tplfile.php.

References $result, $ret, and $sql.

XoopsTplfileHandler::getObjects (   $criteria = null,
  $getsource = false,
  $id_as_key = false 
)

retrieve array of XoopsBlocks meeting certain conditions

Parameters
object$criteriaCriteriaElement with conditions for the blocks
bool$id_as_keyshould the blocks' bid be the key for the returned array?
Returns
array XoopsBlocks matching the conditions

Definition at line 368 of file tplfile.php.

References $criteria, $limit, $result, $ret, $sql, and $start.

Referenced by find().

Here is the caller graph for this function:

XoopsTplfileHandler::insert ( $tplfile)

write a new Tplfile into the database

Parameters
objectXoopsTplfile $block reference to the Tplfile to insert
Returns
bool TRUE if succesful

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 249 of file tplfile.php.

References $result, and $sql.

XoopsTplfileHandler::loadSource ( $tplfile)

Enter description here...

Parameters
unknown_type$tplfile
Returns
unknown

: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5

Definition at line 223 of file tplfile.php.

References $result, and $sql.

XoopsTplfileHandler::templateExists (   $tplname,
  $tplset_name 
)

Template Exists

Parameters
string$tplname
string$tplset_name
Returns
unknown

Definition at line 487 of file tplfile.php.

References $criteria, and getCount().

Here is the call graph for this function:


The documentation for this class was generated from the following file: