Commit 495dc133 by seldaek

add eol:style on new file

git-svn-id: http://svn.dwoo.org/trunk@342 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 69f61f83
<?php <?php
/** /**
* Dwoo base class for ZendFramework * Dwoo base class for ZendFramework
* *
* This software is provided 'as-is', without any express or implied warranty. * This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the * In no event will the authors be held liable for any damages arising from the
* use of this software. * use of this software.
* *
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>
* @author Marc Hodgins <mjh@hodginsmedia.com> * @author Marc Hodgins <mjh@hodginsmedia.com>
* @copyright Copyright (c) 2010, Jordi Boggiano * @copyright Copyright (c) 2010, Jordi Boggiano
* @license http://dwoo.org/LICENSE Modified BSD License * @license http://dwoo.org/LICENSE Modified BSD License
* @link http://dwoo.org/ * @link http://dwoo.org/
* @version 1.2.0 * @version 1.2.0
* @date 2010-02-28 * @date 2010-02-28
* @package Dwoo * @package Dwoo
*/ */
class Dwoo_Adapters_ZendFramework_Dwoo extends Dwoo class Dwoo_Adapters_ZendFramework_Dwoo extends Dwoo
{ {
/** /**
* Redirects all unknown properties to plugin proxy * Redirects all unknown properties to plugin proxy
* to support $this->viewVariable from within templates * to support $this->viewVariable from within templates
* *
* @param string $name Property name * @param string $name Property name
* @return mixed * @return mixed
*/ */
public function __get($name) public function __get($name)
{ {
if (isset($this->getPluginProxy()->view->$name)) { if (isset($this->getPluginProxy()->view->$name)) {
return $this->getPluginProxy()->view->$name; return $this->getPluginProxy()->view->$name;
} }
$trace = debug_backtrace(); $trace = debug_backtrace();
trigger_error('Undefined property via __get(): ' . $name . trigger_error('Undefined property via __get(): ' . $name .
' in ' . $trace[0]['file'] . ' in ' . $trace[0]['file'] .
' on line ' . $trace[0]['line'], E_USER_NOTICE); ' on line ' . $trace[0]['line'], E_USER_NOTICE);
return null; return null;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment