function _register_fields_dynamic() { $data = AMP_URL_Read(); if (!$data) { return; } $this->udm->setData($this->translate($data)); }
function __construct(&$source) { $this->_source =& $source; if ($url_vars = AMP_URL_Read()) { $this->_request_vars = array_merge($_POST, AMP_URL_Read()); } else { $this->_request_vars = $_POST; } }
function _init_request() { $url_vars = AMP_URL_Read(); $this->_request_vars = $_POST; if ($url_vars) { $this->_request_vars = array_merge($_POST, $url_vars); } //pull useful info from request values if ($action_id = $this->assert_var('action')) { $this->_action_id = $action_id; } }
function _readRequest() { if (!($url_criteria = AMP_URL_Read())) { return false; } $crit_set = array_combine_key($this->_legacy_criteria, $url_criteria); if (empty($crit_set)) { return false; } foreach ($crit_set as $crit_name => $value) { if (!$value) { continue; } $sql_maker = '_makeLegacyCrit' . ucfirst($crit_name); if (!method_exists($this, $sql_maker)) { $sql_maker = '_makeSimpleCrit'; } $this->_sql_criteria[] = $this->{$sql_maker}($value, $crit_name); } }
<?php require_once 'AMP/System/Base.php'; $request_vars = AMP_URL_Read(); $map_name = isset($request_vars['component']) && $request_vars['component'] ? $request_vars['component'] : false; if (!$map_name) { ampredirect(AMP_SYSTEM_URL_HOME); exit; } $map_folders = array(AMP_SYSTEM_INCLUDE_PATH, AMP_CONTENT_INCLUDE_PATH, AMP_MODULE_INCLUDE_PATH); $map_class = false; foreach ($map_folders as $folder) { $test_path = $folder . DIRECTORY_SEPARATOR . $map_name . DIRECTORY_SEPARATOR . AMP_COMPONENT_MAP_FILENAME; if (!file_exists_incpath($test_path)) { continue; } include_once $test_path; if (!class_exists(AMP_COMPONENT_MAP_CLASSNAME . '_' . $map_name)) { continue; } $map_class = AMP_COMPONENT_MAP_CLASSNAME . '_' . $map_name; } if (!$map_class) { ampredirect(AMP_SYSTEM_URL_HOME); exit; } $map =& new $map_class(); $controller =& $map->get_controller(); print $controller->execute();
function allResultsRequested() { if (!($varset = AMP_URL_Read())) { return false; } return isset($varset['all']) && $varset['all'] === '1'; }
function _init_request() { $url_vars = AMP_URL_Read(); $this->_request_vars = $_POST; if ($url_vars) { $this->_request_vars = array_merge($_POST, $url_vars); } $request_id = $this->assert_var('id'); $request_action = $this->assert_var('action'); //pull useful info from request values if ($request_action) { $this->request($request_action); } elseif ($request_id) { $this->_model_id = $request_id; $this->request($this->_action_default_single); } }
function _is_basic_list_request() { if (!empty($_POST)) { return false; } if (strpos($_SERVER['REQUEST_URI'], $this->_url_bookmark) === FALSE) { return true; } $request_vars = AMP_URL_Read(); if (empty($request_vars)) { return true; } $action_value = $this->assert_var('action'); if ($action_value && $action_value != 'list') { return false; } if (count($request_vars) > 1 || !$action_value) { return false; } return true; }
function AMPSystem_ComponentRequest(&$controller) { $this->_controller =& $controller; $this->_request_vars = AMP_URL_Read(); }
function AMP_URL_Values() { if (!($url_criteria_set = AMP_URL_Read())) { return false; } $url_criteria = array(); foreach ($url_criteria_set as $ukey => $uvalue) { $valueset = $ukey . "=" . $uvalue; if (is_array($uvalue)) { $valueset = urlencode_array($uvalue, $ukey); } $url_criteria[$ukey] = $valueset; } return $url_criteria; }
<?php require_once 'AMP/Content/Page.inc.php'; require_once 'AMP/Content/Map/Breadcrumb.inc.php'; $breadcrumb =& AMP_Breadcrumb_Content::instance(); $urlvars = AMP_URL_Read(); $reg =& AMP_Registry::instance(); $intro_id = $reg->getEntry(AMP_REGISTRY_CONTENT_INTRO_ID); if (isset($urlvars['list']) && $urlvars['list'] == AMP_CONTENT_LISTTYPE_CLASS) { $breadcrumb->findClass($urlvars[AMP_CONTENT_LISTTYPE_CLASS]); } if (isset($urlvars['id']) && $urlvars['id'] && !isset($urlvars['list']) && strpos($_SERVER['PHP_SELF'], 'article.php') !== FALSE) { $breadcrumb->findArticle($urlvars['id']); } if (isset($urlvars['list']) && $urlvars['list'] == AMP_CONTENT_LISTTYPE_SECTION) { $breadcrumb->findSection($urlvars[AMP_CONTENT_LISTTYPE_SECTION]); } if (strpos($_SERVER['PHP_SELF'], 'article.php') === FALSE && isset($intro_id) && $intro_id !== 1) { $breadcrumb->findIntroText($intro_id); } $currentPage =& AMPContent_Page::instance(); if (isset($currentPage) && ($page_section = $currentPage->getSectionId())) { $breadcrumb->findSection($page_section); } if (isset($urlvars['template_section']) && $urlvars['template_section']) { $breadcrumb->findSection($urlvars['template_section']); } //this guard clause is a temporary measure until breadcrumb is reliably called //by the template if (!isset($avoid_printing_breadcrumb)) { print $breadcrumb->execute();
function _is_basic_list_request() { if (!empty($_POST)) { return false; } if (strpos($_SERVER['REQUEST_URI'], AMP_SYSTEM_URL_ARTICLE) === FALSE) { return true; } $request_vars = AMP_URL_Read(); if (empty($request_vars)) { return true; } $action_value = isset($request_vars['action']) && $request_vars['action'] ? $request_vars['action'] : false; $action_value = $this->assert_var('action'); if ($action_value && $action_value != 'list') { return false; } if (count($request_vars) > 1 || !$action_value) { return false; } return true; }