|
| & | create ($isNew=true) |
| |
| & | createByInfo ($info) |
| |
| & | get ($id) |
| |
| | insert (&$block, $autolink=false) |
| |
| | delete (&$block) |
| |
| & | getObjects ($criteria=null, $id_as_key=false) |
| |
| & | getObjectsDirectly ($criteria=null) |
| |
| & | getList ($criteria=null) |
| |
| & | getAllBlocksByGroup ($groupid, $asobject=true, $side=null, $visible=null, $orderby='b.weight, b.bid', $isactive=1) |
| |
| & | getAllBlocks ($rettype='object', $side=null, $visible=null, $orderby='side, weight, bid', $isactive=1) |
| |
| & | getByModule ($moduleid, $asobject=true) |
| |
| & | getAllByGroupModule ($groupid, $module_id=0, $toponlyblock=false, $visible=null, $orderby='b.weight, b.bid', $isactive=1) |
| |
| & | getBlocks ($groupid, $mid=false, $blockFlag=SHOW_BLOCK_ALL, $orderby='b.weight, b.bid') |
| |
| & | getNonGroupedBlocks ($module_id=0, $toponlyblock=false, $visible=null, $orderby='b.weight, b.bid', $isactive=1) |
| |
| | countSimilarBlocks ($moduleId, $funcNum, $showFunc=null) |
| |
| | syncIsActive ($moduleId, $isActive, $force=false) |
| |
Public Member Functions inherited from XoopsObjectHandler |
| | __construct (&$db) |
| |
| & | create () |
| |
| | insert (&$object) |
| |
Definition at line 341 of file block.php.
◆ countSimilarBlocks()
| countSimilarBlocks |
( |
| $moduleId, |
|
|
| $funcNum, |
|
|
| $showFunc = null ) |
◆ create()
| & create |
( |
| $isNew = true | ) |
|
create a new block
- See also
- XoopsBlock
- Parameters
-
| bool | $isNew | is the new block new?? |
- Returns
- object XoopsBlock reference to the new block
Definition at line 351 of file block.php.
◆ createByInfo()
Create a new block by array that is defined in xoops_version. You must be careful that the value that it is returned doesn't have $mid, $func_num and $dirname.
- Parameters
-
- Returns
- object XoopsBlock
Definition at line 368 of file block.php.
◆ delete()
delete a block from the database
- Parameters
-
| object | XoopsBlock $block reference to the block to delete |
- Returns
- bool TRUE if succesful
Reimplemented from XoopsObjectHandler.
Definition at line 494 of file block.php.
◆ get()
◆ getAllBlocks()
| & getAllBlocks |
( |
| $rettype = 'object', |
|
|
| $side = null, |
|
|
| $visible = null, |
|
|
| $orderby = 'side, |
|
|
weight | , |
|
|
bid' | , |
|
|
| $isactive = 1 ) |
◆ getAllBlocksByGroup()
| & getAllBlocksByGroup |
( |
| $groupid, |
|
|
| $asobject = true, |
|
|
| $side = null, |
|
|
| $visible = null, |
|
|
| $orderby = 'b.weight, |
|
|
b.bid' | , |
|
|
| $isactive = 1 ) |
get all the blocks that match the supplied parameters
- Parameters
-
| groupid | $groupid | (can be an array) |
| bool | $asobject | |
| $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 |
| $visible | 0: not visible 1: visible |
| string | $orderby | of the blocks |
| int | $isactive | |
- Returns
- array
Definition at line 605 of file block.php.
◆ getAllByGroupModule()
| & getAllByGroupModule |
( |
| $groupid, |
|
|
| $module_id = 0, |
|
|
| $toponlyblock = false, |
|
|
| $visible = null, |
|
|
| $orderby = 'b.weight, |
|
|
b.bid' | , |
|
|
| $isactive = 1 ) |
Gets block objects by groups & modules.
- Parameters
-
| $groupid | |
| int | $module_id | |
| bool | $toponlyblock | |
| null | $visible | |
| string | $orderby | |
| int | $isactive | |
- Returns
- array
Definition at line 746 of file block.php.
◆ getBlocks()
| & getBlocks |
( |
| $groupid, |
|
|
| $mid = false, |
|
|
| $blockFlag = SHOW_BLOCK_ALL, |
|
|
| $orderby = 'b.weight, |
|
|
b.bid' | ) |
Return block instance array by $groupid, $mid and $blockFlag. This function is new function of Cube and used from controller.
- Parameters
-
| $groupid | |
| bool | $mid | |
| int | $blockFlag | |
| string | $orderby | |
- Returns
- array
Definition at line 806 of file block.php.
◆ getByModule()
| & getByModule |
( |
| $moduleid, |
|
|
| $asobject = true ) |
◆ getList()
| & getList |
( |
| $criteria = null | ) |
|
get a list of blocks matchich certain conditions
- Parameters
-
| string | $criteria | conditions to match |
- Returns
- array array of blocks matching the conditions
Definition at line 578 of file block.php.
◆ getNonGroupedBlocks()
| & getNonGroupedBlocks |
( |
| $module_id = 0, |
|
|
| $toponlyblock = false, |
|
|
| $visible = null, |
|
|
| $orderby = 'b.weight, |
|
|
b.bid' | , |
|
|
| $isactive = 1 ) |
- Parameters
-
| int | $module_id | |
| bool | $toponlyblock | |
| null | $visible | |
| string | $orderby | |
| int | $isactive | |
- Returns
- array
Definition at line 880 of file block.php.
◆ getObjects()
| & getObjects |
( |
| $criteria = null, |
|
|
| $id_as_key = false ) |
retrieve array of XoopsBlocks meeting certain conditions
- Parameters
-
| object | $criteria | CriteriaElement with conditions for the blocks |
| bool | $id_as_key | should the blocks' bid be the key for the returned array? |
- Returns
- array
XoopsBlocks matching the conditions
Definition at line 516 of file block.php.
◆ getObjectsDirectly()
| & getObjectsDirectly |
( |
| $criteria = null | ) |
|
◆ insert()
| insert |
( |
& | $block, |
|
|
| $autolink = false ) |
write a new block into the database
- Parameters
-
| object | XoopsBlock $block reference to the block to insert |
| bool | $autolink | |
- Returns
- bool TRUE if succesful
Definition at line 425 of file block.php.
◆ syncIsActive()
| syncIsActive |
( |
| $moduleId, |
|
|
| $isActive, |
|
|
| $force = false ) |
Changes 'isactive' value of the module specified by $moduleId.
- Parameters
-
| $moduleId | |
| $isActive | |
| bool | $force | |
Definition at line 957 of file block.php.
The documentation for this class was generated from the following file: