コード例 #1
0
ファイル: factory.php プロジェクト: joomline/Joomla1.5.999
 /**
  * Get a template object
  *
  * Returns a reference to the global {@link JTemplate} object, only creating it
  * if it doesn't already exist.
  *
  * @access public
  * @return object JTemplate
  */
 function &getTemplate()
 {
     static $instance;
     if (!is_object($instance)) {
         $instance = JFactory::_createTemplate();
     }
     return $instance;
 }