Esempio n. 1
0
 /**
  * Override append
  * 
  * @param  string $value 
  * @return void
  */
 public function append($value)
 {
     if (!$this->_isValid($value)) {
         require_once 'Zend/View/Exception.php';
         throw new Zend_View_Exception('Invalid argument passed to append(); please use one of the helper methods, appendScript() or appendFile()');
     }
     return parent::append($value);
 }
Esempio n. 2
0
 /**
  * Override append to enforce style creation
  * 
  * @param  mixed $value 
  * @return void
  */
 public function append($value)
 {
     if (!$this->_isValid($value)) {
         require_once 'Zend/View/Exception.php';
         throw new Zend_View_Exception('Invalid value passed to append; please use appendStyle()');
     }
     return parent::append($value);
 }
Esempio n. 3
0
 /**
  * append()
  *
  * @param  array $value
  * @return void
  */
 public function append($value)
 {
     if (!$this->_isValid($value)) {
         require_once 'Zend/View/Exception.php';
         throw new Zend_View_Exception('append() expects a data token; please use one of the custom append*() methods');
     }
     return parent::append($value);
 }