+--------------------------------------------------------------------+
| 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_OpenID extends CRM_Core_DAO_OpenID {
/**
- * Takes an associative array and adds OpenID
+ * Takes an associative array and adds OpenID.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
*
- * @return object CRM_Core_BAO_OpenID object on success, null otherwise
- * @static
+ * @return object
+ * CRM_Core_BAO_OpenID object on success, null otherwise
*/
public static function add(&$params) {
$hook = empty($params['id']) ? 'create' : 'edit';
* Input parameters to find object.
*
* @return mixed
- * @static
*/
public static function &getValues($entityBlock) {
return CRM_Core_BAO_Block::getValues('openid', $entityBlock);
}
/**
- * Returns whether or not this OpenID is allowed to login
+ * Returns whether or not this OpenID is allowed to login.
*
* @param string $identity_url
* The OpenID to check.
*
- * @return boolean
- * @static
+ * @return bool
*/
public static function isAllowedToLogin($identity_url) {
$openId = new CRM_Core_DAO_OpenID();
*
* @param bool $updateBlankLocInfo
*
- * @return array the array of openid's
- * @static
+ * @return array
+ * the array of openid's
*/
public static function allOpenIDs($id, $updateBlankLocInfo = FALSE) {
if (!$id) {
$params = array(1 => array($id, 'Integer'));
$openids = $values = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params);
- $count = 1;
+ $dao = CRM_Core_DAO::executeQuery($query, $params);
+ $count = 1;
while ($dao->fetch()) {
$values = array(
'locationType' => $dao->locationType,
}
/**
- * Call common delete function
+ * Call common delete function.
*/
public static function del($id) {
return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('OpenID', $id);
}
+
}