예제 #1
0
 public function __construct($params = null)
 {
     parent::__construct($params);
     $this->setTemplate($this->_template);
     $this->init();
     $this->widget = $this;
 }
예제 #2
0
 /**
  * @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;
     }
 }
예제 #3
0
 /**
  * @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');
     }
 }
예제 #4
0
 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;
     }
 }
예제 #5
0
 /**
  *
  * @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();
 }
예제 #8
0
 public function __construct(\Application\Model\Calendar $calendar, $variables = null, $options = null)
 {
     $this->calendar = $calendar;
     parent::__construct($variables, $options);
     $this->setTerminal(true);
 }
예제 #9
0
 public function __construct($variables = null, $options = null)
 {
     parent::__construct($variables, $options);
 }
예제 #10
0
 public function __construct($variables = null, $options = null)
 {
     $variables['name'] = !isset($variables['name']) ? "" : $variables['name'];
     $this->name = $variables['name'];
     parent::__construct($variables, $options);
 }
예제 #11
0
 /**
  * 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);
 }
예제 #12
0
 /**
  * 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);
 }
예제 #14
0
 /**
  * @param mixed $variables
  * @param string $options
  */
 public function __construct($variables = null, $options = null)
 {
     parent::__construct($variables, $options);
     $this->setTerminal(true);
 }
예제 #15
0
 /**
  * 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);
 }