/**
* Get the action links for this page.
*
- * @return array $_actionLinks
- *
- */ function &actionLinks() {
+ * @return array
+ */
+ function &actionLinks() {
// check if variable _actionsLinks is populated
if (!isset(self::$_actionLinks)) {
// helper variable for nicer formatting
/**
* Get the configure action links for this page.
*
- * @return array $_configureActionLinks
- *
+ * @return array
*/
public function &configureActionLinks() {
// check if variable _actionsLinks is populated
/**
* Get the online contribution links.
*
- * @return array $_onlineContributionLinks.
- *
+ * @return array
*/
public function &onlineContributionLinks() {
if (!isset(self::$_onlineContributionLinks)) {
/**
* Get the contributions links.
*
- * @return array $_contributionLinks
- *
+ * @return array
*/
public function &contributionLinks() {
if (!isset(self::$_contributionLinks)) {
* Finally it calls the parent's run method.
*
* @return void
- *
*/
public function run() {
// get the requested action
* We only need one instance of this object. So we use the singleton
* pattern and cache the instance in this variable
*
- * @var object
- * @static
+ * @var self
*/
static private $_singleton = NULL;
/**
* Retrieve a value from the request (GET/POST/REQUEST)
*
- * @param string $name name of the variable to be retrieved
- * @param string $type type of the variable (see CRM_Utils_Type for details)
- * @param object $store session scope where variable is stored
- * @param bool $abort is this variable required
- * @param mixed $default default value of the variable if not present
- * @param string $method where should we look for the variable
+ * @param string $name
+ * Name of the variable to be retrieved.
+ * @param string $type
+ * Type of the variable (see CRM_Utils_Type for details).
+ * @param object $store
+ * Session scope where variable is stored.
+ * @param bool $abort
+ * TRUE, if the variable is required.
+ * @param mixed $default
+ * Default value of the variable if not present.
+ * @param string $method
+ * Where to look for the variable - 'GET', 'POST' or 'REQUEST'.
*
- * @return mixed the value of the variable
- * @static
+ * @return mixed
+ * The value of the variable
*/
public static function retrieve($name, $type, &$store = NULL, $abort = FALSE, $default = NULL, $method = 'REQUEST') {
HUGE = 45;
/**
- * Convert Constant Data type to String
+ * Gets the string representation for a data type.
*
- * @param $type integer datatype
+ * @param int $type
+ * Integer number identifying the data type.
*
- * @return string $string String datatype respective to integer datatype@access public
- * @static
+ * @return string
+ * String identifying the data type, e.g. 'Int' or 'String'.
*/
public static function typeToString($type) {
switch ($type) {
}
/**
- * Verify that a variable is of a given type
+ * Verify that a variable is of a given type, and apply a bit of processing.
*
- * @param mixed $data The variable
- * @param string $type The type
- * @param boolean $abort Should we abort if invalid
+ * @param mixed $data
+ * The value to be verified/escaped.
+ * @param string $type
+ * The type to verify against.
+ * @param boolean $abort
+ * If TRUE, the operation will CRM_Core_Error::fatal() on invalid data.
*
- * @return mixed The data, escaped if necessary
- * @static
+ * @return mixed
+ * The data, escaped if necessary.
*/
public static function escape($data, $type, $abort = TRUE) {
switch ($type) {
/**
* Verify that a variable is of a given type
*
- * @param mixed $data The variable
- * @param string $type The type
- * @param boolean $abort Should we abort if invalid
- * @name string $name The name of the attribute
+ * @param mixed $data
+ * The value to validate.
+ * @param string $type
+ * The type to validate against.
+ * @param boolean $abort
+ * If TRUE, the operation will CRM_Core_Error::fatal() on invalid data.
+ * @name string $name
+ * The name of the attribute
*
- * @return mixed The data, escaped if necessary
- * @static
+ * @return mixed
+ * The data, escaped if necessary
*/
public static function validate($data, $type, $abort = TRUE, $name = 'One of parameters ') {
switch ($type) {