Esempio n. 1
0
 /**
  * Return list of all assigned variables
  *
  * Returns all public properties of the object. Reflection is not used
  * here as testing reflection properties for visibility is buggy.
  *
  * @return array
  */
 public function getVars()
 {
     if (!$this->_vars) {
         $this->_vars = parent::getVars();
     }
     return $this->_vars;
 }
Esempio n. 2
0
 /**
  * _checkDojoParams
  *
  * @return void
  */
 private function _checkDojoParams()
 {
     if (!$this->_front->getRequest()->getParam("__items")) {
         $this->_viewRenderer->getResponse()->setException(new ZLayer_Controller_Plugin_Exception('The parameter __items is required in the request'));
     } else {
         $vars = $this->_view->getVars();
         /*
         if (!isset($vars[$this->_front->getRequest()->getParam("__data")])) {
             //$this->_viewRenderer->getResponse()->setException(new ZLayer_Controller_Plugin_Exception('The key variable in the parameter __data was not found in view'));
         }
         */
     }
 }
Esempio n. 3
0
 public function testGetVars()
 {
     $view = new Zend_View();
     $view->foo = 'bar';
     $view->bar = 'baz';
     $view->baz = array('foo', 'bar');
     $vars = $view->getVars();
     $this->assertEquals(3, count($vars));
     $this->assertEquals('bar', $vars['foo']);
     $this->assertEquals('baz', $vars['bar']);
     $this->assertEquals(array('foo', 'bar'), $vars['baz']);
 }