| [ Index ] |
PHP Cross Reference of Akelos Framework |
[Summary view] [Print] [Text view]
1 <?php 2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 3 4 // +----------------------------------------------------------------------+ 5 // | Akelos Framework - http://www.akelos.org | 6 // +----------------------------------------------------------------------+ 7 // | Copyright (c) 2002-2006, Akelos Media, S.L. & Bermi Ferrer Martinez | 8 // | Released under the GNU Lesser General Public License, see LICENSE.txt| 9 // +----------------------------------------------------------------------+ 10 11 /** 12 * @package ActionView 13 * @subpackage Helpers 14 * @author Bermi Ferrer <bermi a.t akelos c.om> 15 * @copyright Copyright (c) 2002-2006, Akelos Media, S.L. http://www.akelos.org 16 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html> 17 */ 18 19 class AkActionViewHelper extends AkObject 20 { 21 var $locales_namespace = 'helpers'; 22 23 function AkActionViewHelper() 24 { 25 $args = func_get_args(); 26 if(!empty($args[0]) && is_array($args[0])){ 27 foreach (array_keys($args[0]) as $object_name){ 28 $this->addObject($object_name, $args[0][$object_name]); 29 } 30 } 31 } 32 33 function addObject($object_name, &$object) 34 { 35 $this->_object[$object_name] =& $object; 36 if(!isset($this->_controller->$object_name)){ 37 $this->_controller->$object_name =& $object; 38 } 39 } 40 41 function &getObject($object_name) 42 { 43 return $this->_object[$object_name]; 44 } 45 46 function setController(&$controller) 47 { 48 $this->_controller =& $controller; 49 } 50 51 function t($string, $array = null, $name_space = null) 52 { 53 $name_space = empty($name_space) ? $this->locales_namespace : $name_space; 54 return Ak::t($string, $array, $name_space); 55 } 56 } 57 58 59 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Oct 27 12:43:49 2008 | Cross-referenced by PHPXref 0.6 |