equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
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. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Layout |
16 * @package Zend_Layout |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Layout.php 20096 2010-01-06 02:05:09Z bkarwin $ |
19 * @version $Id: Layout.php 25263 2013-02-18 11:48:02Z frosch $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * Provide Layout support for MVC applications |
23 * Provide Layout support for MVC applications |
24 * |
24 * |
25 * @category Zend |
25 * @category Zend |
26 * @package Zend_Layout |
26 * @package Zend_Layout |
27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
29 */ |
29 */ |
30 class Zend_Layout |
30 class Zend_Layout |
31 { |
31 { |
32 /** |
32 /** |
172 */ |
172 */ |
173 public static function startMvc($options = null) |
173 public static function startMvc($options = null) |
174 { |
174 { |
175 if (null === self::$_mvcInstance) { |
175 if (null === self::$_mvcInstance) { |
176 self::$_mvcInstance = new self($options, true); |
176 self::$_mvcInstance = new self($options, true); |
177 } |
177 } else { |
178 |
178 if (is_string($options)) { |
179 if (is_string($options)) { |
179 self::$_mvcInstance->setLayoutPath($options); |
180 self::$_mvcInstance->setLayoutPath($options); |
180 } elseif (is_array($options) || $options instanceof Zend_Config) { |
181 } elseif (is_array($options) || $options instanceof Zend_Config) { |
181 self::$_mvcInstance->setOptions($options); |
182 self::$_mvcInstance->setOptions($options); |
182 } |
183 } |
183 } |
184 |
184 |
185 return self::$_mvcInstance; |
185 return self::$_mvcInstance; |
186 } |
186 } |
187 |
187 |