コード例 #1
0
ファイル: DeliveryApi.php プロジェクト: rubendgr/lunr
 /**
  * Get access to shared credentials.
  *
  * @param String $key Credentials key
  *
  * @return mixed $return Value of the chosen key
  */
 public function __get($key)
 {
     switch ($key) {
         case 'access_token':
             return $this->cas->get('contentful', $key);
         default:
             return NULL;
     }
 }
コード例 #2
0
ファイル: Api.php プロジェクト: rubendgr/lunr
 /**
  * Get access to shared credentials.
  *
  * @param String $key Credentials key
  *
  * @return mixed $return Value of the chosen key
  */
 public function __get($key)
 {
     switch ($key) {
         case 'consumer_key':
         case 'consumer_secret':
         case 'user_agent':
         case 'bearer_token':
             return $this->cas->get('twitter', $key);
         default:
             return NULL;
     }
 }
コード例 #3
0
ファイル: Api.php プロジェクト: rubendgr/lunr
 /**
  * Get access to shared credentials.
  *
  * @param String $key Credentials key
  *
  * @return mixed $return Value of the chosen key
  */
 public function __get($key)
 {
     switch ($key) {
         case 'app_id':
         case 'app_secret':
         case 'app_secret_proof':
         case 'access_token':
             return $this->cas->get('facebook', $key);
         default:
             return NULL;
     }
 }