public function __construct(ContextManager $context) { $this->metadata = array('name' => $this->class_name(), 'author' => 'Aurelian Oancea', 'version' => 0.1, 'url' => 'http://example.com/foo_plugin'); $this->routes = array(new Route('__login', '/login', array('controller' => 'account', 'action' => 'login')), new Route('__logout', '/logout', array('controller' => 'account', 'action' => 'logout'))); $this->load_path = dirname(__FILE__) . '/../'; parent::__construct($context); }
/** * {@inheritDoc} * * @param array $uitooltip */ protected function render($element, array $options = [], array $uitooltip = []) { $jQuery = $this->jQuery()->getOptions()->getName(); if ($uitooltip) { $this->script()->append(<<<EOJ ;{$jQuery}("{$element}-map area").uitooltip({$this->encode($uitooltip)}); EOJ ); } return parent::render($element, $options); }
/** * constructor; don't show main content * * @param string $opts * @author Andy Bennett */ function __construct($opts = null) { parent::__construct($opts); Display::instance()->add_data('show_maincontent', true); }
public function setUp() { $this->setUpInterceptionConfig(['Magento\\Framework\\Interception\\Fixture\\InterceptedInterface' => ['plugins' => ['first' => ['instance' => 'Magento\\Framework\\Interception\\Fixture\\Intercepted\\InterfacePlugin', 'sortOrder' => 10]]], 'Magento\\Framework\\Interception\\Fixture\\Intercepted' => ['plugins' => ['second' => ['instance' => 'Magento\\Framework\\Interception\\Fixture\\Intercepted\\Plugin', 'sortOrder' => 20]]]]); parent::setUp(); }
public function __construct(ContextManager $context) { $this->metadata = array('name' => $this->class_name(), 'author' => 'Joe Doe', 'version' => 0.1, 'url' => 'http://example.com/foo_plugin'); $context->logger()->debugf("Plugin %s loaded", $this->name()); parent::__construct($context); }
function __construct($opts = null) { parent::__construct($opts); }