php Zend-Dojo-Dojo类(方法)实例源码

下面列出了php Zend-Dojo-Dojo 类(方法)源码代码实例,从而了解它的用法。

作者:RomanShumko    项目:zf   
/**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 public function setUp()
 {
     $registry = Registry::getInstance();
     if (isset($registry['Zend\\Dojo\\View\\Helper\\Dojo'])) {
         unset($registry['Zend\\Dojo\\View\\Helper\\Dojo']);
     }
     $this->view = new View\PhpRenderer();
     \Zend\Dojo\Dojo::enableView($this->view);
 }

作者:heiglandrea    项目:zf   
/**
  * Retrieve Dojo View Helper
  *
  * @return Zend_Dojo_View_Dojo_Container
  */
 public function getDojo()
 {
     if (null === $this->_dojo) {
         $this->getBootstrap()->bootstrap('view');
         $view = $this->getBootstrap()->view;
         \Zend\Dojo\Dojo::enableView($view);
         $view->dojo()->setOptions($this->getOptions());
         $this->_dojo = $view->dojo();
     }
     return $this->_dojo;
 }

作者:RomanShumko    项目:zf   
/**
  * Retrieve Dojo View Helper
  *
  * @return Zend_Dojo_View_Dojo_Container
  */
 public function getDojo()
 {
     if (null === $this->_dojo) {
         $this->getBootstrap()->bootstrap('view');
         $view = $this->getBootstrap()->view;
         \Zend\Dojo\Dojo::enableView($view);
         $dojoContainer = $view->broker('dojo')->direct()->setOptions($this->getOptions());
         $this->_dojo = $dojoContainer;
     }
     return $this->_dojo;
 }

作者:bradley-hol    项目:zf   
/**
  * Retrieve Dojo View Helper
  *
  * @return Zend_Dojo_View_Dojo_Container
  */
 public function getDojo()
 {
     if (null === $this->_dojo) {
         $this->getBootstrap()->bootstrap('view');
         $view = $this->getBootstrap()->view;
         DojoConfigurator::enableView($view);
         $dojo = $view->plugin('dojo');
         $dojoContainer = $dojo();
         $dojoContainer->setOptions($this->getOptions());
         $this->_dojo = $dojoContainer;
     }
     return $this->_dojo;
 }

作者:heiglandrea    项目:zf   
public function getView()
 {
     $view = new View();
     \Zend\Dojo\Dojo::enableView($view);
     return $view;
 }

作者:rafalwrzeszc    项目:zf   
public function testDisableViewShouldUnregisterDojoViewHelpers()
 {
     $view = new View\PhpRenderer();
     \Zend\Dojo\Dojo::enableView($view);
     $this->assertInstanceOf('Zend\\Dojo\\View\\Helper\\Dojo', $view->plugin('dojo'));
     \Zend\Dojo\Dojo::disableView($view);
     try {
         $view->plugin('dojo');
         $this->fail('RuntimeException was expected but not thrown');
     } catch (\Zend\Loader\Exception\RuntimeException $e) {
         // success
     }
 }

作者:rmarshall-quibid    项目:zf   
public function testEnableViewShouldSetAppropriateViewHelperPaths()
 {
     $view = new View();
     \Zend\Dojo\Dojo::enableView($view);
     $helperLoader = $view->getPluginLoader('helper');
     $paths = $helperLoader->getPaths('Zend\\Dojo\\View\\Helper');
     $this->assertTrue(is_array($paths));
 }


问题


面经


文章

微信
公众号

扫码关注公众号