parent::__construct();
}
- private function initialize( ) {
+ private function initialize() {
$config = CRM_Core_Config::singleton();
if (isset($config->customTemplateDir) && $config->customTemplateDir) {
* @param string $resource_name
* @param string $cache_id
* @param string $compile_id
- * @param boolean $display
+ * @param bool $display
*
* @return bool|mixed|string
*/
* Fetch a template (while using certain variables)
*
* @param string $resource_name
- * @param array $vars (string $name => mixed $value) variables to export to Smarty
+ * @param array $vars
+ * (string $name => mixed $value) variables to export to Smarty.
* @throws Exception
* @return bool|mixed|string
*/
$this->pushScope($vars);
try {
$result = $this->fetch($resource_name);
- } catch (Exception $e) {
+ }
+ catch (Exception $e) {
// simulate try { ... } finally { ... }
$this->popScope();
throw $e;
public function addTemplateDir($path) {
if ( is_array( $this->template_dir ) ) {
array_unshift( $this->template_dir, $path );
- } else {
+ }
+ else {
$this->template_dir = array( $path, $this->template_dir );
}
* $smarty->popScope();
* @endcode
*
- * @param array $vars (string $name => mixed $value)
+ * @param array $vars
+ * (string $name => mixed $value).
* @return CRM_Core_Smarty
* @see popScope
*/
}
/**
- * @param array $vars (string $name => mixed $value)
+ * @param array $vars
+ * (string $name => mixed $value).
* @return CRM_Core_Smarty
*/
public function assignAll($vars) {
return $this;
}
}
-