| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
*/
// move the values from the session to the template
const SESSION = 1, TEMPLATE = 2,
- TRANSFER = 4, EXPORT = 8, SCREEN = 16, PDF = 32;
+ TRANSFER = 4, EXPORT = 8, SCREEN = 16, PDF = 32;
/**
- * A CRM Object that implements CRM_Core_Selector_API
+ * A CRM Object that implements CRM_Core_Selector_API.
* @var object
*/
protected $_object;
* so the display routine needs to not do any work. (The
* parent object takes care of the display)
*
- * @var boolean
+ * @var bool
*/
protected $_embedded = FALSE;
* Are we in print mode? if so we need to modify the display
* functionality to do a minimal display :)
*
- * @var boolean
+ * @var bool
*/
protected $_print = FALSE;
* Array of properties that the controller dumps into the output object
*
* @var array
- * @static
*/
public static $_properties = array('columnHeaders', 'rows', 'rowsEmpty');
/**
* Should we compute actions dynamically (since they are quite verbose)
*
- * @var boolean
+ * @var bool
*/
protected $_dynamicAction = FALSE;
/**
- * Class constructor
+ * Class constructor.
*
* @param CRM_Core_Selector_API $object
* An object that implements the selector API.
* @param null $case
*
* @return \CRM_Core_Selector_Controller
- * @access public
*/
public function __construct($object, $pageID, $sortID, $action, $store = NULL, $output = self::TEMPLATE, $prefix = NULL, $case = NULL) {
$this->_pageID = $pageID ? $pageID : 1;
$this->_sortID = $sortID ? $sortID : NULL;
$this->_action = $action;
- $this->_store = $store;
+ $this->_store = $store;
$this->_output = $output;
$this->_prefix = $prefix;
- $this->_case = $case;
+ $this->_case = $case;
// fix sortID
if ($this->_sortID && strpos($this->_sortID, '_') === FALSE) {
* @param int $reset
* Are we being reset.
*
- * @return boolean
+ * @return bool
* if the GET params are different from the session params
*/
public function hasChanged($reset) {
$rows = self::getRows($this);
CRM_Utils_Hook::searchColumns($contextName, $columnHeaders, $rows, $this);
$rowsEmpty = count($rows) ? FALSE : TRUE;
- $qill = $this->getQill();
- $summary = $this->getSummary();
+ $qill = $this->getQill();
+ $summary = $this->getSummary();
// if we need to store in session, lets update session
if ($this->_output & self::SESSION) {
$this->_store->set("{$this->_prefix}columnHeaders", $columnHeaders);
* @param CRM_Core_Form $form
*
* @return array
- * of rows
+ * Array of rows
*/
public function getRows($form) {
if ($form->_output == self::EXPORT || $form->_output == self::SCREEN) {
}
/**
- * Getter for pager
+ * Getter for pager.
*
* @return CRM_Utils_Pager
*/
}
/**
- * Getter for sort
+ * Getter for sort.
*
* @return CRM_Utils_Sort
*/
}
/**
- * Move the variables from the session to the template
+ * Move the variables from the session to the template.
*
* @return void
*/
}
/**
- * Setter for embedded
+ * Setter for embedded.
*
* @param bool $embedded
*
}
/**
- * Getter for embedded
+ * Getter for embedded.
*
- * @return boolean
+ * @return bool
* return the embedded value
*/
public function getEmbedded() {
}
/**
- * Setter for print
+ * Setter for print.
*
* @param bool $print
*
}
/**
- * Getter for print
+ * Getter for print.
*
- * @return boolean
+ * @return bool
* return the print value
*/
public function getPrint() {
public function getDynamicAction() {
return $this->_dynamicAction;
}
+
}