+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
class CRM_Core_BAO_Domain extends CRM_Core_DAO_Domain {
/**
- * Cache for the current domain object
+ * Cache for the current domain object.
*/
static $_domain = NULL;
private $_location = NULL;
/**
- * Fetch object based on array of properties
+ * Fetch object based on array of properties.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
*
- * @return CRM_Core_DAO_Domain object
- * @static
+ * @return CRM_Core_DAO_Domain
*/
public static function retrieve(&$params, &$defaults) {
return CRM_Core_DAO::commonRetrieve('CRM_Core_DAO_Domain', $params, $defaults);
}
/**
- * Get the domain BAO
+ * Get the domain BAO.
*
* @param null $reset
*
* @return CRM_Core_BAO_Domain|null
- * @static
*/
public static function &getDomain($reset = NULL) {
static $domain = NULL;
}
/**
- * Get the location values of a domain
- *
- * @param NULL
+ * Get the location values of a domain.
*
* @return array
* Location::getValues
}
/**
- * Save the values of a domain
+ * Save the values of a domain.
*
* @param array $params
* @param int $id
}
/**
- * Create a new domain
+ * Create a new domain.
*
* @param array $params
*
}
return $siteContacts;
}
+
}