X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPage.php;h=0dd6d871420d942888f896d756681ce9cac5c3be;hb=94e6918c3f16db13cfcb8261ad846a80e9604eb3;hp=0274cacb182ba3594822fe8587fdcdb757333e9b;hpb=95d8ddc04c08360567c00283822622fb8bcb0b35;p=civicrm-core.git diff --git a/CRM/Core/Page.php b/CRM/Core/Page.php index 0274cacb18..0dd6d87142 100644 --- a/CRM/Core/Page.php +++ b/CRM/Core/Page.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -51,7 +51,7 @@ class CRM_Core_Page { protected $_name; /** - * The title associated with this page + * The title associated with this page. * * @var object */ @@ -116,7 +116,7 @@ class CRM_Core_Page { public $useLivePageJS; /** - * Class constructor + * Class constructor. * * @param string $title * Title of the page. @@ -245,7 +245,7 @@ class CRM_Core_Page { } /** - * Store the variable with the value in the form scope + * Store the variable with the value in the form scope. * * @param string|array $name name of the variable or an assoc array of name/value pairs * @param mixed $value @@ -259,7 +259,7 @@ class CRM_Core_Page { } /** - * Get the variable from the form scope + * Get the variable from the form scope. * * @param string $name name of the variable * @@ -270,7 +270,7 @@ class CRM_Core_Page { } /** - * Assign value to name in template + * Assign value to name in template. * * @param string $var * @param mixed $value @@ -283,7 +283,7 @@ class CRM_Core_Page { } /** - * Assign value to name in template by reference + * Assign value to name in template by reference. * * @param string $var * @param mixed $value @@ -296,7 +296,7 @@ class CRM_Core_Page { } /** - * Appends values to template variables + * Appends values to template variables. * * @param array|string $tpl_var the template variable name(s) * @param mixed $value @@ -308,7 +308,7 @@ class CRM_Core_Page { } /** - * Returns an array containing template variables + * Returns an array containing template variables. * * @param string $name * @@ -329,14 +329,17 @@ class CRM_Core_Page { } /** - * Use the form name to create the tpl file name + * Use the form name to create the tpl file name. * * @return string */ public function getTemplateFileName() { - return str_replace('_', - DIRECTORY_SEPARATOR, - CRM_Utils_System::getClassName($this) + return strtr( + CRM_Utils_System::getClassName($this), + array( + '_' => DIRECTORY_SEPARATOR, + '\\' => DIRECTORY_SEPARATOR, + ) ) . '.tpl'; } @@ -361,7 +364,7 @@ class CRM_Core_Page { } /** - * Setter for embedded + * Setter for embedded. * * @param bool $embedded * @@ -372,7 +375,7 @@ class CRM_Core_Page { } /** - * Getter for embedded + * Getter for embedded. * * @return bool * return the embedded value @@ -382,7 +385,7 @@ class CRM_Core_Page { } /** - * Setter for print + * Setter for print. * * @param bool $print * @@ -393,7 +396,7 @@ class CRM_Core_Page { } /** - * Getter for print + * Getter for print. * * @return bool * return the print value