X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FOpenID.php;h=cdc8c60a932d8ff3fd6676e6b8fc0d055542afec;hb=c15fb38374462a40d704d83fac983412df8a16a1;hp=619aa13e6587f4ca412e594b74a19928edbdf928;hpb=a6c01b45f0cdaee8677de72b8bf3e784d8b6b62a;p=civicrm-core.git diff --git a/CRM/Core/BAO/OpenID.php b/CRM/Core/BAO/OpenID.php index 619aa13e65..cdc8c60a93 100644 --- a/CRM/Core/BAO/OpenID.php +++ b/CRM/Core/BAO/OpenID.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,12 +23,12 @@ | 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$ * */ @@ -39,14 +39,13 @@ 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 */ public static function add(&$params) { $hook = empty($params['id']) ? 'create' : 'edit'; @@ -68,20 +67,18 @@ class CRM_Core_BAO_OpenID extends CRM_Core_DAO_OpenID { * 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(); @@ -102,7 +99,6 @@ class CRM_Core_BAO_OpenID extends CRM_Core_DAO_OpenID { * * @return array * the array of openid's - * @static */ public static function allOpenIDs($id, $updateBlankLocInfo = FALSE) { if (!$id) { @@ -123,8 +119,8 @@ ORDER BY $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, @@ -146,9 +142,10 @@ ORDER BY } /** - * Call common delete function + * Call common delete function. */ public static function del($id) { return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('OpenID', $id); } + }