| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
return $form_state['user']->uid;
}
- /*
- * Change user name in host CMS
- *
- * @param integer $ufID User ID in CMS
- * @param string $ufName User name
- */
/**
- * @param int $ufID
- * @param string $ufName
+ * Change user name in host CMS
+ *
+ * @param int $ufID User ID in CMS
+ * @param string $ufName User name
*/
public function updateCMSName($ufID, $ufName) {
// CRM-5555
/**
* Rewrite various system urls to https
- *
- * @param null
- *
- * @return void
*/
public function mapConfigToSSL() {
global $base_url;
if (!$contactID) {
return FALSE;
}
- else { //success
+ else {
+ //success
if ($loadCMSBootstrap) {
$bootStrapParams = array();
if ($name && $password) {
* e.g. for drupal : records a watchdog message about the new session,
* saves the login timestamp, calls hook_user op 'login' and generates a new session.
*
- * @param array params
+ * @param array $params
*
* FIXME: Document values accepted/required by $params
*/
/**
* Check is user logged in.
*
- * @return boolean
+ * @return bool
*/
public function isUserLoggedIn() {
$isloggedIn = FALSE;
*
* @return string
* , formatted url.
- * @static
*/
public function languageNegotiationURL($url, $addLanguagePart = TRUE, $removeLanguagePart = FALSE) {
if (empty($url)) {
$perms = $perms + drupal_map_assoc($newPerms);
$permList = implode(', ', $perms);
db_query('UPDATE {permission} SET perm = "%s" WHERE rid = %d', $permList, $rid);
- /*
+ /* @codingStandardsIgnoreStart
if ( ! empty( $roles ) ) {
$rids = implode(',', array_keys($roles));
db_query( 'UPDATE {permission} SET perm = CONCAT( perm, \', edit all events\') WHERE rid IN (' . implode(',', array_keys($roles)) . ')' );
db_query( "UPDATE {permission} SET perm = REPLACE( perm, '%s', '%s' ) WHERE rid IN ($rids)",
- $oldPerm, implode(', ', $newPerms) );*/
+ $oldPerm, implode(', ', $newPerms) );
+ @codingStandardsIgnoreEnd */
}
}
*
* @return string
* loginURL for the current CMS
- * @static
*/
public function getLoginURL($destination = '') {
$config = CRM_Core_Config::singleton();
public function flush() {
drupal_flush_all_caches();
}
+
}