ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPageObjectFactory Class Reference

Page object factory. More...

+ Collaboration diagram for ilPageObjectFactory:

Static Public Member Functions

static getInstance ($a_parent_type, $a_id=0, $a_old_nr=0, $a_lang="-")
 Get page object instance.
static getConfigInstance ($a_parent_type)
 Get page config instance.

Detailed Description

Page object factory.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilPageObjectFactory.php.

Member Function Documentation

static ilPageObjectFactory::getConfigInstance (   $a_parent_type)
static

Get page config instance.

Parameters
string$a_parent_typeparent type
Returns
object

Definition at line 41 of file class.ilPageObjectFactory.php.

References $path, and ilCOPageObjDef\getDefinitionByParentType().

Referenced by ilPageObject\initPageConfig().

{
include_once("./Services/COPage/classes/class.ilCOPageObjDef.php");
$class = $def["class_name"]."Config";
$path = "./".$def["component"]."/".$def["directory"]."/class.".$class.".php";
include_once($path);
$cfg = new $class();
return $cfg;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilPageObjectFactory::getInstance (   $a_parent_type,
  $a_id = 0,
  $a_old_nr = 0,
  $a_lang = "-" 
)
static

Get page object instance.

Parameters
string$a_parent_typeparent type
int$a_idpage id
int$a_old_nrhistory number of page
string$a_langlanguage
Returns
object

Definition at line 23 of file class.ilPageObjectFactory.php.

References $path, and ilCOPageObjDef\getDefinitionByParentType().

Referenced by ilPageObject\compareVersion(), ilPageObject\copy(), ilPageObject\copyPageToTranslation(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilCOPageImporter\finalProcessing(), ilCOPageExporter\getXmlRepresentation(), ilCOPageImporter\importXmlRepresentation(), ilPageObjectGUI\initPageObject(), ilContObjParser\processPagesToParse(), ilPageObjectGUI\showMediaFullscreen(), and ilLMObject\updateInternalLinks().

{
include_once("./Services/COPage/classes/class.ilCOPageObjDef.php");
$class = $def["class_name"];
$path = "./".$def["component"]."/".$def["directory"]."/class.".$class.".php";
include_once($path);
$obj = new $class($a_id , $a_old_nr, $a_lang);
return $obj;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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