XOOPS Docs - kernel
[ class tree: kernel ] [ index: kernel ] [ all elements ]

Class: XoopsBlock

Source Location: /class/xoopsblock.php

Class Overview

XoopsObject
   |
   --XoopsBlock

Base class for all objects in the Xoops kernel (and beyond)


Author(s):

  • Kazumi Ono (AKA onokazu)

Copyright:

  • copyright © 2000 XOOPS.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: XoopsObject

XoopsObject::XoopsObject()
constructor
XoopsObject::assignVar()
assign a value to a variable
XoopsObject::cleanVars()
clean values of all variables of the object for storage.
XoopsObject::getErrors()
return the errors for this object as an array
XoopsObject::getHtmlErrors()
return the errors for this object as html
XoopsObject::getValues()
Returns the values of the specified variables
XoopsObject::getVar()
returns a specific variable for the object in a proper format
XoopsObject::getVars()
returns all variables for the object
XoopsObject::initVar()
initialize variables for the object
XoopsObject::isDirty()
mark modified objects as dirty
XoopsObject::isNew()
used for new/clone objects
XoopsObject::registerFilter()
dynamically register additional filter for the object
XoopsObject::setDirty()
mark modified objects as dirty
XoopsObject::setErrors()
add an error
XoopsObject::setNew()
used for new/clone objects
XoopsObject::setVar()
assign a value to a variable
XoopsObject::unsetDirty()
mark modified objects as dirty
XoopsObject::unsetNew()
used for new/clone objects
XoopsObject::xoopsClone()
create a clone(copy) of the current object

Class Details

[line 37]
Base class for all objects in the Xoops kernel (and beyond)



Tags:

author:  Kazumi Ono (AKA onokazu)
copyright:  copyright © 2000 XOOPS.org


[ Top ]


Class Variables

$db =

[line 39]


Type:   mixed


[ Top ]



Class Methods


constructor XoopsBlock [line 41]

XoopsBlock XoopsBlock( [ $id = null])



Parameters:

   $id  

[ Top ]

method buildBlock [line 169]

void buildBlock( )



[ Top ]

method buildContent [line 218]

void buildContent( $position, [ $content = ""], [ $contentdb = ""])



Parameters:

   $position  
   $content  
   $contentdb  

[ Top ]

method buildTitle [line 228]

void buildTitle( $originaltitle, [ $newtitle = ""])



Parameters:

   $originaltitle  
   $newtitle  

[ Top ]

method countSimilarBlocks [line 516]

void countSimilarBlocks( $moduleId, $funcNum, [ $showFunc = null])



Parameters:

   $moduleId  
   $funcNum  
   $showFunc  

[ Top ]

method delete [line 113]

void delete( )



[ Top ]

method getAllBlocks [line 347]

void getAllBlocks( [ $rettype = "object"], [ $side = null], [ $visible = null], [ $orderby = "side,weight,bid"], [ $isactive = 1])



Parameters:

   $rettype  
   $side  
   $visible  
   $orderby  
   $isactive  

[ Top ]

method getAllBlocksByGroup [line 293]

array getAllBlocksByGroup( $side $groupid, [$groupid $asobject = true], [$visible $side = null], [$orderby $visible = null], [ $orderby = "b.weight,b.bid"], [ $isactive = 1])

get all the blocks that match the supplied parameters



Tags:

return:  of block objects


Parameters:

$side   $groupid   0: sideblock - left 1: sideblock - right 2: sideblock - left and right 3: centerblock - left 4: centerblock - right 5: centerblock - center 6: centerblock - left, right, center
$groupid   $asobject   groupid (can be an array)
$visible   $side   0: not visible 1: visible
$orderby   $visible   order of the blocks
   $orderby  
   $isactive  

[ Top ]

method getAllByGroupModule [line 416]

void getAllByGroupModule( $groupid, [ $module_id = 0], [ $toponlyblock = false], [ $visible = null], [ $orderby = 'b.weight,b.bid'], [ $isactive = 1])



Parameters:

   $groupid  
   $module_id  
   $toponlyblock  
   $visible  
   $orderby  
   $isactive  

[ Top ]

method getByModule [line 396]

void getByModule( $moduleid, [ $asobject = true])



Parameters:

   $moduleid  
   $asobject  

[ Top ]

method getContent [line 133]

string getContent( [$format $format = 'S'], [$c_type $c_type = 'T'])

do stripslashes/htmlspecialchars according to the needed output



Parameters:

$format   $format   output use: S for Show and E for Edit
$c_type   $c_type   type of block content

[ Top ]

method getNonGroupedBlocks [line 465]

void getNonGroupedBlocks( [ $module_id = 0], [ $toponlyblock = false], [ $visible = null], [ $orderby = 'b.weight,b.bid'], [ $isactive = 1])



Parameters:

   $module_id  
   $toponlyblock  
   $visible  
   $orderby  
   $isactive  

[ Top ]

method getOptions [line 250]

void getOptions( )

gets html form for editting block options



[ Top ]

method isCustom [line 238]

void isCustom( )



[ Top ]

method load [line 77]

void load( $id)



Parameters:

   $id  

[ Top ]

method store [line 84]

void store( )



[ Top ]


XOOPS Docs generated by phpDocumentor