public function __construct($model) { parent::__construct($model); // Get the deals for this page $this->totalPages = $this->model->howManyPages(); $this->deals = $this->model->getSomeDeals(); }
function __construct($message = null) { parent::__construct(); $this->setTitle(Messages::getString('LoginPage.Title')); $this->menu = array(Messages::getString('General.Home') => "index.php") + $this->menu; $this->message = $message; }
function __construct($id, $language = false) { parent::__construct($id, $language); $this->suggestName('Book', 'en'); $this->suggestName('Bokning', 'sv'); $this->alias = 'book'; }
function __construct($message = null) { parent::__construct(); $this->setTitle("Administration-Login"); $this->menu = array("Home" => "index.php") + $this->menu; $this->message = $message; }
function __construct() { parent::__construct(); $this->session = Session::getInstance(); $this->project = $this->session->getProject(); $this->menu = array("Logout" => "logout.php") + $this->menu; }
public function __construct($title = '') { parent::__construct($title); $furniture_slider = Db_Sliders::getSliderByKey('furniture-slider'); $furniture_v1_banner = Db_Banners::getBannerByKey('home_page_sidebar_top'); $furniture_v2_banner = Db_Banners::getBannerByKey('home_page_sidebar_bottom'); $furniture_banner_left = Db_Banners::getBannerByKey('banner_left'); $furniture_banner_middle = Db_Banners::getBannerByKey('banner_middle'); $furniture_banner_right = Db_Banners::getBannerByKey('banner_right'); $furniture_banner_mimi_left = Db_Banners::getBannerByKey('banner_mimi_left'); $furniture_banner_mimi_right = Db_Banners::getBannerByKey('banner_mimi_right'); $headphones['new'] = Db_Products::getProductsByOptionsKey('new', 1, 'headphone'); $headphones['color'] = Db_Products::getProductsByOptionsKey('color', '', 'headphone'); $ebooks['new'] = Db_Products::getProductsByOptionsKey('new', 1, 'ebook'); $ebooks['color'] = Db_Products::getProductsByOptionsKey('color', '', 'ebook'); $brands = Db_Brand::getAllWithTransFiltered(); $this->TPL->assign('furniture_v1_banner', $furniture_v1_banner); $this->TPL->assign('furniture_v2_banner', $furniture_v2_banner); $this->TPL->assign('furniture_banner_left', $furniture_banner_left); $this->TPL->assign('furniture_banner_middle', $furniture_banner_middle); $this->TPL->assign('furniture_banner_right', $furniture_banner_right); $this->TPL->assign('furniture_banner_mimi_left', $furniture_banner_mimi_left); $this->TPL->assign('furniture_banner_mimi_right', $furniture_banner_mimi_right); $this->TPL->assign('furniture_slider', $furniture_slider); $this->TPL->assign('headphones', $headphones); $this->TPL->assign('ebooks', $ebooks); $this->TPL->assign('ebooks', $ebooks); $this->TPL->assign('brands', $brands); }
function __construct() { parent::__construct(); $this->setTitle(Messages::getString('SetupPage.Title')); $this->menu = array(Messages::getString('General.Admin') => "admin.php") + $this->menu; $this->menu = array(Messages::getString('General.Home') => "index.php") + $this->menu; $this->menu = array(Messages::getString('CreateProjectPage.NewProject') => "create_project.php") + $this->menu; //Set absolute basedir $this->BASEDIR = dirname(dirname(__FILE__)); // Check, if transmitted master password is correct if (Config::$master_password) { $check = $this->CheckPostMasterPassword(); if (check !== null && $check === false) { $this->error = Messages::getString('CreateProjectPage.MasterPasswordWrong'); } $this->master_password_correct = $check; } // process transmitted form if ((!Config::$master_password || $this->CheckPostMasterPassword()) && isset($_POST['setup'])) { $this->error = $this->processForm(); if (!$this->error) { header("Location: " . $this->SUCCESS_REDIRECT_PAGE); //Redirect to create_project, if succeeded } } }
public function __construct($title) { Page::__construct($title); $ObjectDetails = Db_Admin::getObjectDetails($this->Id); // Build breadcrumb $this->BreadCrumb[1]['link'] = $this->PageUrl; $this->BreadCrumb[1]['title'] = $this->_T('nav_administrators'); switch ($this->Action) { case 'edit': $this->BreadCrumb[2]['title'] = $ObjectDetails->login; $this->BreadCrumb[2]['link'] = $this->PageUrl . '?action=view&id=' . $this->Id; $this->BreadCrumb[3]['title'] = $this->_T('edit'); break; case 'editpassword': $this->BreadCrumb[2]['link'] = $this->PageUrl . '?action=view&id=' . $this->Id; $this->BreadCrumb[2]['title'] = $ObjectDetails->login; $this->BreadCrumb[3]['title'] = $this->_T('edit') . ' ' . _T('password'); break; case 'add': $this->BreadCrumb[2]['title'] = $this->_T('add'); break; case 'view': $this->BreadCrumb[2]['title'] = $ObjectDetails->login; break; default: } }
public function __construct() { // The array is the list of template files we're going to // include on this page. there is an optional parameter for the // theme we're going to use parent::__construct(array('404error')); }
public function __construct($title = '') { parent::__construct($title); $categories = Db_Category::getAllObjectsWithTrans(); $products = array(); $products['new'] = Db_Product::getProducts('new'); $products['sale'] = Db_Product::getProducts('sale'); $products['featured'] = Db_Product::getProducts('featured'); $products['hot_deals'][] = Db_Product::getProducts('hot_deals', 1); $products['hot_deals'][] = Db_Product::getProducts('hot_deals', 4); $products['hot_deals'][] = Db_Product::getProducts('hot_deals', 7); $products['apple'] = Db_Product::getProductsByBrandId(8, 3); $products['gamers'] = Db_Product::getProductsByCategoryId(5, 3); $products['style'] = Db_Product::getProductsByCategoryId(3, 3); $products['sport'] = Db_Product::getProductsByCategoryId(2); $banners['172X170'] = Db_Banners::getBannerBySize('172X170', 1); $banners['180X170'] = Db_Banners::getBannerBySize('180X170', 1); $banners['270X337'] = Db_Banners::getBannerBySize('270X337', 3); $banners['270X320'] = Db_Banners::getBannerBySize('270X320', 1); $banners['470X158'] = Db_Banners::getBannerBySize('470X158', 1); $banners['370X158'] = Db_Banners::getBannerBySize('370X158', 1); $banners['870X160'] = Db_Banners::getBannerBySize('870X160', 1); $slider = Db_Slider::getForFrontend(); $this->TPL->assign('banners', $banners); $this->TPL->assign('categories', $categories); $this->TPL->assign('slider', $slider); $this->TPL->assign('products', $products); }
public function __construct() { parent::__construct(); $this->load->library('towing/Dossier_service'); $this->load->library('towing/Invoice_service'); $this->load->library('table'); }
function __construct($id) { parent::__construct($id); $this->icon = 'small/bricks'; $this->suggestName('Subdomains', 'en'); $this->suggestName('Subdomäner', 'sv'); }
function __construct($url) { parent::__construct($url); $this->tag = @$_REQUEST['tag']; // find all blog items $this->pages = Resolver::find_all_pages('blog'); }
/** * The class is loaded either with an id (from the spine table) or the path to the file * In the first case, when it is beeing loaded from the Controller, $parent actually contains the alias * of the file itself. * The function cascades the __construct call to it's parent * @param mixed $fullpath Contains id or path * @param mixed $parent Contains (possibly) parent folder * @return void */ function __construct($fullpath = false, $parent = false) { global $DB, $Controller, $CONFIG; $id = false; if (is_numeric($fullpath)) { $id = $fullpath; } else { if ($parent === false) { if ($fullpath === $this->rootDir()) { $id = $Controller->fileRoot(OVERRIDE)->ID; } elseif (substr($fullpath, 0, strlen($this->rootDir())) == $this->rootDir()) { $parent = Folder::open(dirname($fullpath)); } else { return false; } $this->_path = $fullpath; } if (!$id) { if (!($id = $DB->files->getCell(array('parent' => $parent === 0 ? 0 : $parent->ID, 'name' => pathinfo($fullpath, PATHINFO_BASENAME)), 'id'))) { $id = $DB->spine->insert(array('class' => $this->Type)); $DB->files->insert(array('parent' => $parent === 0 ? 0 : $parent->ID, 'name' => pathinfo($fullpath, PATHINFO_BASENAME), 'id' => $id)); } } } parent::__construct($id); if ($this->isImage()) { $this->editable['ImageEditor'] = EDIT; } Short::registerFilter(array(__CLASS__, 'contentFilter')); }
public function __construct($model) { parent::__construct($model); // Get info for the deal ID in the address bar $this->dealInfo = $this->model->getDealInfo(); $this->dealTags = $this->model->getDealTags(); }
function __construct($_member = '') { parent::__construct(); if (!empty($_member)) { $this->member = desanitize($_member); } }
/** * Setup the page * @param integer $id The object's ID * @return void */ function __construct($id = false) { parent::__construct($id); $this->alias = 'flowEditor'; $this->suggestName('Floweditor'); $this->icon = 'small/script_lightning'; }
/** * Constructor * @param numeric $id ID from spine Database * @return void */ function __construct($id) { parent::__construct($id); $this->suggestName('Installer'); $this->alias = 'Installer'; $this->icon = 'small/computer'; }
/** * Construct a new Language instance * */ public function __construct(Template $tpl = null) { if (is_null($tpl)) { $tpl = wire('templates')->get('language'); } parent::__construct($tpl); }
function __construct($id, $lang = false) { parent::__construct($id, $lang); $this->suggestName('CalendarViewer', 'en'); $this->registerAssociation('calendars'); $this->registerMetadata('itemsPerPage', 10); }
public function __construct($title) { Page::__construct($title); $ObjectTransDetails = Db_LakeTrans::getObjectDetailsByLang($this->Id, $this->LangId); $this->TPL->assign('imageFolderPath', $this->imageFolderPath); $PageName = new Db_LakeTrans(); $this->TPL->assign('PageName', $PageName); // Build breadcrumb $this->BreadCrumb[1]['link'] = $this->PageUrl; $this->BreadCrumb[1]['title'] = $this->_T('lake'); switch ($this->Action) { case 'edit': $this->BreadCrumb[2]['title'] = $ObjectTransDetails->lt_title; $this->BreadCrumb[2]['link'] = $this->PageUrl . '?action=view&id=' . $this->Id; $this->BreadCrumb[3]['title'] = $this->_T('edit'); break; case 'add': $this->BreadCrumb[2]['title'] = $this->_T('add'); break; case 'view': $this->BreadCrumb[2]['title'] = $ObjectTransDetails->lt_title; break; default: // $this->BreadCrumb = array (); } }
public function __construct() { parent::__construct(); $calendarConfig = array('start_day' => 'monday', 'show_next_prev' => TRUE, 'next_prev_url' => base_url() . 'admin/calendar/display', 'template' => $this->_calendarTemplate()); $this->load->library('towing/Admin_service'); $this->load->library('calendar', $calendarConfig); }
public function __construct($title) { Page::__construct(''); $this->BreadCrumb[1]['link'] = $this->PageUrl; $this->BreadCrumb[1]['title'] = $this->_T($this->title); $this->TPL->assign('img_path', $this->img_path); }
/** * Setup the page * @param integer $id The object's ID * @return void */ function __construct($id = false) { parent::__construct($id); $this->suggestName('Configuration'); $this->icon = 'small/cog_edit'; $this->deletable = false; }
public function __construct($model) { parent::__construct($model); // If the user has submitted the password change form if (isset($_POST['existing-password'])) { $this->processPasswordChange(); } // If the user is inserting/updating aditional information if (isset($_POST['user-data'])) { $this->processAdditionalInfo(); } // If user is an admin if (isset($_SESSION['privilege']) && $_SESSION['privilege'] == 'admin') { // If the admin submitted the delete function if (isset($_POST['delete-account'])) { $this->processDeleteAccount(); } // If the admin submitted the enable function if (isset($_POST['enable-account'])) { $this->processEnableAccount(); } // If the admin has submitted the add staff form if (isset($_POST['add-staff'])) { $this->processAddStaff(); } // If the add deal form has been submitted if (isset($_POST['add-deal'])) { $this->processAddDeal(); } } }
function __construct($id) { parent::__construct($id); $this->suggestName('User settings', 'en'); $this->suggestName('Användarinställningar', 'sv'); $this->icon = 'small/user_edit'; }
public function __construct() { parent::__construct(); $this->load->library('towing/Vocabulary_service'); $this->load->library('table'); $this->load->helper('url'); }
function __construct() { parent::__construct(); $this->session = Session::getInstance(); $this->project = $this->session->getProject(); $this->menu = array(Messages::getString('General.Logout') => "logout.php") + $this->menu; }
public function __construct($entries = null, $totalNumEntries = null, $PageType = null) { parent::__construct(); $this->entries = $entries; $this->totalNumEntries = $totalNumEntries; $this->PageType = $PageType; }
public function __construct($info = null) { parent::__construct(); if (isset($info) && is_array($info)) { $this->info = $info; } }