예제 #1
0
 protected function setField($key, $value)
 {
     switch ($key) {
         case 'bounding_box':
             $this->insertBoundingBoxes($value);
             break;
         default:
             parent::setField($key, $value);
             break;
     }
 }
 protected function setField($key, $value)
 {
     switch ($key) {
         case 'indices':
             $this->setIndices($value[0], $value[1]);
             break;
         default:
             parent::setField($key, $value);
             break;
     }
 }
예제 #3
0
 protected function setField($key, $value)
 {
     switch ($key) {
         case 'id':
             // do nothing and use *_str instead, it's safer because
             // the number could be too great for PHP
             break;
         case 'id_str':
             $this->setId($value);
             break;
         default:
             parent::setField($key, $value);
             break;
     }
 }
예제 #4
0
 protected function setField($key, $value)
 {
     switch ($key) {
         case 'symbols':
             // ignore this value seems to not really have any worth
             break;
         case 'hashtags':
             $this->insertHashTags($value);
             break;
         case 'media':
             $this->insertMedia($value);
             break;
         case 'urls':
             $this->insertUrls($value);
             break;
         case 'user_mentions':
             $this->insertUserMentions($value);
             break;
         default:
             parent::setField($key, $value);
             break;
     }
 }
예제 #5
0
 protected function setField($key, $value)
 {
     switch ($key) {
         case 'id':
         case 'in_reply_to_status_id':
         case 'in_reply_to_user_id':
         case 'quoted_status_id':
             // do nothing and use *_str instead, it's safer because
             // the number could be too great for PHP
             break;
         case 'geo':
             // ignore, it's deprecated
             break;
             break;
         case 'coordinates':
             $this->insertCoordinates($value);
             break;
         case 'created_at':
             $this->insertCreatedAt($value);
             break;
         case 'contributors':
             $this->insertContributors($value);
             break;
         case 'entities':
             $this->insertEntities($value);
             break;
         case 'id_str':
             $this->setId($value);
             break;
         case 'in_reply_to_status_id_str':
             $this->setInReplyToStatusId($value);
             break;
         case 'in_reply_to_user_id_str':
             $this->setInReplyToUserId($value);
             break;
         case 'place':
             $this->insertPlace($value);
             break;
         case 'quoted_status_id_str':
             $this->setQuotedStatusId($value);
             break;
         case 'quoted_status':
             $this->insertQuotedStatus($value);
             break;
         case 'retweeted_status':
             $this->insertRetweetedStatus($value);
             break;
         case 'user':
             $this->insertUser($value);
             break;
         case 'withheld_in_countries':
             $this->insertWithheldInCountries($value);
             break;
         default:
             parent::setField($key, $value);
             break;
     }
 }