Class: core
Source Location: Program_Root/classes/obliquid/core.php
implements some common functionalities needed by module core
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
[line 32]
implements some common functionalities needed by module core
Class Methods
method addPage [line 191]
true addPage(
$name
$name, $tpl
$tpl, $frame
$frame, $module
$module)
|
|
Adds a local page. Input data is already checked and supposed correct.
If the local page doesn't have a common page is created empty, otherwise the common page is created in the local directory tree.
Tags:
Parameters:
method checkIds [line 43]
true checkIds(
$idents
$idents)
|
|
checks that the given strings are valid identifiers.
A valid identifier must be composed of lower case letters, underscore, numbers in any order. Perl Regular expression used is "/^[a-z0-9_]*$/"
Tags:
Parameters:
method getPage [line 275]
void &getPage(
mixed
$name)
|
|
getPage returns an associative array with page attributes
Returns: Array([NAME] => core_configparms [TPL] => common [FRAME] => frame [GROUP] => core //module [is_common] => true //page is common or local [has_common] => true //true if common page exists, false otherwise [fname] => "home" //pagexml file, without extension [SLOT] => Array ( [0] => Array ( [NAME] => core/nav [NAME_PHP] => [NAME_TPL] => [PHP] => common [TPL] => common [FRAME] => frame [POSITION] => center1 [BLOCK] => none [FUNCTION"] => signup (optional) ) )
method moduleList [line 559]
Returns an index array with a list of modules
Tags:
method pageComment [line 58]
string pageComment(
$pagename
$pagename, [$is_common
$is_common = true])
|
|
Gets the page comment for a page in the db.
The comment is in the db table page.
Tags:
Parameters:
method pageInfo [line 228]
void pageInfo(
mixed
$name)
|
|
Returns an associative array with information about the page
[module] => "core" page module [fname] => "home" filename, without extension [is_common] => true true if the page is common [has_common] => false true if common page exists, false otherwise [path] => "common/pagexml/core/home.xml" full pathname
method pageList [line 111]
an &pageList(
[$fgroup
$fgroup = ""])
|
|
Returns informations about common and local pages
Tags:
Parameters:
method pageProcess [line 363]
getPage &pageProcess(
$fpage
$fpage, $function
$function, [$args
$args = array()])
|
|
Base function for page processing functions.
Function: addPage adds a page Example: pageProcess("", "addPage", array(array("NAME" => "cal_home2", "TPL" => "common", "GROUP" => "cal", "FRAME" => "frame"))); Function: modPage modifies page attributes. $args array must contain all page attributes (NAME, TPL, GROUP, FRAME), even if modifying only one of them. Example: pageProcess("home", "modPage", array("NAME" => "home2", "TPL" => "common", "GROUP" => "home", "FRAME" => "frame")); Function: delSlot deletes a slot of the specified page in the position in the first element of $args array. ATTENTION: the first slot is slot 1, not 0 to avoid problems passing 0 in url parameters Example: pageProcess("home", "delSlot", array("2")); Function: addSlot adds a slot to the specified page Example: pageProcess("home", "addSlot", array("NAME" => "core/nav", "NAME_PHP" => "", "NAME_TPL" => "", "PHP" => "local", "TPL" => "local", "POSITION" => "left3", "BLOCK" => "title")) Function: modSlot modifies a slot. If an attribute doesn't exist in the associative array, it won't be modified. If it exists it will be modified. If it is empty it will be deleted. Example: pageProcess("home", "modSlot", array("SLOTORD" => 2, "NAME" => "core/nav", "NAME_PHP" => "", "NAME_TPL" => "", "PHP" => "local", "TPL" => "local", "POSITION" => "left3", "BLOCK" => "title"))
Tags:
Parameters:
method slotComment [line 86]
string &slotComment(
$slotname
$slotname)
|
|
Gets the slot comment
Tags:
Parameters:
method write_mb [line 538]
true write_mb(
$fname
$fname, $dbname
$dbname, $newdb
$newdb, $tprefix
$tprefix)
|
|
Writes a Metabase XML configuration file with variable replacement.
It's used in setup and in dev/dumpdb.
Tags:
Parameters:
|