public function __construct($params = null) { parent::__construct($params); $this->setTemplate($this->_template); $this->init(); $this->widget = $this; }
/** * @param array $variables * @param array $options * @param string $template */ public function __construct($variables = null, $options = null, $template = null) { parent::__construct($variables, $options); // May be overloaded by inheriting class if (empty($this->template)) { $this->template = $template; } }
/** * @param array|null $variables * @param array|null $options */ public function __construct($variables = null, $options = null) { parent::__construct($variables, $options); $this->setTemplate(static::DEFAULT_TEMPLATE); if (!$this->getVariable('textDomain')) { $this->setVariable('textDomain', 'default'); } }
public function __construct($config, $sm, $data) { //Initialize the view parent::__construct(); //Get the widget definitions $this->_allWidgets = $config['viz']['widgets']; $this->setServiceLocator($sm); //Set the template $this->setTemplate('atp-viz/widget/container.phtml'); //Set the data foreach ($data as $name => $value) { $this->{$name} = $value; } }
/** * * @param null|array|\Traversable $variables * @param string $htmlTemplate * @param string $textTemplate */ public function __construct($htmlTemplate = '', $textTemplate = '', $variables = array()) { parent::__construct($variables); $this->mb = (new Mailgun())->MessageBuilder(); if ($htmlTemplate !== '') { $htmlViewModel = new ViewModel($variables); $htmlViewModel->setTemplate($htmlTemplate); $this->setHtmlViewModel($htmlViewModel); } if ($textTemplate !== '') { $textViewModel = new ViewModel($variables); $textViewModel->setTemplate($textTemplate); $this->setTextViewModel($textViewModel); } $this->initFrom(); $this->initTo(); $this->initSubject(); $this->initInlineFiles(); }
public function __construct() { parent::__construct(); $this->setViewData(); }
public function __construct($userId) { parent::__construct(); $this->userId = $userId; $this->setViewData(); }
public function __construct(\Application\Model\Calendar $calendar, $variables = null, $options = null) { $this->calendar = $calendar; parent::__construct($variables, $options); $this->setTerminal(true); }
public function __construct($variables = null, $options = null) { parent::__construct($variables, $options); }
public function __construct($variables = null, $options = null) { $variables['name'] = !isset($variables['name']) ? "" : $variables['name']; $this->name = $variables['name']; parent::__construct($variables, $options); }
/** * Constructor * * @param string $name * @param null|array|Traversable $variables * @param array|Traversable $options */ public function __construct($name, $variables = null, $options = null) { $this->setName($name); parent::__construct($variables, $options); }
/** * Constructor * * @param null|array|Traversable $variables * @param array|Traversable $options */ public function __construct($variables = null, $options = null) { $this->setTemplate('whathood/error/index.phtml'); parent::__construct($variables, $options); }
/** * @param null $variables * @param null $options */ public function __construct($variables = null, $options = null) { $this->terminate = true; parent::__construct($variables, $options); }
/** * @param mixed $variables * @param string $options */ public function __construct($variables = null, $options = null) { parent::__construct($variables, $options); $this->setTerminal(true); }
/** * Constructor * * @param string $snippetName * @param string $snippetIdentifier * @param null $variables * @param null $options */ public function __construct($snippetName, $snippetIdentifier, $variables = null, $options = null) { $this->setSnippetName($snippetName); $this->setSnippetIdentifier($snippetIdentifier); parent::__construct($variables, $options); }