PAGEFACTORY Class Reference

Inheritance diagram for PAGEFACTORY:

BaseActions

List of all members.

Public Member Functions

 PAGEFACTORY ($blogid)
 createAddForm ($type, $contents=array())
 createEditForm ($type, $contents)
 createForm ($contents)
 getTemplateFor ($type)
 parse_categories ($startidx=0)
 parse_blogid ()
 parse_blogname ()
 parse_bloglink ()
 parse_authorname ()
 parse_title ()
 parse_ifblogsetting ($name, $value=1)
 parse_ifitemproperty ($name, $value=1)
 parse_helplink ($topic)
 parse_currenttime ($what)
 parse_itemtime ($what)
 parse_init ()
 parse_extrahead ()
 parse_text ($which)
 parse_contents ($which)
 parse_checkedonval ($value, $name)
 parse_jsinput ($which)
 parse_jsbuttonbar ($extrabuttons="")
 parse_pluginextras ()
 parse_itemoptions ()
 parse_ticket ()
 _jsbutton ($type, $code, $tooltip)
 _jsbuttonspacer ()

Public Attributes

 $blog
 $actions
 $allowedTypes
 $type
 $method
 $variables


Detailed Description

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Version:
Id
PAGEFACTORY.php 1187 2007-08-06 14:43:00Z kaigreve
NucleusJP
PAGEFACTORY.php,v 1.8.2.2 2007/10/30 16:12:27 shizuki Exp
The formfactory class can be used to insert add/edit item forms into admin area, bookmarklet, skins or any other places where such a form might be needed

Definition at line 24 of file PAGEFACTORY.php.


Member Function Documentation

PAGEFACTORY::PAGEFACTORY ( blogid  ) 

creates a new PAGEFACTORY object

Definition at line 45 of file PAGEFACTORY.php.

References $blogid, $manager, and BaseActions::BaseActions().

PAGEFACTORY::createAddForm ( type,
contents = array() 
)

creates a "add item" form for a given type of page

Parameters:
type 'admin' or 'bookmarklet'

Definition at line 94 of file PAGEFACTORY.php.

References $manager, $type, and createForm().

PAGEFACTORY::createEditForm ( type,
contents 
)

creates a "add item" form for a given type of page

Parameters:
type 'admin' or 'bookmarklet'
contents An associative array 'author' => author '' =>

Definition at line 116 of file PAGEFACTORY.php.

References $type, and createForm().

PAGEFACTORY::createForm ( contents  ) 

(private) creates a form for a given type of page

Definition at line 127 of file PAGEFACTORY.php.

References BaseActions::$parser, and getTemplateFor().

Referenced by createAddForm(), and createEditForm().

PAGEFACTORY::getTemplateFor ( type  ) 

returns an appropriate template

Definition at line 142 of file PAGEFACTORY.php.

References $DIR_LIBS.

Referenced by createForm().

PAGEFACTORY::parse_categories ( startidx = 0  ) 

Definition at line 164 of file PAGEFACTORY.php.

References $catid, and ADMIN::selectBlogCategory().

PAGEFACTORY::parse_blogid (  ) 

Definition at line 173 of file PAGEFACTORY.php.

PAGEFACTORY::parse_blogname (  ) 

Definition at line 177 of file PAGEFACTORY.php.

PAGEFACTORY::parse_bloglink (  ) 

Definition at line 181 of file PAGEFACTORY.php.

PAGEFACTORY::parse_authorname (  ) 

Definition at line 185 of file PAGEFACTORY.php.

References $member.

PAGEFACTORY::parse_title (  ) 

Definition at line 191 of file PAGEFACTORY.php.

PAGEFACTORY::parse_ifblogsetting ( name,
value = 1 
)

Indicates the start of a conditional block of data. It will be added to the output only if the blogsetting with the given name equals the given value (default for value = 1 = true)

the name of the blogsetting is the column name in the nucleus_blog table

the conditional block ends with an <endif> var

Definition at line 204 of file PAGEFACTORY.php.

References BaseActions::_addIfCondition().

PAGEFACTORY::parse_ifitemproperty ( name,
value = 1 
)

Definition at line 208 of file PAGEFACTORY.php.

References BaseActions::_addIfCondition().

PAGEFACTORY::parse_helplink ( topic  ) 

Definition at line 212 of file PAGEFACTORY.php.

References help().

PAGEFACTORY::parse_currenttime ( what  ) 

Definition at line 217 of file PAGEFACTORY.php.

PAGEFACTORY::parse_itemtime ( what  ) 

Definition at line 223 of file PAGEFACTORY.php.

PAGEFACTORY::parse_init (  ) 

Definition at line 229 of file PAGEFACTORY.php.

PAGEFACTORY::parse_extrahead (  ) 

Definition at line 235 of file PAGEFACTORY.php.

References $manager.

PAGEFACTORY::parse_text ( which  ) 

Definition at line 251 of file PAGEFACTORY.php.

PAGEFACTORY::parse_contents ( which  ) 

Definition at line 261 of file PAGEFACTORY.php.

PAGEFACTORY::parse_checkedonval ( value,
name 
)

Definition at line 265 of file PAGEFACTORY.php.

PAGEFACTORY::parse_jsinput ( which  ) 

Definition at line 271 of file PAGEFACTORY.php.

References $CONF.

PAGEFACTORY::parse_jsbuttonbar ( extrabuttons = ""  ) 

Definition at line 299 of file PAGEFACTORY.php.

References $CONF, _jsbutton(), and _jsbuttonspacer().

PAGEFACTORY::parse_pluginextras (  ) 

Allows plugins to add their own custom fields

Definition at line 376 of file PAGEFACTORY.php.

References $manager.

PAGEFACTORY::parse_itemoptions (  ) 

Adds the itemOptions of a plugin to a page

Author:
TeRanEX

Definition at line 403 of file PAGEFACTORY.php.

References $itemid, and ADMIN::_insertPluginOptions().

PAGEFACTORY::parse_ticket (  ) 

Definition at line 408 of file PAGEFACTORY.php.

References $manager.

PAGEFACTORY::_jsbutton ( type,
code,
tooltip 
)

convenience method

Definition at line 416 of file PAGEFACTORY.php.

Referenced by parse_jsbuttonbar().

PAGEFACTORY::_jsbuttonspacer (  ) 

Definition at line 426 of file PAGEFACTORY.php.

Referenced by parse_jsbuttonbar().


Member Data Documentation

PAGEFACTORY::$blog

Definition at line 27 of file PAGEFACTORY.php.

PAGEFACTORY::$actions

Definition at line 30 of file PAGEFACTORY.php.

PAGEFACTORY::$allowedTypes

Definition at line 33 of file PAGEFACTORY.php.

PAGEFACTORY::$type

Definition at line 34 of file PAGEFACTORY.php.

Referenced by createAddForm(), and createEditForm().

PAGEFACTORY::$method

Definition at line 37 of file PAGEFACTORY.php.

PAGEFACTORY::$variables

Definition at line 40 of file PAGEFACTORY.php.


The documentation for this class was generated from the following file:



Generated on Wed Jun 25 17:26:03 2008 by  doxygen 1.5.5