[ZF-10089] Zend_Log
[zend/radio.git] / library / Zend / Application / Resource / Dojo.php
bloba569dbae8c590d9a88e0da99e104288c6b48d60c
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
15 * @category Zend
16 * @package Zend_Application
17 * @subpackage Resource
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id$
23 /**
24 * @see Zend_Application_Resource_ResourceAbstract
26 require_once 'Zend/Application/Resource/ResourceAbstract.php';
29 /**
30 * Resource for settings Dojo options
32 * @uses Zend_Application_Resource_ResourceAbstract
33 * @category Zend
34 * @package Zend_Application
35 * @subpackage Resource
36 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
37 * @license http://framework.zend.com/license/new-bsd New BSD License
39 class Zend_Application_Resource_Dojo
40 extends Zend_Application_Resource_ResourceAbstract
42 /**
43 * @var Zend_Dojo_View_Helper_Dojo_Container
45 protected $_dojo;
47 /**
48 * Defined by Zend_Application_Resource_Resource
50 * @return Zend_Dojo_View_Helper_Dojo_Container
52 public function init()
54 return $this->getDojo();
57 /**
58 * Retrieve Dojo View Helper
60 * @return Zend_Dojo_View_Dojo_Container
62 public function getDojo()
64 if (null === $this->_dojo) {
65 $this->getBootstrap()->bootstrap('view');
66 $view = $this->getBootstrap()->view;
68 Zend_Dojo::enableView($view);
69 $view->dojo()->setOptions($this->getOptions());
71 $this->_dojo = $view->dojo();
74 return $this->_dojo;