* Fetch a field from the getFields list
*
* Searches by name, uniqueName, and api.aliases
+ *
+ * @param string $fieldName
+ * Field name.
+ * @return NULL|mixed
*/
protected function getField($fieldName) {
if (!$fieldName) {
/**
* @param array $apiRequest
* The full description of the API request.
- * @return RespondEvent
+ * @return PrepareEvent
*/
public function setApiRequest($apiRequest) {
$this->apiRequest = $apiRequest;
/**
* @deprecated
+ * @param string $entity
+ * Type of entities to deal with.
+ * @param string $action
+ * Create, get, delete or some special action name.
+ * @param array $params
+ * Array to be passed to API function.
+ * @param mixed $extra
+ * Unused/deprecated.
* @return array|int
* @see runSafe
*/
* Permissions required for invoking the action.
* @param mixed $callback
* The function which executes the API.
- * @return ReflectionProvider
+ * @return AdhocProvider
*/
public function addAction($name, $perm, $callback) {
$this->actions[strtolower($name)] = array(
/**
* Build & execute the query and return results array
*
- * @return array
+ * @return array|int
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Exception
* The target entity ID.
* @param array $apiRequest
* The full API request.
+ * @throws \Exception
* @throws \API_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
* @param array $rules
* Array of WhitelistRule.
* @see WhitelistRule
+ * @throws \CRM_Core_Exception
*/
public function __construct($rules) {
$this->rules = array();