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('../lib-common.php') [line 45]
Geeklog common function library

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







changeBlockStatus [line 767]

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 ]



deleteBlock [line 795]

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 201]

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 102]

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 ]



hasBlockTopicAccess [line 77]

int hasBlockTopicAccess( string $tid)

Check for block topic access (need to handle 'all' and 'homeonly' as special cases)



Tags:

return:  returns 3 for read/edit 2 for read only 0 for no access


Parameters

string   $tid   ID for topic to check on
[ Top ]



listblocks [line 397]

string listblocks( )

Display two lists of blocks, separated by left and right



Tags:

return:  HTML for the two lists


[ Top ]



moveBlock [line 722]

void moveBlock( )

Move blocks UP, Down and Switch Sides - Left and Right

NOTE: Does not return.




[ Top ]



reorderblocks [line 687]

void reorderblocks( )

Re-orders all blocks in increments of 10



[ Top ]



saveblock [line 521]

string saveblock( string $bid, $name, string $title, $help, string $type, int $blockorder, string $content, string $tid, 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)

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   Topic block should appear in
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  
   $allow_autotags  
[ Top ]



Documentation generated on Wed, 17 Mar 2010 02:06:52 -0400 by phpDocumentor 1.4.3