__construct() публичный Метод

public __construct ( $durationMillis = null, $streamingUrl = null, $readyToPlayOnTheWeb = null, $industryStandardCommercialIdentifier = null, $advertisingId = null, $youTubeVideoIdString = null, $mediaId = null, $type = null, $referenceId = null, $dimensions = null, $urls = null, $mimeType = null, $sourceUrl = null, $name = null, $fileSize = null, $creationTime = null, $MediaType = null )
Пример #1
0
 function __construct($id, $title = '', $offset = 0)
 {
     parent::__construct($id, $title, $offset);
     if (in_array(pathinfo($id, PATHINFO_EXTENSION), array('oga', 'mp3', 'm4a', 'webma', 'wav'))) {
         $this->type = 'a';
     }
 }
Пример #2
0
 /**
  * Constructor
  * This pulls the tv show episode information from the database and returns
  * a constructed object
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $info = $this->get_info($id);
     foreach ($info as $key => $value) {
         $this->{$key} = $value;
     }
     return true;
 }
Пример #3
0
 function __construct($id, $title = '', $offset = 0, $visual = true)
 {
     parent::__construct($id, $title, $offset);
     $this->visual = $visual;
     $this->type = 'a';
 }