예제 #1
0
 public function __construct($to_user, $from_user, $title = null, $description = null, $pic_url = null, $url = null)
 {
     parent::__construct($to_user, $from_user);
     $this->replace['Title'] = $title;
     $this->replace['Description'] = $description;
     $this->replace['PicUrl'] = $pic_url;
     $this->replace['Url'] = $url;
 }
예제 #2
0
 public function __construct($to_user, $from_user, $thumb_media_id, $title = null, $description = null, $music_url = null, $hq_music_url = null)
 {
     parent::__construct($to_user, $from_user);
     $this->replace['Title'] = $title;
     $this->replace['Description'] = $description;
     $this->replace['MusicUrl'] = $music_url;
     $this->replace['HQMusicUrl'] = $hq_music_url;
     $this->replace['ThumbMediaId'] = $thumb_media_id;
 }
예제 #3
0
파일: Android.php 프로젝트: kitbs/twine
 public function read($path)
 {
     parent::read($path);
     $this->makeSource();
     $strings = $this->parsed['value'];
     foreach ($strings as $string) {
         if ($string['name'] == '{}string') {
             $this->makeString($string['attributes']['name'], $string['attributes']['name'], $string['value']);
         } elseif ($string['name'] == '{}string-array') {
             foreach ($string['value'] as $i => $value) {
                 $this->makeString([$string['attributes']['name'], $i], $string['attributes']['name'], $value['value']);
             }
         } elseif ($string['name'] == '{}plurals') {
             foreach ($string['value'] as $value) {
                 $this->makeString([$string['attributes']['name'], $value['attributes']['quantity']], $string['attributes']['name'], $value['value'], $value['attributes']['quantity']);
             }
         }
     }
     dd($this);
 }
예제 #4
0
 public function __construct($to_user, $from_user, $media_id)
 {
     parent::__construct($to_user, $from_user);
     $this->replace['MediaId'] = $media_id;
 }
예제 #5
0
 public function __construct($to_user, $from_user, $content)
 {
     parent::__construct($to_user, $from_user);
     $this->replace['Content'] = $content;
 }
예제 #6
0
 public function __construct($to_user, $from_user, $items)
 {
     parent::__construct($to_user, $from_user);
     $this->items = $items;
 }