X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FSelector%2FBase.php;h=e992759f1a542c9d462d8f9f351e7f22bb35b0fd;hb=6a0b768e17b6b5271ee014b4ac30066376de1f52;hp=32cc5d37dc321f423ccf801fa7d4d5ba460f9f54;hpb=39de6fd54b9843705d13cb9f70fbcc6296103670;p=civicrm-core.git diff --git a/CRM/Core/Selector/Base.php b/CRM/Core/Selector/Base.php index 32cc5d37dc..e992759f1a 100644 --- a/CRM/Core/Selector/Base.php +++ b/CRM/Core/Selector/Base.php @@ -63,15 +63,14 @@ class CRM_Core_Selector_Base { * This function gets the attribute for the action that * it matches. * - * @param string match the action to match against - * @param string attribute the attribute to return ( name, link, title ) + * @param string match the action to match against + * @param string attribute the attribute to return ( name, link, title ) * * @return string the attribute that matches the action if any * - * @access public * */ - function getActionAttribute($match, $attribute = 'name') { + public function getActionAttribute($match, $attribute = 'name') { $links = &$this->links(); foreach ($link as $action => $item) { @@ -94,19 +93,19 @@ class CRM_Core_Selector_Base { * qs : the parameters to the above url along with any dynamic substitutions * title : A more descriptive name, typically used in breadcrumbs / navigation */ - static function &links() { + public static function &links() { return NULL; } /** * Compose the template file name from the class name * - * @param string $action the action being performed + * @param string $action + * The action being performed. * * @return string template file name - * @access public */ - function getTemplateFileName($action = NULL) { + public function getTemplateFileName($action = NULL) { return (str_replace('_', DIRECTORY_SEPARATOR, CRM_Utils_System::getClassName($this)) . ".tpl"); } @@ -116,9 +115,8 @@ class CRM_Core_Selector_Base { * @param string action the action being performed * * @return array the elements that can be sorted along with their properties - * @access public */ - function &getSortOrder($action) { + public function &getSortOrder($action) { $columnHeaders = &$this->getColumnHeaders(NULL); if (!isset($this->_order)) { @@ -151,7 +149,6 @@ class CRM_Core_Selector_Base { * Setter for permission * * @var string - * @access public */ public function setPermission($permission) { $this->_permission = $permission; @@ -162,7 +159,6 @@ class CRM_Core_Selector_Base { * to display on the results page * * @return string - * @access public */ public function getQill() { return NULL; @@ -189,4 +185,3 @@ class CRM_Core_Selector_Base { return $this->_key; } } -