parent::__construct('Participant', ts('Participants'));
}
+ /**
+ * @return bool
+ */
public function isActive() {
$config = CRM_Core_Config::singleton();
return in_array('CiviEvent', $config->enableComponents) &&
return NULL;
}
+ /**
+ * @param int $offset
+ * @param int $rowcount
+ * @param null $sort
+ * @param bool $returnSQL
+ *
+ * @return string
+ */
public function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) {
return $this->all($offset, $rowcount, $sort, FALSE, TRUE);
}
$form->assign('elements', array('group_id'));
}
+ /**
+ * @param int $offset
+ * @param int $rowcount
+ * @param null $sort
+ * @param bool $returnSQL
+ *
+ * @return string
+ */
public function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) {
return $this->all($offset, $rowcount, $sort, FALSE, TRUE);
}
return $summary;
}
+ /**
+ * @param int $offset
+ * @param int $rowcount
+ * @param null $sort
+ * @param bool $returnSQL
+ *
+ * @return string
+ */
public function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) {
return $this->all($offset, $rowcount, $sort, FALSE, TRUE);
}
return $summary;
}
+ /**
+ * @param int $offset
+ * @param int $rowcount
+ * @param null $sort
+ * @param bool $returnSQL
+ *
+ * @return string
+ */
public function contactIDs($offset = 0, $rowcount = 0, $sort = NULL, $returnSQL = FALSE) {
return $this->all($offset, $rowcount, $sort, FALSE, TRUE);
}
class CRM_Contribute_Exception_InactiveContributionPageException extends Exception {
private $id;
+ /**
+ * @param string $message
+ * @param int $id
+ */
public function __construct($message, $id) {
parent::__construct(ts($message));
$this->id = $id;
CRM_Core_Error::debug_log_message('inactive contribution page access attempted - page number ' . $id);
}
+ /**
+ * Get Contribution page ID.
+ *
+ * @return int
+ */
public function getID() {
return $this->id;
}
require_once 'packages/When/When.php';
+/**
+ * Class CRM_Core_BAO_RecurringEntity
+ */
class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
const RUNNING = 1;
<?php
+/**
+ * Class CRM_Core_CodeGen_Util_Smarty
+ */
class CRM_Core_CodeGen_Util_Smarty {
/**
* @var CRM_Core_CodeGen_Util_Smarty
return $this;
}
+ /**
+ * Deletes items from table which match current objects variables
+ *
+ * Returns the true on success
+ *
+ * for example
+ *
+ * Designed to be extended
+ *
+ * $object = new mytable();
+ * $object->ID=123;
+ * echo $object->delete(); // builds a conditon
+ *
+ * $object = new mytable();
+ * $object->whereAdd('age > 12');
+ * $object->limit(1);
+ * $object->orderBy('age DESC');
+ * $object->delete(true); // dont use object vars, use the conditions, limit and order.
+ *
+ * @param bool $useWhere (optional) If DB_DATAOBJECT_WHEREADD_ONLY is passed in then
+ * we will build the condition only using the whereAdd's. Default is to
+ * build the condition only using the object parameters.
+ *
+ * * @return mixed Int (No. of rows affected) on success, false on failure, 0 on no data affected
+ */
public function delete($useWhere = FALSE) {
$result = parent::delete($useWhere);
<?php
+/**
+ * Interface CRM_Core_FileSearchInterface
+ */
interface CRM_Core_FileSearchInterface {
const DEFAULT_SEARCH_LIMIT = 20;
const DEFAULT_SEARCH_OFFSET = 0;
<?php
+/**
+ * Class CRM_Core_LegacyErrorHandler
+ */
class CRM_Core_LegacyErrorHandler {
/**
* @param \Civi\Core\Event\UnhandledExceptionEvent $event
class CRM_Core_Page_Redirect extends CRM_Core_Page {
/**
- * Run page
+ * Run page.
*
* @param string $path
* @param array $pageArgs
- *
- * @return string|void
*/
public function run($path = NULL, $pageArgs = array()) {
$url = self::createUrl($path, $_REQUEST, $pageArgs, TRUE);
- // return $url;
CRM_Utils_System::redirect($url);
}
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
+ * @param $tpl_name
+ * @param $tpl_source
+ * @param $smarty_obj
+ *
+ * @return bool
*/
function civicrm_smarty_resource_string_get_template($tpl_name, &$tpl_source, &$smarty_obj) {
$tpl_source = $tpl_name;
$this->setPageTitle(ts('Scheduled Reminder'));
}
+ /**
+ * @return string
+ */
public function getTemplateFileName() {
return 'CRM/Admin/Page/ScheduleReminders.tpl';
}
* This class contains the functions that are called using AJAX (jQuery)
*/
class CRM_Group_Page_AJAX {
+ /**
+ * Get list of groups.
+ *
+ * @return array
+ */
public static function getGroupList() {
$params = $_REQUEST;