本文整理汇总了PHP中Base::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Base::init方法的具体用法?PHP Base::init怎么用?PHP Base::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base
的用法示例。
在下文中一共展示了Base::init方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
protected function init()
{
parent::init();
$log = $this->getLog();
$log->add("\n\n-----------------------Hello world service----------------------------");
$log->flush();
}
示例2: init
public function init()
{
parent::init();
if (!$this->refine) {
$this->refine = [$this, 'refine'];
}
}
示例3: init
public function init()
{
parent::init();
$this->tempFile = tempnam($this->tempPath, 'php-auto-update-');
$this->archive = new \ZipArchive();
$this->createZipFile();
}
示例4: init
/**
* init
*
* @return void
*/
public function init()
{
parent::init();
$this->removeElement('userId');
$this->getElement('submit')->setLabel($this->translate('register'));
//$this->removeElement('role');
}
示例5: init
protected function init()
{
parent::init();
if (! file_exists($this->http_load)) {
$this->outln("File not found: '{$this->http_load}'.");
exit(1);
}
}
示例6: init
public function init()
{
parent::init();
$this->addElement('text', 'title', array('required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => 'Titre obligatoire'))), 'attribs' => array('class' => 'text medium')));
$this->addElement('textarea', 'text', array('required' => true, 'validators' => array(array('NotEmpty', true, array('messages' => 'Contenu obligatoire'))), 'attribs' => array('class' => 'wysiwyg')));
$this->addElement('hidden', 'filename', array('required' => true, 'validators' => array(array('UploadExists', true, array('messages' => 'Aperçu incorrect')), array('NotEmpty', true, array('messages' => 'Image obligatoire')))));
$this->getElement('filename')->setDecorators(array(array('ViewScript', array('viewScript' => '_upload.phtml'))));
$this->defaultFilters();
}
示例7: init
/** @inheritdoc */
public function init()
{
parent::init();
if ($this->envFolder === null) {
$this->envFolder = realpath(__DIR__ . '/../../environments');
}
if (!is_array($this->envDescription)) {
$this->envDescription = [];
}
}
示例8: init
public function init()
{
parent::init();
$this->sourceHash = $this->git('rev-parse', ['--verify', $this->source . '^{commit}']);
$this->targetHash = $this->git('rev-parse', ['--verify', $this->target . '^{commit}']);
if (!isset($this->sourceHash) || !isset($this->targetHash)) {
throw new \Exception("Source or target commit not found.");
}
$this->initChanges();
}
示例9: define
<?php
define('DEBUG', 1);
define('PATH', dirname(__FILE__));
require_once PATH . '/app/Core/autoload.php';
Base::init();
示例10:
<?php
/*
Plugin Name: WP Plugin Base
Plugin URI: http://khaledsaikat.com
Description: Base files for creating new WordPress plugin
Author: Khaled Hossain
Version: 1.0-alpha
Author URI: http://khaledsaikat.com
*/
namespace PluginBase;
require __DIR__ . '/vendor/autoload.php';
Base::init(__FILE__);
Base::load_controllers();
示例11: init
protected function init($account)
{
parent::init($account);
$this->accumulator = 0;
}
示例12: init
function init()
{
parent::init();
$this->uid = cookie('adminUid');
$this->uname = cookie('adminUser');
}
示例13: shortcodes_to_exempt_from_wptexturize
<?php
require_once get_template_directory() . '/base/base.php';
require_once get_template_directory() . '/base/custom/config.php';
$theme = new Base();
$theme->init($theme_config);
add_filter('no_texturize_shortcodes', 'shortcodes_to_exempt_from_wptexturize');
function shortcodes_to_exempt_from_wptexturize($shortcodes)
{
$shortcodes[] = 'accordions';
$shortcodes[] = 'tabs';
return $shortcodes;
}