Themen / Inhalte 
   Forschungsaufgaben
   neueste Einträge
   Suche
   Power-Suche

 Wiki-Infos 
   Einleitung
   allgem. Hinweise
   Quick-Formate
   Formatierungsregeln


used variables

Variables in ewiki often have similar names, and are also
regularily passed by reference from one function to another (so it
is in fact the same variable).

$id         - Is often the name of the current page (which is to be
              returned as output. The content of this variable is
              also available via the global $ewiki_id [[for plugins
              that do not have the common ($id,$data,$action)
              interface parameters]].

$data       - Contains the entry fetched with the initial
              ewiki_database() call. This is an array of the form:
              array(
                 "id" => "CurrentPageName+",
                 "version" => 1,               # 1 is the lowest possible
                 "flags" => 1,
                 "created" => 1002056301,
                 "lastmodified" => 1002171711,
                 "hits" => 235,
                 "author" => "localhost (127.0.0.1:4981),
                 "meta" => array("Http-Header"=>"X", "setting"=>"val"),
                 "content" => "wiki source...",
              )

$action     - The $action with wich the current page was requested
              (most often "view", but everybody also knows "edit").

$uu         - Short for "unused". Is used as temporary variable, especially
              with preg_match() and string functions.

$result     - Used for database queries SEARCH and GETALL.

$row        - Holds temporarily fetched entries from the databases
              (like $data), if page lists are to be generated.



  -------------------------------------------------------------------- 4 --
prev << "used variables"
next >> "Extension HowTo"


You cannot modify the INTERNALS file, but anyhow any ideas or suggestion should as usually get filed on BugReports, UserSuggestions or even better the INTERNALS.Discussion.


Sühnekreuze & Mordsteine