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; }
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; }
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); }
public function __construct($to_user, $from_user, $media_id) { parent::__construct($to_user, $from_user); $this->replace['MediaId'] = $media_id; }
public function __construct($to_user, $from_user, $content) { parent::__construct($to_user, $from_user); $this->replace['Content'] = $content; }
public function __construct($to_user, $from_user, $items) { parent::__construct($to_user, $from_user); $this->items = $items; }