예제 #1
0
파일: Theme.php 프로젝트: molajo/molajito
 /**
  * Render output
  *
  * @param   array $data
  *
  * @return  string
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function renderOutput(array $data = array())
 {
     $data['on_before_event'] = 'onBeforeRenderTheme';
     $data['on_after_event'] = 'onAfterRenderTheme';
     $data['suffix'] = '/Index.phtml';
     return parent::renderOutput($data);
 }
예제 #2
0
파일: Cache.php 프로젝트: molajo/molajito
 /**
  * Constructor
  *
  * @param  EscapeInterface $escape_instance
  * @param  RenderInterface $render_instance
  * @param  EventInterface  $event_instance
  * @param  Object          $runtime_data
  * @param  callable        $get_cache_callback
  * @param  callable        $set_cache_callback
  * @param  callable        $delete_cache_callback
  *
  * @since  1.0.0
  */
 public function __construct(EscapeInterface $escape_instance, $render_instance, EventInterface $event_instance, $runtime_data, $get_cache_callback = null, $set_cache_callback = null, $delete_cache_callback = null)
 {
     $this->get_cache_callback = $get_cache_callback;
     $this->set_cache_callback = $set_cache_callback;
     $this->delete_cache_callback = $delete_cache_callback;
     $this->cache_type = 'Cacheview';
     parent::__construct($escape_instance, $render_instance, $event_instance, $runtime_data);
 }