本文整理汇总了PHP中base::init方法的典型用法代码示例。如果您正苦于以下问题:PHP base::init方法的具体用法?PHP base::init怎么用?PHP base::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base
的用法示例。
在下文中一共展示了base::init方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($passthru = false, $ajax = false)
{
date_default_timezone_set('EST');
if ($ajax) {
$this->ajax = true;
}
$this->passthru = $passthru;
error_reporting(E_ERROR | E_WARNING | E_PARSE);
openlog(config::APP_NAMESPACE, 0, LOG_LOCAL0);
$this->logFile = fopen(config::LOG_FILE, "a+");
$this->initDB();
// Bring up the database connection
$this->initMemcache();
$this->validateSession();
// Session startup and login validator
$this->escapeVars();
// Sanitation
$this->htmlData = base::init();
if (!$passthru) {
$this->buildUserObject();
}
// Build User Object
if ($this->getSetting('stripe_private')) {
Stripe::setApiKey($this->getSetting('stripe_private'));
}
}
示例2: init
/**
*
*
* @param
* @access public
* @return void
*/
function init()
{
parent::init();
$this->webtod = new webtodtunnel();
$this->titlePage = 'Le Réseau';
$param = array('avec_arretslv' => false, 'avec_arretsdz' => true, 'accesreservation' => true);
$reponse = $this->webtod->getResponseParse('reseau', 'ServiceListerLignes', $param, 'reseau', 'ServiceListerLignes-answer.xml');
$this->Treelignes = $this->getTreeLignes($reponse);
}
示例3: init
/**
*
*
* @param
* @access public
* @return void
*/
function init()
{
parent::init();
$this->webtod = new webtodtunnel();
$this->titlePage = 'Le Réseau';
//création du tableau des réservation
$param = array('code_adherent' => $GLOBALS['front']->user->code_adherent);
$reponse = $this->webtod->getResponseParse('reservation', 'ServiceListerReservationsParAdherent', $param, 'reservation', 'ServiceListerReservationsParAdherent_Response.xml');
$this->makeArrayReservation($reponse);
//création du tableau des arrets
$param = array('avec_arretslv' => true, 'avec_arretsdz' => false, 'accesreservation' => true);
$reponse = $this->webtod->getResponseParse('reseau', 'ServiceListerArrets', $param, 'reseau', 'ServiceListerArrets_Response_LV.xml');
$this->makeArrayArrets($reponse);
}
示例4: init
/**
*
*
* @param
* @access public
* @return void
*/
function init($ref)
{
$this->type = $ref[0];
$this->module = $ref[1];
parent::init();
}