예제 #1
0
 protected function init()
 {
     parent::init();
     $log = $this->getLog();
     $log->add("\n\n-----------------------Hello world service----------------------------");
     $log->flush();
 }
예제 #2
0
 public function init()
 {
     parent::init();
     if (!$this->refine) {
         $this->refine = [$this, 'refine'];
     }
 }
예제 #3
0
 public function init()
 {
     parent::init();
     $this->tempFile = tempnam($this->tempPath, 'php-auto-update-');
     $this->archive = new \ZipArchive();
     $this->createZipFile();
 }
예제 #4
0
 /**
  * init 
  * 
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->removeElement('userId');
     $this->getElement('submit')->setLabel($this->translate('register'));
     //$this->removeElement('role');
 }
예제 #5
0
 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();
 }
예제 #7
0
 /** @inheritdoc */
 public function init()
 {
     parent::init();
     if ($this->envFolder === null) {
         $this->envFolder = realpath(__DIR__ . '/../../environments');
     }
     if (!is_array($this->envDescription)) {
         $this->envDescription = [];
     }
 }
예제 #8
0
 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
0
<?php

define('DEBUG', 1);
define('PATH', dirname(__FILE__));
require_once PATH . '/app/Core/autoload.php';
Base::init();
예제 #10
0
<?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
0
파일: Iteration.php 프로젝트: jschaedl/bav
 protected function init($account)
 {
     parent::init($account);
     $this->accumulator = 0;
 }
예제 #12
0
 public function init()
 {
     parent::init();
     $this->archive = new \ZipArchive();
 }
예제 #13
0
 function init()
 {
     parent::init();
     $this->uid = cookie('adminUid');
     $this->uname = cookie('adminUser');
 }
예제 #14
0
<?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;
}