protected function init() { parent::init(); $log = $this->getLog(); $log->add("\n\n-----------------------Hello world service----------------------------"); $log->flush(); }
public function init() { parent::init(); if (!$this->refine) { $this->refine = [$this, 'refine']; } }
public function init() { parent::init(); $this->tempFile = tempnam($this->tempPath, 'php-auto-update-'); $this->archive = new \ZipArchive(); $this->createZipFile(); }
/** * init * * @return void */ public function init() { parent::init(); $this->removeElement('userId'); $this->getElement('submit')->setLabel($this->translate('register')); //$this->removeElement('role'); }
protected function init() { parent::init(); if (! file_exists($this->http_load)) { $this->outln("File not found: '{$this->http_load}'."); exit(1); } }
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(); }
/** @inheritdoc */ public function init() { parent::init(); if ($this->envFolder === null) { $this->envFolder = realpath(__DIR__ . '/../../environments'); } if (!is_array($this->envDescription)) { $this->envDescription = []; } }
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(); }
<?php define('DEBUG', 1); define('PATH', dirname(__FILE__)); require_once PATH . '/app/Core/autoload.php'; Base::init();
<?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();
protected function init($account) { parent::init($account); $this->accumulator = 0; }
public function init() { parent::init(); $this->archive = new \ZipArchive(); }
function init() { parent::init(); $this->uid = cookie('adminUid'); $this->uname = cookie('adminUser'); }
<?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; }