Example #1
0
 public function register_object($objName, &$obj, $allowed = null, $smarty_args = true, $block_methods = array())
 {
     $this->_smarty->register_object($objName, $obj, $allowed, $smarty_args, $block_methods);
 }
Example #2
0
 /**
  * Register object to be used in templates
  *
  * @param string $object Name of template object
  * @param object &$objectImpl The referenced PHP object to register
  * @param null|array $allowed List of allowed methods (empty = all)
  * @param boolean $smartyArgs Smarty argument format, else traditional
  * @param null|array $blockMethods List of methods that are block format
  * @return void
  * 
  * @example Please see the object section of the Smarty's manual for examples. 
  */
 function registerObject($object, &$objectImpl, $allowed = array(), $smartyArgs = true, $blockMethods = array())
 {
     $this->_smarty->register_object($object, $objectImpl, $allowed, $smartyArgs, $blockMethods);
 }
Example #3
0
 /**
  * Registers Smarty object
  *
  * @param string $title Object title
  * @param Object $object
  * @param array $allowed Allowed methods
  * @param array $blockMethods Array of block method titles
  */
 public function registerObject($title, $object, $allowed = array(), $blockMethods = array())
 {
     $this->tpl->register_object($title, $object, $allowed, true, $blockMethods);
 }