Example #1
0
 public function __construct($Me, $From, $User, $ID, $Type, $Time, $Name, $vCardName, $vCard)
 {
     $this->vCardName = $vCardName;
     $this->vCard = new \vCard(false, $vCard);
     $this->Preview = $vCard;
     parent::__construct($Me, $From, $User, $ID, $Type, $Time, $Name, 'vcard', null, $ID . '.vcf', null, null, null);
 }
Example #2
0
 public function __construct($Me, $From, $User, $ID, $Type, $Time, $Name, $URL, $File, $Size, $MIME, $Hash, $Width, $Height, $Preview, $Caption)
 {
     parent::__construct($Me, $From, $User, $ID, $Type, $Time, $Name, 'image', $URL, $File, $Size, $MIME, $Hash);
     $this->Width = (int) $Width;
     $this->Height = (int) $Height;
     $this->Preview = $Preview;
     $this->Caption = empty($Caption) ? null : $Caption;
 }
Example #3
0
 public function __construct($Me, $From, $User, $ID, $Type, $Time, $Name, $URL, $Author, $Longitude, $Latitude, $Preview)
 {
     $this->Author = !empty($Author) ? $Author : null;
     $this->Longitude = $Longitude;
     $this->Latitude = $Latitude;
     $this->Preview = $Preview;
     parent::__construct($Me, $From, $User, $ID, $Type, $Time, $Name, 'location', $URL, $ID . '.jpg', null, null, null);
 }
Example #4
0
 public function __construct($Me, $From, $User, $ID, $Type, $Time, $Name, $URL, $File, $Size, $MIME, $Hash, $Duration, $VCodec, $ACodec, $Preview, $Caption)
 {
     parent::__construct($Me, $From, $User, $ID, $Type, $Time, $Name, 'video', $URL, $File, $Size, $MIME, $Hash);
     $this->Duration = $Duration;
     $this->VCodec = $VCodec;
     $this->ACodec = $ACodec;
     $this->Preview = $Preview;
     $this->Caption = empty($Caption) ? null : $Caption;
 }
Example #5
0
 public function __construct($Me, $From, $User, $ID, $Type, $Time, $Name, $URL, $File, $Size, $MIME, $Hash, $Duration, $Preview, $Caption, $Width, $Height, $FPS, $VCodec, $VBitRate, $ACodec, $ABitRate, $ASampleFrequency, $ASampleFormat)
 {
     parent::__construct($Me, $From, $User, $ID, $Type, $Time, $Name, 'video', $URL, $File, $Size, $MIME, $Hash);
     $this->Duration = (int) $Duration;
     $this->Preview = $Preview;
     $this->Caption = empty($Caption) ? null : $Caption;
     $this->Width = (int) $Width;
     $this->Height = (int) $Height;
     $this->FPS = (int) $FPS;
     $this->VCodec = $VCodec;
     $this->VBitRate = (int) $VBitRate;
     $this->ACodec = $ACodec;
     $this->ABitRate = (int) $ABitRate;
     $this->ASampleFrequency = (int) $ASampleFrequency;
     $this->ASampleFormat = $ASampleFormat;
 }
Example #6
0
 public function __construct($Me, $From, $User, $ID, $Type, $Time, $Name, $URL, $File, $Size, $MIME, $Hash, $Duration, $Codec)
 {
     $this->Duration = (int) $Duration;
     $this->Codec = $Codec;
     parent::__construct($Me, $From, $User, $ID, $Type, $Time, $Name, 'audio', $URL, $File, $Size, $MIME, $Hash);
 }