當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Horde_Url::uriB64Decode方法代碼示例

本文整理匯總了PHP中Horde_Url::uriB64Decode方法的典型用法代碼示例。如果您正苦於以下問題:PHP Horde_Url::uriB64Decode方法的具體用法?PHP Horde_Url::uriB64Decode怎麽用?PHP Horde_Url::uriB64Decode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Horde_Url的用法示例。


在下文中一共展示了Horde_Url::uriB64Decode方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _idDeconstruct

 /**
  * Deconstruct the ID elements from the ID string
  *
  * @param string $id The ID to be deconstructed.
  *
  * @return array A tuple of (owner, folder subpath).
  */
 private function _idDeconstruct($id)
 {
     if (!($decoded_id = Horde_Url::uriB64Decode($id))) {
         $msg = sprintf('Share id %s is invalid.', $id);
         $this->_logger->err($msg);
         throw new Horde_Exception_NotFound($msg);
     }
     if (!($sid = @unserialize($decoded_id))) {
         $msg = sprintf('Share id %s is invalid.', $decoded_id);
         $this->_logger->err($msg);
         throw new Horde_Exception_NotFound($msg);
     }
     return $sid;
 }
開發者ID:Gomez,項目名稱:horde,代碼行數:21,代碼來源:Kolab.php

示例2: _delete

 /**
  * Deletes a task from the backend.
  *
  * @param string $taskId  The task to delete.
  */
 protected function _delete($taskId)
 {
     $this->_getData()->delete(Horde_Url::uriB64Decode($taskId));
 }
開發者ID:Gomez,項目名稱:horde,代碼行數:9,代碼來源:Kolab.php

示例3: _decode

 /**
  * Decode a token into the prefixed nonce and the hash.
  *
  * @param string $token The token to be decomposed.
  *
  * @return array An array of two elements: The nonce and the hash.
  */
 private function _decode($token)
 {
     $b = Horde_Url::uriB64Decode($token);
     return array(substr($b, 0, 6), substr($b, 6));
 }
開發者ID:jubinpatel,項目名稱:horde,代碼行數:12,代碼來源:Base.php

示例4: _convertMembers

 /**
  * TODO
  */
 protected function _convertMembers(&$attributes)
 {
     if (isset($attributes['__members'])) {
         $member_ids = unserialize($attributes['__members']);
         $attributes['member'] = array();
         foreach ($member_ids as $member_id) {
             $source_id = null;
             if (strpos($member_id, ':')) {
                 list($source_id, $member_id) = explode(':', $member_id, 2);
             }
             $mail = array('uid' => Horde_Url::uriB64Decode($member_id));
             $member = null;
             if ($source_id) {
                 try {
                     $driver = $GLOBALS['injector']->getInstance('Turba_Factory_Driver')->create($source_id);
                     try {
                         $member = $driver->getObject($member_id);
                         $name = $member->getValue('name');
                         if (!empty($name)) {
                             $mail['display-name'] = $name;
                         }
                         $emails = $member->getValue('emails');
                         if ($emails) {
                             $emails = explode(',', $emails);
                             $mail['smtp-address'] = trim($emails[0]);
                             if (!isset($mail['display-name'])) {
                                 $mail['display-name'] = $mail['smtp-address'];
                             }
                         }
                     } catch (Horde_Exception_NotFound $e) {
                     }
                 } catch (Turba_Exception $e) {
                 }
             } elseif (isset($this->_contacts_cache[$member_id])) {
                 $member = $this->_contacts_cache[$member_id];
                 if (!empty($member['full-name'])) {
                     $mail['display-name'] = $member['full-name'];
                 }
                 if (!empty($member['emails'])) {
                     $emails = explode(',', $member['emails']);
                     $mail['smtp-address'] = trim($emails[0]);
                     if (!isset($mail['display-name'])) {
                         $mail['display-name'] = $mail['smtp-address'];
                     }
                 }
             }
             $attributes['member'][] = $mail;
         }
         unset($attributes['__members']);
     }
 }
開發者ID:DSNS-LAB,項目名稱:Dmail,代碼行數:54,代碼來源:Kolab.php

示例5: _delete

 /**
  * Deletes a note permanently.
  *
  * @param array $note  The note to delete.
  *
  * @return string  The note's UID.
  * @throws Mnemo_Exception
  */
 protected function _delete($noteId)
 {
     $this->synchronize();
     $uid = Horde_Url::uriB64Decode($noteId);
     try {
         $this->_getData()->delete($uid);
     } catch (Horde_Kolab_Storage_Exception $e) {
         throw new Mnemo_Exception($e);
     }
     return $uid;
 }
開發者ID:raz0rsdge,項目名稱:horde,代碼行數:19,代碼來源:Kolab.php


注:本文中的Horde_Url::uriB64Decode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。