[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/admin/ -> block.php (sommaire)

(pas de description)

Poids: 815 lignes (35 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 public_html/admin/auth.inc.php
 public_html/lib-common.php

Définit 9 fonctions

  hasBlockTopicAccess()
  editdefaultblock()
  editblock()
  listblocks()
  saveblock()
  reorderblocks()
  moveBlock()
  changeBlockStatus()
  deleteBlock()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

hasBlockTopicAccess($tid)   X-Ref
Check for block topic access (need to handle 'all' and 'homeonly' as
special cases)

param: string  $tid    ID for topic to check on
return: int             returns 3 for read/edit 2 for read only 0 for no access

editdefaultblock($A, $access)   X-Ref
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.

param: array   $A      Array of data to show on form
param: int     $access Permissions this user has
return: string          HTML for default block editor

editblock($bid = '')   X-Ref
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.

param: string  $bid    ID of block to edit
return: string          HTML for block editor

listblocks()   X-Ref
Pas de description

saveblock($bid, $name, $title, $help, $type, $blockorder, $content, $tid, $rdfurl, $rdfupdated, $rdflimit, $phpblockfn, $onleft, $owner_id, $group_id, $perm_owner, $perm_group, $perm_members, $perm_anon, $is_enabled, $allow_autotags)   X-Ref
Saves a block

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

reorderblocks()   X-Ref
Re-orders all blocks in steps of 10


moveBlock()   X-Ref
Move blocks UP, Down and Switch Sides - Left and Right


changeBlockStatus($bid)   X-Ref
Enable and Disable block


deleteBlock($bid)   X-Ref
Delete a block

param: string  $bid    id of block to delete
return: string          HTML redirect or error message



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics