XOOPS 2.5.6
Final
|
Public Member Functions | |
bcachetime ($format= '') | |
bid ($format= '') | |
block_type ($format= '') | |
buildBlock () | |
buildContent ($position, $content="", $contentdb="") | |
buildTitle ($originaltitle, $newtitle= '') | |
c_type ($format= '') | |
content ($format= '') | |
countSimilarBlocks ($moduleId, $funcNum, $showFunc=null) | |
delete () | |
dirname ($format= '') | |
edit_func ($format= '') | |
func_file ($format= '') | |
func_num ($format= '') | |
getAllBlocks ($rettype="object", $side=null, $visible=null, $orderby="side,weight,bid", $isactive=1) | |
getAllBlocksByGroup ($groupid, $asobject=true, $side=null, $visible=null, $orderby="b.weight,b.bid", $isactive=1) | |
getAllByGroupModule ($groupid, $module_id=0, $toponlyblock=false, $visible=null, $orderby= 'b.weight, m.block_id', $isactive=1) | |
getByModule ($moduleid, $asobject=true) | |
getContent ($format= 's', $c_type= 't') | |
getContent ($format= 's', $c_type= 'T') | |
getNonGroupedBlocks ($module_id=0, $toponlyblock=false, $visible=null, $orderby= 'b.weight, m.block_id', $isactive=1) | |
getOptions () | |
getOptions () | |
id ($format= 'n') | |
isactive ($format= '') | |
isCustom () | |
isCustom () | |
last_modified ($format= '') | |
load ($id) | |
mid ($format= '') | |
name ($format= '') | |
options ($format= '') | |
show_func ($format= '') | |
side ($format= '') | |
store () | |
template ($format= '') | |
title ($format= '') | |
visible ($format= '') | |
weight ($format= '') | |
XoopsBlock ($id=null) | |
XoopsBlock ($id=null) | |
Public Member Functions inherited from XoopsObject | |
_loadFilters () | |
assignVar ($key, $value) | |
assignVars ($var_arr) | |
cleanVars () | |
destoryVars ($var) | |
getErrors () | |
getHtmlErrors () | |
getValues ($keys=null, $format= 's', $maxDepth=1) | |
getVar ($key, $format= 's') | |
& | getVars () |
initVar ($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '', $enumerations= '') | |
isDirty () | |
isNew () | |
loadFilters ($method) | |
registerFilter ($filtername) | |
setDirty () | |
setErrors ($err_str) | |
setFormVars ($var_arr=null, $pref= 'xo_', $not_gpc=false) | |
setNew () | |
setVar ($key, $value, $not_gpc=false) | |
setVars ($var_arr, $not_gpc=false) | |
toArray () | |
unsetDirty () | |
unsetNew () | |
& | xoopsClone () |
XoopsObject () | |
Public Attributes | |
$db | |
Public Attributes inherited from XoopsObject | |
$_errors = array() | |
$_filters = array() | |
$_isDirty = false | |
$_isNew = false | |
$cleanVars = array() | |
$vars = array() | |
Definition at line 26 of file xoopsblock.php.
XoopsBlock::bcachetime | ( | $format = '' | ) |
XoopsBlock::bid | ( | $format = '' | ) |
XoopsBlock::block_type | ( | $format = '' | ) |
XoopsBlock::buildBlock | ( | ) |
Build Block
Definition at line 185 of file xoopsblock.php.
References $GLOBALS, $options, $xoopsConfig, $xoopsOption, $xoTheme, and xoops_loadLanguage().
XoopsBlock::buildContent | ( | $position, | |
$content = "" , |
|||
$contentdb = "" |
|||
) |
Definition at line 230 of file xoopsblock.php.
XoopsBlock::buildTitle | ( | $originaltitle, | |
$newtitle = '' |
|||
) |
Enter description here...
string | $originaltitle | |
string | $newtitle |
Definition at line 247 of file xoopsblock.php.
References $ret.
XoopsBlock::c_type | ( | $format = '' | ) |
XoopsBlock::content | ( | $format = '' | ) |
XoopsBlock::countSimilarBlocks | ( | $moduleId, | |
$funcNum, | |||
$showFunc = null |
|||
) |
XoopsBlock::countSimilarBlocks()
mixed | $moduleId | |
mixed | $funcNum | |
mixed | $showFunc |
Definition at line 593 of file xoopsblock.php.
References $result, $sql, and XoopsDatabaseFactory\getDatabaseConnection().
XoopsBlock::delete | ( | ) |
Delete a ID from the database
Definition at line 124 of file xoopsblock.php.
References $sql.
XoopsBlock::dirname | ( | $format = '' | ) |
XoopsBlock::edit_func | ( | $format = '' | ) |
XoopsBlock::func_file | ( | $format = '' | ) |
XoopsBlock::func_num | ( | $format = '' | ) |
XoopsBlock::getAllBlocks | ( | $rettype = "object" , |
|
$side = null , |
|||
$visible = null , |
|||
$orderby = "side,weight,bid" , |
|||
$isactive = 1 |
|||
) |
string | $rettype | |
mixed | $side | |
mixed | $visible | |
string | $orderby | |
integer | $isactive |
Definition at line 380 of file xoopsblock.php.
References $result, $ret, $sql, $title, and XoopsDatabaseFactory\getDatabaseConnection().
XoopsBlock::getAllBlocksByGroup | ( | $groupid, | |
$asobject = true , |
|||
$side = null , |
|||
$visible = null , |
|||
$orderby = "b.weight,b.bid" , |
|||
$isactive = 1 |
|||
) |
get all the blocks that match the supplied parameters
$side | 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 | groupid (can be an array) |
$visible | 0: not visible 1: visible |
$orderby | order of the blocks |
Definition at line 317 of file xoopsblock.php.
References $i, $result, $ret, $sql, XoopsDatabaseFactory\getDatabaseConnection(), XOOPS_CENTERBLOCK_ALL, and XOOPS_SIDEBLOCK_BOTH.
Referenced by smarty_function_block().
XoopsBlock::getAllByGroupModule | ( | $groupid, | |
$module_id = 0 , |
|||
$toponlyblock = false , |
|||
$visible = null , |
|||
$orderby = 'b.weight , |
|||
m.block_id' | , | ||
$isactive = 1 |
|||
) |
XoopsBlock::getAllByGroupModule()
mixed | $groupid | |
integer | $module_id | |
mixed | $toponlyblock | |
mixed | $visible | |
string | $orderby | |
integer | $isactive |
Definition at line 469 of file xoopsblock.php.
References $module_id, $result, $ret, $sql, and XoopsDatabaseFactory\getDatabaseConnection().
XoopsBlock::getByModule | ( | $moduleid, | |
$asobject = true |
|||
) |
mixed | $moduleid | |
mixed | $asobject |
Definition at line 437 of file xoopsblock.php.
References $result, $ret, $sql, and XoopsDatabaseFactory\getDatabaseConnection().
Referenced by xoops_module_activate(), xoops_module_deactivate(), xoops_module_install(), xoops_module_uninstall(), and xoops_template_clear_module_cache().
XoopsBlock::getContent | ( | $format = 's' , |
|
$c_type = 't' |
|||
) |
do stripslashes/htmlspecialchars according to the needed output
$format | output use: S for Show and E for Edit |
$c_type | type of block content |
Definition at line 144 of file xoopsblock.php.
References $content, $myts, and MyTextSanitizer\getInstance().
XoopsBlock::getContent | ( | $format = 's' , |
|
$c_type = 'T' |
|||
) |
return the content of the block for output
string | $format | |
string | $c_type | type of content Legal value for the type of content
|
Definition at line 253 of file block.php.
References $content, $myts, and MyTextSanitizer\getInstance().
XoopsBlock::getNonGroupedBlocks | ( | $module_id = 0 , |
|
$toponlyblock = false , |
|||
$visible = null , |
|||
$orderby = 'b.weight , |
|||
m.block_id' | , | ||
$isactive = 1 |
|||
) |
XoopsBlock::getNonGroupedBlocks()
integer | $module_id | |
mixed | $toponlyblock | |
mixed | $visible | |
string | $orderby | |
integer | $isactive |
Definition at line 534 of file xoopsblock.php.
References $module_id, $result, $ret, $sql, and XoopsDatabaseFactory\getDatabaseConnection().
XoopsBlock::getOptions | ( | ) |
Definition at line 274 of file xoopsblock.php.
References $file, $GLOBALS, $options, and $xoopsConfig.
XoopsBlock::getOptions | ( | ) |
XoopsBlock::id | ( | $format = 'n' | ) |
XoopsBlock::isactive | ( | $format = '' | ) |
XoopsBlock::isCustom | ( | ) |
XoopsBlock::last_modified | ( | $format = '' | ) |
XoopsBlock::load | ( | $id | ) |
XoopsBlock::mid | ( | $format = '' | ) |
XoopsBlock::name | ( | $format = '' | ) |
XoopsBlock::options | ( | $format = '' | ) |
XoopsBlock::show_func | ( | $format = '' | ) |
XoopsBlock::side | ( | $format = '' | ) |
XoopsBlock::store | ( | ) |
XoopsBlock::template | ( | $format = '' | ) |
XoopsBlock::title | ( | $format = '' | ) |
XoopsBlock::visible | ( | $format = '' | ) |
XoopsBlock::weight | ( | $format = '' | ) |
XoopsBlock::XoopsBlock | ( | $id = null | ) |
Definition at line 30 of file xoopsblock.php.
References XoopsDatabaseFactory\getDatabaseConnection(), XOBJ_DTYPE_INT, XOBJ_DTYPE_OTHER, XOBJ_DTYPE_TXTAREA, and XOBJ_DTYPE_TXTBOX.
XoopsBlock::XoopsBlock | ( | $id = null | ) |
constructor
mixed | $id |
Definition at line 35 of file block.php.
References $i, XOBJ_DTYPE_INT, XOBJ_DTYPE_OTHER, XOBJ_DTYPE_TXTAREA, XOBJ_DTYPE_TXTBOX, and xoops_gethandler().
XoopsBlock::$db |
Definition at line 28 of file xoopsblock.php.