user = $user; $this->showThumbnails = $showThumbnails; $this->showUploaded = $showUploaded; $this->videocount = $videocount; $this->api_version = $api_version; // preg_replace("/\s+/isx", "+", $this->tag); $dev_id = "1234-DEVID"; $page = "1"; $per_page = "100"; if ($showUploaded == 'on') { $method = "youtube.videos.list_by_user"; } else { $method = "youtube.users.list_favorite_videos"; } $this->url = "http://www.youtube.com/api2_rest?method=" . "$method&" . "dev_id=" . urlencode($dev_id) . "&" . "user=" . $user; } // end constructor } // end class ?>