X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPrice%2FPage%2FOption.php;h=2630b75baea54279fa7d418351354a07b9acc996;hb=d5b9585b3da73a76dada27cfa2f791c6c4763cd5;hp=d6f7eddf9522032f2a82922ddf2fb7136551425e;hpb=353ffa53c335f7b94ebaddc701e46f2bb30c7048;p=civicrm-core.git diff --git a/CRM/Price/Page/Option.php b/CRM/Price/Page/Option.php index d6f7eddf95..2630b75bae 100644 --- a/CRM/Price/Page/Option.php +++ b/CRM/Price/Page/Option.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -46,28 +46,28 @@ class CRM_Price_Page_Option extends CRM_Core_Page { public $useLivePageJS = TRUE; /** - * The field id of the option + * The field id of the option. * * @var int */ protected $_fid; /** - * The field id of the option + * The field id of the option. * * @var int */ protected $_sid; /** - * The price set is reserved or not + * The price set is reserved or not. * * @var boolean */ protected $_isSetReserved = FALSE; /** - * The action links that we need to display for the browse screen + * The action links that we need to display for the browse screen. * * @var array */ @@ -76,12 +76,10 @@ class CRM_Price_Page_Option extends CRM_Core_Page { /** * Get the action links for this page. * - * @param null - * * @return array * array of action links that we need to display for the browse screen */ - function &actionLinks() { + public function &actionLinks() { if (!isset(self::$_actionLinks)) { self::$_actionLinks = array( CRM_Core_Action::UPDATE => array( @@ -120,8 +118,6 @@ class CRM_Price_Page_Option extends CRM_Core_Page { /** * Browse all price fields. * - * @param null - * * @return void */ public function browse() { @@ -255,12 +251,9 @@ class CRM_Price_Page_Option extends CRM_Core_Page { * This method is called after the page is created. It checks for the * type of action and executes that action. * - * @param null - * * @return void */ public function run() { - // get the field id $this->_fid = CRM_Utils_Request::retrieve('fid', 'Positive', $this, FALSE, 0 @@ -280,7 +273,7 @@ class CRM_Price_Page_Option extends CRM_Core_Page { array( 'title' => ts('Price Fields'), 'url' => CRM_Utils_System::url('civicrm/admin/price/field', 'reset=1&sid=' . $this->_sid), - ) + ), ); CRM_Utils_System::appendBreadCrumb($breadcrumb); @@ -324,4 +317,5 @@ class CRM_Price_Page_Option extends CRM_Core_Page { // Call the parents run method return parent::run(); } + }