ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORM2004PageLayout Class Reference

Class ilSCORM2004PageLayout. More...

+ Collaboration diagram for ilSCORM2004PageLayout:

Public Member Functions

 ilSCORM2004PageLayout ($a_id)
 getXMLContent ()
 getPreview ()
 getTitle ()
 getId ()

Static Public Member Functions

static activeLayouts ()

Data Fields

const SEQ_TEMPLATE_DIR = './Modules/Scorm2004/templates/editor/page_layouts_temp/thumbnails'
 $layout_id = null

Private Member Functions

 generatePreview ()

Detailed Description

Class ilSCORM2004PageLayout.

Class for SCORM 2004 Page Layouts

Author
Hendrik Holtmann holtm.nosp@m.ann@.nosp@m.me.co.nosp@m.m
Version
$Id$

Definition at line 35 of file class.ilSCORM2004PageLayout.php.

Member Function Documentation

static ilSCORM2004PageLayout::activeLayouts ( )
static

Definition at line 84 of file class.ilSCORM2004PageLayout.php.

References $query, $result, $row, and ilSCORM2004PageLayout().

{
global $ilDB;
$arr_layouts = array();
$query = "SELECT * FROM page_layout WHERE (active=1) ORDER BY title ";
$result = $ilDB->query($query);
while($row = $ilDB->fetchAssoc($result))
{
array_push($arr_layouts,new ilSCORM2004PageLayout($row['layout_id']));
}
return $arr_layouts;
}

+ Here is the call graph for this function:

ilSCORM2004PageLayout::generatePreview ( )
private

Definition at line 77 of file class.ilSCORM2004PageLayout.php.

{
//toimplement...generate Preview from XML
}
ilSCORM2004PageLayout::getId ( )

Definition at line 72 of file class.ilSCORM2004PageLayout.php.

References $layout_id.

{
}
ilSCORM2004PageLayout::getPreview ( )

Definition at line 56 of file class.ilSCORM2004PageLayout.php.

{
//just returns manually created previews at the moment
return self::SEQ_TEMPLATE_DIR."/".$this->layout_id.".png";
}
ilSCORM2004PageLayout::getTitle ( )

Definition at line 62 of file class.ilSCORM2004PageLayout.php.

References $row.

{
global $ilias, $ilDB;
$r = $ilDB->queryF('SELECT title FROM page_layout WHERE layout_id = %s',
array('integer'),array($this->layout_id));
$row->$ilDB->fetchAssoc($r);
return $row['title'];
}
ilSCORM2004PageLayout::getXMLContent ( )

Definition at line 47 of file class.ilSCORM2004PageLayout.php.

References $row, and DB_FETCHMODE_ASSOC.

{
global $ilias, $ilDB;
$r = $ilias->db->query("SELECT content FROM page_layout WHERE layout_id=".
$ilDB->quote($this->layout_id));
$row = $r->fetchRow(DB_FETCHMODE_ASSOC);
return $row['content'];
}
ilSCORM2004PageLayout::ilSCORM2004PageLayout (   $a_id)

Definition at line 42 of file class.ilSCORM2004PageLayout.php.

Referenced by activeLayouts().

{
$this->layout_id = $a_id;
}

+ Here is the caller graph for this function:

Field Documentation

ilSCORM2004PageLayout::$layout_id = null

Definition at line 40 of file class.ilSCORM2004PageLayout.php.

Referenced by getId().

const ilSCORM2004PageLayout::SEQ_TEMPLATE_DIR = './Modules/Scorm2004/templates/editor/page_layouts_temp/thumbnails'

Definition at line 38 of file class.ilSCORM2004PageLayout.php.


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