/** * function __construct * <pre> * iniitalizes this object * </pre> * @param $name [STRING] the form item's name * @param $value [STRING] the form item's value * @param $error [STRING] the form item's error * @return [void] */ function __construct($name, $value, $error) { parent::__construct(XMLObject_FormItem::XML_NODE_FORMITEM); $this->addElement(XMLObject_FormItem::XML_ELEMENT_NAME, $name); $this->addElement(XMLObject_FormItem::XML_ELEMENT_VALUE, $value); $this->addElement(XMLObject_FormItem::XML_ELEMENT_ERROR, $error); }
/** * function __construct * <pre> * Initialize the Manager to it's starting values. * </pre> * @param $languageID [INTEGER] The Desired Language ID of the labels * @param $seriesKey [STRING] The Unique series key * @param $pageKey [STRING] The Unique page key * @param $labelKey [STRING] The Unique label key * @return [void] */ function __construct($languageID = '', $seriesKey = '', $pageKey = '', $labelKey = '') { parent::__construct(XMLObject_MultilingualManager::NODE_MULTILINGUAL_ROOT); // save provided initialization data ... $this->languageID = $languageID; $this->seriesKey = $seriesKey; $this->pageKey = $pageKey; $this->labelKey = $labelKey; // initialize labels to empty array $this->labels = array(); // setup DB object $this->db = new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); // initialize seriesList to empty array $this->seriesList = array(); // if a series key was provided ... if ($seriesKey != '') { // if a page key was also provided then if ($pageKey != '') { // load that page's label data $this->loadPageLabels($seriesKey, $pageKey); } else { // load the serie's label data $this->loadSeriesLabels($seriesKey); } } }
/** * function __construct * <pre> * [classConstructor Description] * </pre> * <pre><code> * [Put PseudoCode Here] * </code></pre> * @param $labelID [STRING] The unique Label ID of the Label with * translation requests. * @return [void] */ function __construct($labelID = '') { parent::__construct(XMLObject_Multilingual_Translation::NODE_TRANSLATION_ROOT); // set the list of field names to manage $this->fieldNames = 'language_id,translation_moddate'; $this->fieldList = explode(',', $this->fieldNames); $this->entryList = array(); $this->labelID = $labelID; // setup DB object $this->db = new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); if ($this->labelID != '') { $this->loadData(); } }
/** * function __construct * <pre> * initialize the zones for the given page * </pre> * @param $db [OBJECT] The Site DB object * @param $viewer [OBJECT] The Viewer object * @return [void] */ function __construct($viewer, $pageID = null) { parent::__construct(XMLObject_CMSPageApp::XML_NODE_PAGE); // store the db & viewer objects $this->db =& new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); $this->viewer =& $viewer; // if a pageID was given then if (!is_null($pageID)) { // store value $this->pageID = $pageID; // load this page's data... $this->loadPage($pageID); } }
/** * function __construct * <pre> * loads a specific application by it's key. * </pre> * @param $db [OBJECT] The db connection for the site * @param $viewer [OBJECT] The viewer object * @param $appKey [STRING] The identifying Key for the application * @return [void] */ function __construct($viewer, $appID = null) { // pass the root node name to the parent constructor parent::__construct(XMLObject_CMSApps::XML_NODE_APP); // store the db & viewer objects $this->db = new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); $this->viewer =& $viewer; // if an appID is provided then if (!is_null($appID)) { // Load this app $this->appID = $appID; $this->loadApp($this->appID); } }
/** * function __construct * <pre> * [classConstructor Description] * </pre> * <pre><code> * [Put PseudoCode Here] * </code></pre> * @param $pageID [STRING] The Page ID this Label is linked to * @param $labelKey [STRING] The unique Label Key of this Label Data * @return [void] */ function __construct($pageID = '', $labelKey = '') { parent::__construct(XMLObject_Multilingual_Label::NODE_LABEL_ROOT); // set the list of field names to manage $this->fieldNames = 'label_key,label_label,language_id,label_moddate'; $this->fieldList = explode(',', $this->fieldNames); $this->labelsList = array(); $this->pageID = $pageID; $this->labelKey = $labelKey; // setup DB object $this->db = new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); if ($this->pageID != '' && $this->labelKey != '') { $this->loadData(); } }
/** * function __construct * <pre> * [classConstructor Description] * </pre> * <pre><code> * [Put PseudoCode Here] * </code></pre> * @param $seriesKey [STRING] The unique Label Key of this Label Data * @return [void] */ function __construct($seriesKey = '') { parent::__construct(XMLObject_Multilingual_Series::NODE_SITE_ROOT); // set the list of field names to manage $fieldNames = 'series_key'; $this->fieldList = explode(',', $fieldNames); $this->pageList = array(); $this->seriesKey = $seriesKey; // setup DB object $this->db = new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); // if a series Key is provided then load the data if ($this->seriesKey != '') { $this->loadData(); } }
/** * function __construct * <pre> * [classConstructor Description] * </pre> * <pre><code> * [Put PseudoCode Here] * </code></pre> * @param $seriesID [STRING] The Page ID this Label is linked to * @param $pageKey [STRING] The unique Label Key of this Label Data * @return [void] */ function __construct($seriesID = '', $pageKey = '') { parent::__construct(XMLObject_Multilingual_Page::NODE_PAGE_ROOT); // set the list of field names to manage $fieldNames = 'page_key'; $this->fieldList = explode(',', $fieldNames); $this->labelsList = array(); $this->seriesID = $seriesID; $this->pageKey = $pageKey; // setup DB object $this->db = new Database_Site(); $this->db->connectToDB(SITE_DB_NAME, SITE_DB_PATH, SITE_DB_USER, SITE_DB_PWORD); // if a seriesID & pageKey were provided then load the data... if ($this->seriesID != '' && $this->pageKey != '') { $this->loadData(); } }
/** * function __construct * <pre> * Initialized the Admin Box * </pre> * @return [void] */ function __construct() { parent::__construct(XMLObject_AdminBox::XML_NODE_ROOT); $this->editID = -1; $this->heading = new XMLObject(XMLObject_AdminBox::XML_NODE_HEADING); $this->data = new XMLObject(XMLObject_AdminBox::XML_NODE_DATA); $this->form = new XMLObject(XMLObject_AdminBox::XML_NODE_FORM); $this->linksForm = new XMLObject(XMLObject_AdminBox::XML_NODE_FORMLINKS); $this->linksData = new XMLObject(XMLObject_AdminBox::XML_NODE_DATALINKS); $this->hiddenData = new XMLObject(XMLObject_AdminBox::XML_NODE_HIDDENDATA); }
/** * function __construct * <pre> * iniitalizes this object * </pre> * @param $name [STRING] the form item's name * @param $value [STRING] the form item's value * @param $error [STRING] the form item's error * @return [void] */ function __construct() { parent::__construct(XMLObject_ColumnList::XML_NODE_COLUMNLIST); }
/** * function __construct * <pre> * iniitalizes this object * </pre> * @param $name [STRING] the form item's name * @param $value [STRING] the form item's value * @param $error [STRING] the form item's error * @return [void] */ function __construct() { parent::__construct(XMLObject_RowList::XML_NODE_ROWLIST); }
/** * function __construct * <pre> * Prepare the Object for use. * </pre> * @param $param1 [$param1 type] [optional description of $param1] * @param $param2 [$param2 type] [optional description of $param2] * @return [returnValue, can be void] */ function __construct() { // CODE parent::__construct(XMLObject_Menu::ROOT_NODE_MENU); }
/** * This is the class constructor for XMLObject_PageContent class * * @param &$siteDB [OBJECT] The common DB link to the site DB. * @param &$siteViewer [OBJECT] The common viewer object. * @param &$siteLabels [OBJECT] A common label object for the page. */ function __construct(&$siteDB, &$siteViewer, &$siteLabels) { parent::__construct(); $this->cssList = new XMLObject(XMLObject_PageContent::NODE_CSS); $this->scriptList = new XMLObject(XMLObject_PageContent::NODE_SCRIPT); $this->bodyList = new XMLObject(XMLObject_PageContent::NODE_BODYLIST); $this->db = $siteDB; $this->viewer = $siteViewer; $this->labels = $siteLabels; $this->setNodeName(XMLObject_PageContent::ROOT_NODE_PAGECONTENT); $this->pageTitle = ''; $this->windowTitle = ''; $this->baseCallBack = ''; $this->pageMenu = new XMLObject_Menu(); // Default the template info to the DEFAULT site template. $this->pageTemplateFile = PAGE_TEMPLATE_DEFAULT; $this->pageHeaderImage = PAGE_TEMPLATE_HEADER_IMAGE; $this->navBar = new RowManager_NavBarCacheManager(); $this->loadCache(); }