<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright (C) 2011 Marty Wright |
| Licensed to CiviCRM under the Academic Free License version 3.0. |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
*/
/**
- * Page for displaying list of PDF Page Formats
+ * Page for displaying list of PDF Page Formats.
*/
class CRM_Admin_Page_PdfFormats extends CRM_Core_Page_Basic {
public $useLivePageJS = TRUE;
/**
- * 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
- * @static
*/
static $_links = NULL;
/**
- * Get BAO Name
+ * Get BAO Name.
*
- * @return string Classname of BAO.
+ * @return string
+ * Classname of BAO.
*/
- function getBAOName() {
+ public function getBAOName() {
return 'CRM_Core_BAO_PdfFormat';
}
/**
- * Get action Links
+ * Get action Links.
*
- * @return array (reference) of action links
+ * @return array
+ * (reference) of action links
*/
- function &links() {
+ public function &links() {
if (!(self::$_links)) {
// helper variable for nicer formatting
self::$_links = array(
}
/**
- * Get name of edit form
+ * Get name of edit form.
*
- * @return string Classname of edit form.
+ * @return string
+ * Classname of edit form.
*/
- function editForm() {
+ public function editForm() {
return 'CRM_Admin_Form_PdfFormats';
}
/**
- * Get edit form name
+ * Get edit form name.
*
- * @return string name of this page.
+ * @return string
+ * name of this page.
*/
- function editName() {
+ public function editName() {
return 'PDF Page Formats';
}
*
* @param null $mode
*
- * @return string user context.
+ * @return string
+ * user context.
*/
- function userContext($mode = NULL) {
+ public function userContext($mode = NULL) {
return 'civicrm/admin/pdfFormats';
}
/**
- * Browse all PDF Page Formats
+ * Browse all PDF Page Formats.
*
* @param null $action
- *
- * @return void
- * @access public
- * @static
*/
- function browse($action = NULL) {
+ public function browse($action = NULL) {
// Get list of configured PDF Page Formats
$pdfFormatList = CRM_Core_BAO_PdfFormat::getList();
$this->assign('rows', $pdfFormatList);
}
-}
+}