| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* This class contains functions for managing Tag(tag) for a contact
* @param string $entityTable
* Name of the entity table usually 'civicrm_contact'.
*
- * @return array(
- * ) reference $tag array of category id's the contact belongs to.
+ * @return array
+ * reference $tag array of category id's the contact belongs to.
*
- * @static
*/
public static function &getTag($entityID, $entityTable = 'civicrm_contact') {
$tags = array();
* @param array $params
* (reference ) an assoc array of name/value pairs.
*
- * @return CRM_Core_BAO_EntityTag object
- * @static
+ * @return CRM_Core_BAO_EntityTag
*/
public static function add(&$params) {
$dataExists = self::dataExists($params);
* @param array $params
* An assoc array of name/value pairs.
*
- * @return boolean
- * @static
+ * @return bool
*/
public static function dataExists($params) {
return !($params['tag_id'] == 0);
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
- *
- * @return CRM_Core_BAO_EntityTag object
- * @static
*/
public static function del(&$params) {
$entityTag = new CRM_Core_BAO_EntityTag();
*
* @return array
* (total, added, notAdded) count of enities added to tag
- * @static
*/
public static function addEntitiesToTag(&$entityIds, $tagId, $entityTable = 'civicrm_contact') {
$numEntitiesAdded = 0;
*
* @return array
* (total, removed, notRemoved) count of entities removed from tags
- * @static
*/
public static function removeEntitiesFromTag(&$entityIds, $tagId, $entityTable = 'civicrm_contact') {
$numEntitiesRemoved = 0;
* @param int $entityID
*
* @return void
- * @static
*/
public static function create(&$params, $entityTable, $entityID) {
// get categories for the entity id
/**
* Get options for a given field.
+ *
* @see CRM_Core_DAO::buildOptions
+ * @see CRM_Core_DAO::buildOptionsContext
*
* @param string $fieldName
* @param string $context
- * : @see CRM_Core_DAO::buildOptionsContext.
+ * As per CRM_Core_DAO::buildOptionsContext.
* @param array $props
- * : whatever is known about this dao object.
+ * whatever is known about this dao object.
*
- * @return Array|bool
+ * @return array|bool
*/
public static function buildOptions($fieldName, $context = NULL, $props = array()) {
$params = array();
return $options;
}
+
}