Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 701881 Details for
Bug 829017
Review Request: drupal6-media_youtube - Youtube Video Module for Drupal6
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Zend library calls in module source
zend.txt (text/plain), 5.77 KB, created by
Shawn Iwinski
on 2013-02-24 04:54:13 UTC
(
hide
)
Description:
Zend library calls in module source
Filename:
MIME Type:
Creator:
Shawn Iwinski
Created:
2013-02-24 04:54:13 UTC
Size:
5.77 KB
patch
obsolete
>includes/media_youtube.variables.inc: // Zend path. >includes/media_youtube.variables.inc: 'zend_path' => '', >includes/media_youtube.media_mover.inc: $path = media_youtube_zend_path(); >includes/media_youtube.media_mover.inc: Zend_Loader::loadClass('Zend_Gdata_ClientLogin', $path); >includes/media_youtube.media_mover.inc: Zend_Loader::loadClass('Zend_Gdata_YouTube', $path); >includes/media_youtube.media_mover.inc: Zend_Loader::loadClass('Zend_Gdata_App_Exception', $path); >includes/media_youtube.media_mover.inc: Zend_Loader::loadClass('Zend_Gdata_App_HttpException', $path); >includes/media_youtube.media_mover.inc: $httpclient = Zend_Gdata_ClientLogin::getHttpClient($username, $password, 'youtube', NULL, MEDIA_YOUTUBE_APP_ID, NULL, NULL, MEDIA_YOUTUBE_AUTH_URL); >includes/media_youtube.media_mover.inc: $youtube = new Zend_Gdata_YouTube($httpclient, MEDIA_YOUTUBE_APP_ID, NULL, $devkey); >includes/media_youtube.media_mover.inc: $upload = new Zend_Gdata_YouTube_VideoEntry(); >includes/media_youtube.media_mover.inc: $video = $youtube->insertEntry($upload, MEDIA_YOUTUBE_UPLOAD_URL, 'Zend_Gdata_YouTube_VideoEntry'); >includes/media_youtube.media_mover.inc: catch (Zend_Gdata_App_HttpException $httpException) { >includes/media_youtube.media_mover.inc: catch (Zend_Gdata_App_Exception $e) { >includes/media_youtube.admin.inc: // Find the Zend library. >includes/media_youtube.admin.inc: $zend_path = media_youtube_zend_path(); >includes/media_youtube.admin.inc: if (!$zend_path && module_exists('media_mover_api')) { >includes/media_youtube.admin.inc: drupal_set_message(t("For complete video upload capabilities, you need to download the !zend and extract the entire contents of the archive into the %path folder of your server.", array('!zend' => l(t('Zend PHP library'), 'http://framework.zend.com/download/gdata/', array('attributes' => array('target' => '_blank'))), '%path' => 'sites/all/libraries')), 'warning'); >includes/media_youtube.api.inc: $path = media_youtube_zend_path(); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_YouTube', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_App_Exception', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_App_HttpException', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_App_Extension_Control', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_YouTube_Extension_State', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_AuthSub', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_ClientLogin', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Uri_Http', $path); >includes/media_youtube.api.inc: $youTubeService = new Zend_Gdata_YouTube($httpClient); >includes/media_youtube.api.inc: } catch (Zend_Gdata_App_Exception $e) { >includes/media_youtube.api.inc: } catch (Zend_Gdata_App_HttpException $e) { >includes/media_youtube.api.inc: if ($control instanceof Zend_Gdata_App_Extension_Control) { >includes/media_youtube.api.inc: if ($state instanceof Zend_Gdata_YouTube_Extension_State) { >includes/media_youtube.api.inc: * Convenience method to obtain an authenticted Zend_Http_Client object. >includes/media_youtube.api.inc: * @return Zend_Http_Client An authenticated client. >includes/media_youtube.api.inc: $path = media_youtube_zend_path(); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_ClientLogin', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_App_Exception', $path); >includes/media_youtube.api.inc: Zend_Loader::loadClass('Zend_Gdata_App_HttpException', $path); >includes/media_youtube.api.inc: $httpClient = Zend_Gdata_ClientLogin::getHttpClient($youtube_username, $youtube_password, 'youtube', NULL, MEDIA_YOUTUBE_APP_ID, NULL, NULL, MEDIA_YOUTUBE_AUTH_URL); >includes/media_youtube.api.inc: } catch (Zend_Gdata_App_Exception $e) { >includes/media_youtube.api.inc: } catch (Zend_Gdata_App_HttpException $e) { >media_youtube.install: // Autoload the Zend_Loader class. >media_youtube.install: // Autoload the Zend_Loader class. >media_youtube.module: // Autoload the Zend_Loader class when needed. >media_youtube.module: * Autoload the Zend_Loader class when needed. >media_youtube.module: if ($class_name == 'Zend_Loader') { >media_youtube.module: include_once(media_youtube_zend_path() .'/Zend/Loader.php'); >media_youtube.module: * Return the path to the Zend library. >media_youtube.module: * If media_youtube_variable_get('zend_path') has not yet been set, then >media_youtube.module: * set the path to media_youtube_variable_get('zend_path'). >media_youtube.module: * The library is available from http://framework.zend.com/download/gdata/. >media_youtube.module: * The path to the Zend Gdata.php and related files. >media_youtube.module:function media_youtube_zend_path($reset = FALSE) { >media_youtube.module: if (!($path = media_youtube_variable_get('zend_path')) || $reset) { >media_youtube.module: media_youtube_variable_set('zend_path', $path); >media_youtube.module: * Add the Zend path to PHP class includes. >media_youtube.module: $path = media_youtube_zend_path(); >media_youtube.module: if ($path = media_youtube_zend_path()) { >media_youtube.module: Zend_Loader::loadClass('Zend_Gdata_YouTube', $path); >media_youtube.module: Zend_Loader::loadClass('Zend_Gdata_App_HttpException', $path); >media_youtube.module: Zend_Loader::loadClass('Zend_Gdata_AuthSub', $path); >media_youtube.module: Zend_Loader::loadClass('Zend_Gdata_ClientLogin', $path); >media_youtube.module: Zend_Loader::loadClass('Zend_Uri_Http', $path); >media_youtube.module: $yt = new Zend_Gdata_YouTube(); >media_youtube.module: // We don't have the Zend library, so there's no way to know for certain.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 829017
: 701881