コード例 #1
0
 public function testArrayAccess()
 {
     $this->optionBag->register('accuracy');
     $this->assertFalse(isset($this->optionBag['accuracy']));
     $this->assertNull($this->optionBag['accuracy']);
     $this->optionBag['accuracy'] = 'foo';
     $this->assertTrue(isset($this->optionBag['accuracy']));
     $this->assertSame('foo', $this->optionBag['accuracy']);
     unset($this->optionBag['accuracy']);
     $this->assertFalse(isset($this->optionBag['accuracy']));
     $this->assertNull($this->optionBag['accuracy']);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('lat')->register('long')->register('query')->register('ip')->register('granularity')->register('accuracy')->register('max_results')->register('contained_within')->register('attribute:street_address')->register('callback');
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('banner', OptionInterface::TYPE_POST)->register('width', OptionInterface::TYPE_POST)->register('height', OptionInterface::TYPE_POST)->register('offset_left', OptionInterface::TYPE_POST)->register('offset_top', OptionInterface::TYPE_POST);
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('source_id')->register('source_screen_name')->register('target_id')->register('target_screen_name');
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id')->register('screen_name')->register('count')->register('since_id')->register('max_id')->register('include_entities');
 }
コード例 #6
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('id', OptionInterface::TYPE_PATH);
 }
コード例 #7
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('include_entities')->register('skip_status')->register('cursor');
 }
コード例 #8
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('id', OptionInterface::TYPE_POST)->register('include_entities', OptionInterface::TYPE_POST);
 }
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('image', OptionInterface::TYPE_POST)->register('tile', OptionInterface::TYPE_POST)->register('include_entities', OptionInterface::TYPE_POST)->register('skip_status', OptionInterface::TYPE_POST)->register('use', OptionInterface::TYPE_POST);
 }
コード例 #10
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id')->register('screen_name')->register('cursor')->register('filter_to_owned_lists');
 }
コード例 #11
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('lat')->register('long')->register('name')->register('contained_within')->register('attribute:street_address')->register('callback');
 }
コード例 #12
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('query', OptionInterface::TYPE_POST);
 }
コード例 #13
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('trend_location_woeid', OptionInterface::TYPE_POST)->register('sleep_time_enabled', OptionInterface::TYPE_POST)->register('start_sleep_time', OptionInterface::TYPE_POST)->register('end_sleep_time', OptionInterface::TYPE_POST)->register('time_zone', OptionInterface::TYPE_POST)->register('lang', OptionInterface::TYPE_POST);
 }
コード例 #14
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('id', OptionInterface::TYPE_PATH)->register('count')->register('trim_user');
 }
コード例 #15
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('id', OptionInterface::TYPE_PATH)->register('trim_user')->register('include_my_retweet')->register('include_entities');
 }
コード例 #16
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id')->register('screen_name');
 }
コード例 #17
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('stringify_ids');
 }
コード例 #18
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('q')->register('page')->register('count')->register('include_entities');
 }
コード例 #19
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id', OptionInterface::TYPE_POST)->register('screen_name', OptionInterface::TYPE_POST)->register('follow', OptionInterface::TYPE_POST);
 }
コード例 #20
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('lang');
 }
コード例 #21
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('id')->register('url')->register('maxwidth')->register('hide_media')->register('hide_thread')->register('omit_script')->register('align')->register('related')->register('lang');
 }
コード例 #22
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('status', OptionInterface::TYPE_POST)->register('in_reply_to_status_id', OptionInterface::TYPE_POST)->register('lat', OptionInterface::TYPE_POST)->register('long', OptionInterface::TYPE_POST)->register('place_id', OptionInterface::TYPE_POST)->register('display_coordinates', OptionInterface::TYPE_POST)->register('trim_user', OptionInterface::TYPE_POST);
 }
コード例 #23
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id')->register('screen_name')->register('cursor')->register('count')->register('skip_status')->register('include_user_entities');
 }
コード例 #24
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('since_id')->register('max_id')->register('count')->register('include_entities')->register('skip_status');
 }
コード例 #25
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id', OptionInterface::TYPE_POST)->register('screen_name', OptionInterface::TYPE_POST)->register('device_notification', OptionInterface::TYPE_POST)->register('retweets', OptionInterface::TYPE_POST);
 }
コード例 #26
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('user_id')->register('screen_name')->register('cursor')->register('stringify_ids')->register('count');
 }
コード例 #27
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('list_id', OptionInterface::TYPE_POST)->register('slug', OptionInterface::TYPE_POST)->register('owner_screen_name', OptionInterface::TYPE_POST)->register('owner_id', OptionInterface::TYPE_POST);
 }
コード例 #28
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('id')->register('exclude');
 }
コード例 #29
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('lat')->register('long')->register('accuracy')->register('granularity')->register('max_results')->register('callback');
 }
コード例 #30
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptionBag(OptionBag $optionBag)
 {
     $optionBag->register('name', OptionInterface::TYPE_POST)->register('url', OptionInterface::TYPE_POST)->register('location', OptionInterface::TYPE_POST)->register('description', OptionInterface::TYPE_POST)->register('include_entities', OptionInterface::TYPE_POST)->register('skip_status', OptionInterface::TYPE_POST);
 }