本文整理汇总了PHP中Cx\Core\Html\Sigma::setErrorHandling方法的典型用法代码示例。如果您正苦于以下问题:PHP Sigma::setErrorHandling方法的具体用法?PHP Sigma::setErrorHandling怎么用?PHP Sigma::setErrorHandling使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cx\Core\Html\Sigma
的用法示例。
在下文中一共展示了Sigma::setErrorHandling方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
* PHP5 constructor
*
* @global object $objTemplate
* @global array $_ARRAYLANG
*/
function __construct()
{
global $_ARRAYLANG, $objTemplate;
$this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Ecard/View/Template/Backend');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
$this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
}
示例2:
function __construct($pageContent)
{
$this->pageContent = $pageContent;
$this->_objTpl = new \Cx\Core\Html\Sigma('.');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
$this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
}
示例3:
/**
* PHP5 constructor
* @global object $objTemplate
* @global array $_ARRAYLANG
*/
function __construct()
{
global $objTemplate, $_ARRAYLANG;
$this->objTemplate = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Downloads/View/Template/Backend');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate);
$this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
parent::__construct();
}
示例4:
/**
* Constructor
*
* @param string
* @access public
*/
function __construct()
{
global $_ARRAYLANG, $objInit, $objTemplate;
$this->pageTitle = $_ARRAYLANG["TXT_JOBS_MANAGER"];
$this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Jobs/View/Template/Backend');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
$this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
$this->langId = $objInit->userFrontendLangId;
}
示例5: intval
/**
* Constructor
*
* Call parent constructor, set language id and create local template object
* @global integer
*/
function __construct($strPageContent)
{
global $_LANGID;
parent::__construct();
$this->_intLanguageId = intval($_LANGID);
$this->_intCurrentUserId = isset($_SESSION['auth']['userid']) ? intval($_SESSION['auth']['userid']) : 0;
$this->_objTpl = new \Cx\Core\Html\Sigma('.');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
$this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
$this->_objTpl->setTemplate($strPageContent);
}
示例6: array
/**
* Constructor
*
* Calls the parent constructor and creates a local template object
* @param $strPageContent string The content of the page as string.
* @param $queryParams array The constructor accepts an array parameter $queryParams, which will
* override the request parameters cmd and/or category, if given
* override the request parameters cmd and/or category
*/
function __construct($strPageContent, array $queryParams = array())
{
parent::__construct();
$objFWUser = \FWUser::getFWUserObject();
$this->userId = $objFWUser->objUser->login() ? $objFWUser->objUser->getId() : 0;
$this->parseURLModifiers($queryParams);
$this->objTemplate = new \Cx\Core\Html\Sigma('.');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate);
$this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
$this->objTemplate->setTemplate($strPageContent);
}
示例7: array
function __construct()
{
global $_ARRAYLANG, $objTemplate, $objInit;
$this->_arrFormFieldTypes = array('text' => $_ARRAYLANG['TXT_EGOV_TEXTBOX'], 'label' => $_ARRAYLANG['TXT_EGOV_TEXT'], 'checkbox' => $_ARRAYLANG['TXT_EGOV_CHECKBOX'], 'checkboxGroup' => $_ARRAYLANG['TXT_EGOV_CHECKBOX_GROUP'], 'hidden' => $_ARRAYLANG['TXT_EGOV_HIDDEN_FIELD'], 'password' => $_ARRAYLANG['TXT_EGOV_PASSWORD_FIELD'], 'radio' => $_ARRAYLANG['TXT_EGOV_RADIO_BOXES'], 'select' => $_ARRAYLANG['TXT_EGOV_SELECTBOX'], 'textarea' => $_ARRAYLANG['TXT_EGOV_TEXTAREA']);
$this->initContactForms();
$this->objTemplate = new \Cx\Core\Html\Sigma(ASCMS_MODULE_PATH . '/Egov/View/Template/Backend');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->objTemplate);
$this->objTemplate->setErrorHandling(PEAR_ERROR_DIE);
$this->imagePath = ASCMS_MODULE_WEB_PATH . '/Egov/View/Media';
$this->langId = $objInit->userFrontendLangId;
}
示例8:
function __construct()
{
global $_ARRAYLANG, $objTemplate, $_CONFIG;
$this->_objTpl = new \Cx\Core\Html\Sigma(\Env::get('cx')->getCodeBaseModulePath() . '/Feed/View/Template/Backend');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
$this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
if (isset($_GET['act']) && $_GET['act'] == 'settings' && isset($_POST['save'])) {
$this->_saveSettings();
}
//feed path
$this->feedpath = \Env::get('cx')->getWebsiteFeedPath() . '/';
}
示例9: array
/**
* Constructor
* @access public
* @return shopmanager
*/
function __construct()
{
global $_ARRAYLANG, $objTemplate;
\Cx\Core\Setting\Controller\Setting::init('Shop', 'config');
$this->checkProfileAttributes();
$cx = \Cx\Core\Core\Controller\Cx::instanciate();
self::$defaultImage = file_exists($cx->getWebsiteImagesShopPath() . '/' . ShopLibrary::noPictureName) ? $cx->getWebsiteImagesShopWebPath() . '/' . ShopLibrary::noPictureName : $cx->getCodeBaseOffsetPath() . '/images/Shop/' . ShopLibrary::noPictureName;
self::$objTemplate = new \Cx\Core\Html\Sigma($cx->getCodeBaseModulePath() . '/Shop/View/Template/Backend');
self::$objTemplate->setErrorHandling(PEAR_ERROR_DIE);
//DBG::log("ARRAYLANG: ".var_export($_ARRAYLANG, true));
self::$objTemplate->setGlobalVariable($_ARRAYLANG + array('SHOP_CURRENCY' => Currency::getActiveCurrencySymbol(), 'CSRF_PARAM' => \Cx\Core\Csrf\Controller\Csrf::param()));
}
示例10: isset
/**
* Constructor
* @global mixed $objDatabase ADODB abstraction layer object
* @param string $pageContent HTML template (@see /index.php)
*/
function __construct($pageContent)
{
global $objDatabase;
$this->frontLang = isset($_GET['immoLang']) ? intval($_GET['immoLang']) : 1;
$objRS = $objDatabase->Execute(" SELECT count(1) as cnt FROM " . DBPREFIX . "module_immo_fieldname WHERE\n lang_id = 1 AND lower(name) LIKE '%aufzählung%'");
$this->_listingCount = $objRS->fields['cnt'];
$this->_objTpl = new \Cx\Core\Html\Sigma('.');
\Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
$this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
$this->_objTpl->setTemplate($pageContent);
if (function_exists('mysql_set_charset')) {
mysql_set_charset("utf8");
//this is important for umlauts
}
// initialise the session array
if (!isset($_SESSION['immo'])) {
$_SESSION['immo'] = array();
}
parent::__construct();
}
示例11: getPage
/**
* Returns the Shop page for the present parameters
* @param string $template The page template
* @return string The page content
*/
static function getPage($template)
{
//\DBG::activate(DBG_ERROR_FIREPHP);
//\DBG::activate(DBG_LOG_FILE);
self::init();
self::registerJavascriptCode();
// PEAR Sigma template
self::$objTemplate = new \Cx\Core\Html\Sigma('.');
self::$objTemplate->setErrorHandling(PEAR_ERROR_DIE);
self::$objTemplate->setTemplate($template);
// Global module index for clones
self::$objTemplate->setGlobalVariable('MODULE_INDEX', MODULE_INDEX);
// Do this *before* calling our friends, especially Customer methods!
// Pick the default Country for delivery
if (empty($_SESSION['shop']['countryId2'])) {
$_SESSION['shop']['countryId2'] = isset($_POST['countryId2']) ? intval($_POST['countryId2']) : \Cx\Core\Setting\Controller\Setting::getValue('country_id', 'Shop');
}
// TODO: This should be set up in a more elegant way
Vat::is_reseller(self::$objCustomer && self::$objCustomer->is_reseller());
// The coupon code may be set when entering the Shop already
if (isset($_REQUEST['coupon_code'])) {
global $sessionObj;
if (!$sessionObj) {
$sessionObj = \cmsSession::getInstance();
}
$_SESSION['shop']['coupon_code'] = trim(strip_tags(contrexx_input2raw($_REQUEST['coupon_code'])));
//\DBG::log("Coupon Code: Set to ".$_SESSION['shop']['coupon_code']);
}
//\DBG::log("Shop::getPage(): Entered");
// Global placeholders that are used on (almost) all pages.
// Add more as desired.
self::$objTemplate->setGlobalVariable(array('SHOP_CURRENCY_CODE' => Currency::getActiveCurrencyCode(), 'SHOP_CURRENCY_SYMBOL' => Currency::getActiveCurrencySymbol()));
if (!isset($_GET['cmd'])) {
$_GET['cmd'] = '';
}
if (!isset($_GET['act'])) {
$_GET['act'] = $_GET['cmd'];
}
switch ($_GET['act']) {
case 'shipment':
self::showShipmentTerms();
break;
case 'success':
self::success();
break;
case 'confirm':
self::confirm();
break;
case 'lsv':
case 'lsv_form':
self::view_lsv_form();
break;
case 'payment':
self::payment();
break;
case 'account':
self::view_account();
break;
case 'cart':
self::cart();
break;
case 'discounts':
self::discounts();
break;
case 'login':
self::login();
break;
case 'paypalIpnCheck':
// OBSOLETE -- Handled by PaymentProcessing::checkIn() now
$objPaypal = new \PayPal();
$objPaypal->ipnCheck();
exit;
case 'sendpass':
self::view_sendpass();
break;
case 'changepass':
self::_changepass();
break;
// Test for PayPal IPN.
// *DO NOT* remove this! Needed for site testing.
// Test for PayPal IPN.
// *DO NOT* remove this! Needed for site testing.
case 'testIpn':
\PayPal::testIpn();
// die()s!
// Test for PayPal IPN validation
// *DO NOT* remove this! Needed for site testing.
// die()s!
// Test for PayPal IPN validation
// *DO NOT* remove this! Needed for site testing.
case 'testIpnValidate':
\PayPal::testIpnValidate();
// die()s!
// Test mail body generation
// *DO NOT* remove this! Needed for site testing.
//.........这里部分代码省略.........
示例12: loadTemplate
/**
* Init main template object
*
* In backend mode, ASCMS_ADMIN_TEMPLATE_PATH/index.html is opened
* In all other modes, no file is loaded here
*/
protected function loadTemplate()
{
$this->template = new \Cx\Core\Html\Sigma($this->mode == self::MODE_FRONTEND ? $this->websiteThemesPath : $this->codeBaseAdminTemplatePath);
$this->template->setErrorHandling(PEAR_ERROR_DIE);
if ($this->mode == self::MODE_BACKEND) {
$this->template->loadTemplateFile('Index.html');
$this->template->addBlockfile('CONTENT_FILE', 'index_content', 'IndexContent.html');
}
}