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

Procedural File: block.php

Source Location: /public_html/admin/block.php



Page Details:

Block administration page: Create, edit, delete, move, enable/disable blocks for the left and right sidebars of your Geeklog site.



Includes:

require_once('auth.inc.php') [line 50]
Security check to ensure user even belongs on this page

require_once('../lib-common.php') [line 45]
Geeklog common function library







changeBlockStatus [line 935]

void changeBlockStatus( array $enabledblocks, array $visibleblocks)

Enable and Disable blocks



Parameters

array   $enabledblocks   array containing ids of enabled blocks
array   $visibleblocks   array containing ids of visible blocks
[ Top ]



cmpDynamicBlocks [line 651]

boolean cmpDynamicBlocks( $a, $b)

Used by listblocks function when sorting the dynamic block array using the usort function



Parameters

   $a  
   $b  
[ Top ]



deleteBlock [line 962]

string deleteBlock( string $bid)

Delete a block



Tags:

return:  HTML redirect or error message


Parameters

string   $bid   id of block to delete
[ Top ]



editblock [line 251]

string editblock( [string $bid = ''])

Shows the block editor This will show a block edit form. If this is a Geeklog default block it will send it off to editdefaultblock.



Tags:

return:  HTML for block editor


Parameters

string   $bid   ID of block to edit
[ Top ]



editdefaultblock [line 77]

string editdefaultblock( array $A, int $access)

Shows default block editor Default blocks are those blocks that Geeklog requires to function properly. Because of their special role, they have restricted edit properties so this form shows that.



Tags:

return:  HTML for default block editor


Parameters

array   $A   Array of data to show on form
int   $access   Permissions this user has
[ Top ]



listblocks [line 491]

string listblocks( [ $position = BLOCK_ALL_POSITIONS])

Display two lists of blocks, separated by left and right



Tags:

return:  HTML for the two lists


Parameters

   $position  
[ Top ]



moveBlock [line 889]

void moveBlock( )

Move blocks UP, Down and Switch Sides - Left and Right NOTE: Does not return.



[ Top ]



overridePostdata [line 186]

nothing overridePostdata( &$A, array $A)

Override the post data to the data given in the parameter This is helper function for editblock function



Parameters

array   $A   Array of data by reference
   &$A  
[ Top ]



reorderblocks [line 856]

void reorderblocks( )

Re-orders all blocks in increments of 10



[ Top ]



saveblock [line 679]

string saveblock( string $bid, $name, string $title, $help, string $type, int $blockorder, $device, string $content, string $rdfurl, string $rdfupdated, string $rdflimit, string $phpblockfn, int $onleft, int $owner_id, int $group_id, array $perm_owner, array $perm_group, array $perm_members, array $perm_anon, int $is_enabled, $allow_autotags, $cache_time, string $tid)

Saves a block



Tags:

return:  HTML redirect or error message


Parameters

string   $bid   Block ID
string   $title   Block title
string   $type   Type of block
int   $blockorder   Order block appears relative to the others
string   $content   Content of block
string   $tid   Ids of topics block is assigned to
string   $rdfurl   URL to headline feed for portal blocks
string   $rdfupdated   Date RSS/RDF feed was last updated
string   $rdflimit   max. number of entries to import from feed
string   $phpblockfn   Name of php function to call to get content
int   $onleft   Flag indicates if block shows up on left or right
int   $owner_id   ID of owner
int   $group_id   ID of group block belongs to
array   $perm_owner   Permissions the owner has on the object
array   $perm_group   Permissions the group has on the object
array   $perm_members   Permissions the logged in members have
array   $perm_anon   Permissinos anonymous users have
int   $is_enabled   Flag, indicates if block is enabled or not
   $name  
   $help  
   $device  
   $allow_autotags  
   $cache_time  
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:45:26 +0000 by phpDocumentor 1.4.3