* @param array $defaults (reference ) an assoc array to hold the flattened values
*
* @return CRM_Auction_BAO_Auction object
- * @access public
- * @static
*/
- static
- function retrieve(&$params, &$defaults) {
+ static function retrieve(&$params, &$defaults) {
$auction = new CRM_Auction_DAO_Auction();
$auction->copyValues($params);
if ($auction->find(TRUE)) {
* @param boolean $is_active value we want to set the is_active field
*
* @return Object DAO object on sucess, null otherwise
- * @static
*/
- static
- function setIsActive($id, $is_active) {
+ static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Auction_DAO_Auction', $id, 'is_active', $is_active);
}
* add the auction
*
* @param array $params reference array contains the values submitted by the form
- *
- * @access public
- * @static
- *
* @return object
*/
- static
- function add(&$params) {
- require_once 'CRM/Utils/Hook.php';
-
+ static function add(&$params) {
if (!empty($params['id'])) {
CRM_Utils_Hook::pre('edit', 'Auction', $params['id'], $params);
}
* @param array $params reference array contains the values submitted by the form
*
* @return object
- * @access public
- * @static
- *
*/
public static function create(&$params) {
- require_once 'CRM/Core/Transaction.php';
$transaction = new CRM_Core_Transaction();
$auction = self::add($params);
*
* @param int $id auction id
*
- * @access public
- * @static
- *
*/
- static
- function del($id) {
- require_once 'CRM/Auction/DAO/Auction.php';
+ static function del($id) {
$auction = new CRM_Auction_DAO_Auction();
$auction->id = $id;
$result = $auction->delete();
* @param bool $id
*
* @return array
- * @static
*/
- static
- function getAuctions($all = FALSE, $id = FALSE) {
+ static function getAuctions($all = FALSE, $id = FALSE) {
$query = "SELECT `id`, `title`, `start_date` FROM `civicrm_auction`";
if (!$all) {
* @param array $defaults (reference ) an assoc array to hold the flattened values
*
* @return CRM_Auction_BAO_Item object
- * @access public
- * @static
*/
- static
- function retrieve(&$params, &$defaults) {
+ static function retrieve(&$params, &$defaults) {
$auction = new CRM_Auction_DAO_Item();
$auction->copyValues($params);
if ($auction->find(TRUE)) {
* @param boolean $is_active value we want to set the is_active field
*
* @return Object DAO object on sucess, null otherwise
- * @static
*/
- static
- function setIsActive($id, $is_active) {
+ static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Auction_DAO_Item', $id, 'is_active', $is_active);
}
* add the auction
*
* @param array $params reference array contains the values submitted by the form
- *
- * @access public
- * @static
- *
* @return object
*/
- static
- function add(&$params) {
- require_once 'CRM/Utils/Hook.php';
-
+ static function add(&$params) {
if (!empty($params['id'])) {
CRM_Utils_Hook::pre('edit', 'Auction_Item', $params['id'], $params);
}
* @param array $params reference array contains the values submitted by the form
*
* @return object
- * @access public
- * @static
- *
*/
public static function create(&$params) {
- require_once 'CRM/Core/Transaction.php';
$transaction = new CRM_Core_Transaction();
$auction = self::add($params);
* delete the auction
*
* @param int $id auction id
- *
- * @access public
- * @static
- *
*/
- static
- function del($id) {
- require_once 'CRM/Auction/DAO/Item.php';
+ static function del($id) {
$auction = new CRM_Auction_DAO_Item();
$auction->id = $id;
$result = $auction->delete();
* @internal param int $id profile id
*
* @return boolean
- * @access public
- * @static
*/
- static
- function isEmailInProfile($profileId) {
+ static function isEmailInProfile($profileId) {
$query = "
SELECT field_name
FROM civicrm_uf_field
*
*/
-require_once 'CRM/Core/Form.php';
/**
* This class manages the auction form
class CRM_Auction_Form_Auction extends CRM_Core_Form {
/**
- * the id of the auction we are proceessing
+ * the id of the auction we are processsing
*
* @var int
*/
* set variables up before form is built
*
* @return void
- * @access public
*/
function preProcess() {
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
/**
* Set default values for the form.
* the default values are retrieved from the database
- *
- * @access public
- *
- * @return None
+ * @return array
*/
function setDefaultValues() {
- require_once 'CRM/Auction/BAO/Auction.php';
$defaults = array();
/**
* Build the form object
*
- * @return None
- * @access public
+ * @return array
*/
public function buildQuickForm() {
$this->applyFilter('__ALL__', 'trim');
* @param array $fields the input form values
* @param array $files the uploaded files if any
* @param $self
- *
- *
* @return true if no errors, else array of errors
- * @access public
- * @static
*/
- static
- function formRule($fields, $files, $self) {
+ static function formRule($fields, $files, $self) {
$errors = array();
// add rules to validate dates and overlap
/**
* Process the form submission
- *
- * @access public
- *
- * @return None
*/
public function postProcess() {
if ($this->_action & CRM_Core_Action::VIEW) {
* set variables up before form is built
*
* @return void
- * @access public
*/
function preProcess() {
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add');
/**
* Set default values for the form.
* the default values are retrieved from the database
- *
- * @access public
- *
- * @return None
+ * @return array
*/
function setDefaultValues() {
- require_once 'CRM/Auction/BAO/Item.php';
-
$defaults = array();
if (isset($this->_id)) {
/**
* Build the form object
- *
- * @return None
- * @access public
*/
public function buildQuickForm() {
$this->applyFilter('__ALL__', 'trim');
* @param array $fields the input form values
* @param array $files the uploaded files if any
* @param $self
- *
- *
* @return true if no errors, else array of errors
- * @access public
- * @static
*/
- static
- function formRule($fields, $files, $self) {
+ static function formRule($fields, $files, $self) {
$errors = array();
if (isset($files['attachFile_1'])) {
/**
* Process the form submission
- *
- * @access public
- *
- * @return None
*/
public function postProcess() {
if ($this->_action & CRM_Core_Action::VIEW) {
/**
* This virtual function is used to set the default values of
* various form elements
- *
- * access public
- *
* @return array reference to the array of default values
- *
*/
function setDefaultValues() {
if (!$this->_donorID) {
/**
* Build the form object
- *
- * @return None
- * @access public
*/
public function buildQuickForm() {
$profileID = CRM_Core_DAO::getFieldValue('CRM_Auction_DAO_Auction',
* @param array $files the uploaded files if any
* @param $self
*
- *
- * @return true if no errors, else array of errors
- * @access public
- * @static
+ * @return bool|array
*/
- static
- function formRule($fields, $files, $self) {
+ static function formRule($fields, $files, $self) {
$errors = array();
- require_once "CRM/Utils/Rule.php";
foreach ($fields as $key => $value) {
if (strpos($key, 'email-') !== FALSE) {
$ufContactId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFMatch', $value, 'contact_id', 'uf_name');
/**
* Process the form submission
- *
- * @access public
- *
- * @return None
*/
public function postProcess() {
$params = $this->controller->exportValues($this->getName());
/**
* Build the form object
- *
- * @access public
- *
* @return void
*/
public function buildQuickForm() {
* This virtual function is used to set the default values of
* various form elements
*
- * access public
- *
* @return array reference to the array of default values
- *
*/
function setDefaultValues() {
$defaults = array();
/**
* Build the form object
- *
- * @access public
- *
* @return void
*/
public function buildQuickForm() {
));
}
+ /**
+ *
+ */
function postProcess() {
$params = $this->controller->exportValues($this->_name);
$parent = $this->controller->getParent();
*/
class CRM_Auction_Info extends CRM_Core_Component_Info {
- // docs inherited from interface
protected $keyword = 'auction';
- // docs inherited from interface
/**
* Provides base information about the component.
* Needs to be implemented in component's information
* class.
*
* @return array collection of required component settings
- * @access public
- *
*/
public function getInfo() {
return array('name' => 'CiviAuction',
);
}
- // docs inherited from interface
/**
* Provides information about user dashboard element
* offered by this component.
*
- * @return array|null collection of required dashboard settings,
+ * @return array collection of required dashboard settings,
* null if no element offered
- * @access public
- *
*/
public function getUserDashboardElement() {
return array('name' => ts('Auctions'),
);
}
- // docs inherited from interface
/**
* Provides information about user dashboard element
* offered by this component.
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- * @access public
- *
*/
public function registerTab() {
return array('title' => ts('Auctions'),
);
}
- // docs inherited from interface
/**
* Provides information about advanced search pane
* offered by this component.
*
- * @return array|null collection of required pane settings,
+ * @return array collection of required pane settings,
* null if no element offered
- * @access public
- *
*/
public function registerAdvancedSearchPane() {
return array('title' => ts('Auctions'),
);
}
- // docs inherited from interface
/**
* Provides potential activity types that this
* component might want to register in activity history.
* class.
*
* @return array|null collection of activity types
- * @access public
- *
*/
public function getActivityTypes() {
$types = array();
return $types;
}
- // add shortcut to Create New
/**
* @param $shortCuts
*/
*
*/
-require_once 'CRM/Core/Page.php';
-
/**
* Page to decide the flow of adding an item.
*/
* Finally it calls the parent's run method.
*
* @return void
- * @access public
- *
*/
function run() {
// get the requested action
}
}
- // parent run
parent::run();
}
}
* it decides the which action has to be taken for the page.
*
* return null
- * @access public
*/
function run() {
parent::run();
* Finally it calls the parent's run method.
*
* @return void
- * @access public
- *
*/
function run() {
// get the requested action
/**
* Browse all auctions
*
- *
* @return void
- * @access public
- * @static
*/
function browse() {
if ($this->_aid) {
*
*/
-require_once 'CRM/Core/Page.php';
-
/**
* Page for displaying list of auctions
*/
* The action links that we need to display for the browse screen
*
* @var array
- * @static
*/
static $_actionLinks = NULL;
* Finally it calls the parent's run method.
*
* @return void
- * @access public
- *
*/
function run() {
// get the requested action
/**
* Browse all auctions
*
- *
* @return void
- * @access public
- * @static
*/
function browse() {
$this->assign('rows', $auctions);
}
+ /**
+ *
+ */
function search() {
$form = new CRM_Core_Controller_Simple('CRM_Auction_Form_SearchAuction',
ts('Search Items'), CRM_Core_Action::ADD
$this->assign('aToZ', $aToZBar);
}
}
-
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
-require_once 'CRM/Core/Page.php';
/**
* Page for displaying list of auctions
* The action links that we need to display for the browse screen
*
* @var array
- * @static
*/
static $_actionLinks = NULL;
* Finally it calls the parent's run method.
*
* @return void
- * @access public
- *
*/
function run() {
// get the requested action
/**
* Browse all auctions
*
- *
* @return void
- * @access public
- * @static
*/
function browse() {
$this->assign('newItemURL', CRM_Utils_System::url('civicrm/auction/item/add',
* all the fields in the event wizard
*
* @return void
- * @access public
*/
function copy() {
$id = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE, 0, 'GET');
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
*/
class CRM_Touchstone_Info extends CRM_Core_Component_Info {
- // docs inherited from interface
protected $keyword = 'touchstone';
- // docs inherited from interface
/**
* Provides base information about the component.
* Needs to be implemented in component's information
* class.
*
* @return array collection of required component settings
- * @access public
- *
*/
public function getInfo() {
return array('name' => 'CiviTouchstone',
);
}
- // docs inherited from interface
/**
* @return array
*/
return array('access CiviTouchstone');
}
- // docs inherited from interface
/**
* Provides information about user dashboard element
* offered by this component.
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- * @access public
- *
*/
public function getUserDashboardElement() {
return array('name' => ts('Touchstone'),
);
}
- // docs inherited from interface
/**
* Provides information about user dashboard element
* offered by this component.
*
* @return array|null collection of required dashboard settings,
* null if no element offered
- * @access public
- *
*/
public function registerTab() {
return array('title' => ts('Touchstone'),
);
}
- // docs inherited from interface
/**
* Provides information about advanced search pane
* offered by this component.
*
* @return array|null collection of required pane settings,
* null if no element offered
- * @access public
- *
*/
public function registerAdvancedSearchPane() {
return array('title' => ts('Touchstone'),
);
}
- // docs inherited from interface
/**
* Provides potential activity types that this
* component might want to register in activity history.
* class.
*
* @return array|null collection of activity types
- * @access public
- *
*/
public function getActivityTypes() {
return NULL;
}
- // add shortcut to Create New
/**
* @param $shortCuts
*/
/**
* pseudoconstant definition
* @var array
- * @static
*/
private static $pseudoConst;
/**
* Get all values for $pseudoConst pseudoconstant
*
- * @access public
- *
* @param null $id
*
* @return array - array reference of all $pseudoConst values
* the task array
*
* @var array
- * @static
*/
static $_tasks = NULL;
* the optional task array
*
* @var array
- * @static
*/
static $_optionalTasks = NULL;
* on a contact / group of contacts
*
* @return array the set of tasks for a group of contacts
- * @static
- * @access public
*/
- static
- function &tasks() {
+ static function &tasks() {
if (!(self::$_tasks)) {
self::$_tasks = array(
1 => ts('Perform First Task'),
* pattern and cache the instance in this variable
*
* @var object
- * @static
*/
static private $_singleton = NULL;
* mode of operation: live or test
*
* @var object
- * @static
*/
static protected $_mode = NULL;
*
* @param object $paymentProcessor
* @return object
- * @static
*/
static
function &singleton($mode, &$paymentProcessor) {
* @param $component
* @throws Exception
* @return void
- * @access public
*/
function doTransferCheckout(&$params, $component) {
$component = strtolower($component);
* pattern and cache the instance in this variable
*
* @var object
- * @static
*/
static private $_singleton = NULL;
* mode of operation: live or test
*
* @var object
- * @static
*/
static protected $_mode = NULL;
* @param $component
* @param $paymentProcessor
* @return object
- * @static
*/
- static
- function &singleton($mode, $component, &$paymentProcessor) {
+ static function &singleton($mode, $component, &$paymentProcessor) {
if (self::$_singleton === NULL) {
self::$_singleton = new org_civicrm_payment_googlecheckout_GoogleIPN($mode, $paymentProcessor);
}
* @param int $orderNo <order-total> send by google
*
* @return amount
- * @access public
*/
function getAmount($orderNo) {
require_once 'CRM/Contribute/DAO/Contribution.php';
* @param string $root root of xml-response
*
* @return array context of this call (test, module, payment processor id)
- * @static
*/
- static
- function getContext($xml_response, $privateData, $orderNo, $root) {
- require_once 'CRM/Contribute/DAO/Contribution.php';
-
+ static function getContext($xml_response, $privateData, $orderNo, $root) {
$isTest = NULL;
$module = NULL;
if ($root == 'new-order-notification') {