<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright (C) 2011 Marty Wright |
| Licensed to CiviCRM under the Academic Free License version 3.0. |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
*
* @return string Classname of BAO.
*/
- function getBAOName() {
+ public function getBAOName() {
return 'CRM_Core_BAO_LabelFormat';
}
*
* @return array (reference) of action links
*/
- function &links() {
+ public function &links() {
if (!(self::$_links)) {
// helper variable for nicer formatting
self::$_links = array(
*
* @return string Classname of edit form.
*/
- function editForm() {
+ public function editForm() {
return 'CRM_Admin_Form_LabelFormats';
}
*
* @return string name of this page.
*/
- function editName() {
+ public function editName() {
return 'Mailing Label Formats';
}
/**
* Get user context.
*
+ * @param null $mode
+ *
* @return string user context.
*/
- function userContext($mode = NULL) {
+ public function userContext($mode = NULL) {
return 'civicrm/admin/labelFormats';
}
/**
* Browse all Label Format settings.
*
+ * @param null $action
+ *
* @return void
- * @access public
* @static
*/
- function browse($action = NULL) {
+ public function browse($action = NULL) {
// Get list of configured Label Formats
- $labelFormatList= CRM_Core_BAO_LabelFormat::getList();
- $nameFormatList= CRM_Core_BAO_LabelFormat::getList(false, 'name_badge');
+ $labelFormatList = CRM_Core_BAO_LabelFormat::getList();
+ $nameFormatList = CRM_Core_BAO_LabelFormat::getList(FALSE, 'name_badge');
// Add action links to each of the Label Formats
foreach ($labelFormatList as & $format) {
$this->assign('rows', $labelFormatList);
}
}
-