Пример #1
0
 /**
  * Set the output items.
  *
  * @param array $items The output items
  * @param bool|false $reset if true, the original outputs will clear;
  * else the original will be replaced
  */
 public function setOutputs($items, $reset = false)
 {
     if (!is_array($items)) {
         $items = array($items);
     }
     if ($reset) {
         $this->outputs->clear();
     }
     $this->outputs->replace($items);
 }