GoogleApiAdsCommon
[ class tree: GoogleApiAdsCommon ] [ index: GoogleApiAdsCommon ] [ all elements ]

Class: MediaUtils

Source Location: /Common/Util/MediaUtils.php

Class Overview


A utility class to handle data of media assets (such as image, SWF, or video files).


Methods



Class Details

[line 36]
A utility class to handle data of media assets (such as image, SWF, or video files).



[ Top ]


Class Methods


static method GetBase64Data [line 52]

static string GetBase64Data( string $path, [boolean $useIncludePath = NULL], [resource $context = NULL])

Gets the base64 encoded data from an asset located at path for use with the API where <x>Data is needed.



Tags:

return:  the base64 encoded data of the file
see:  http://us2.php.net/file_get_contents
access:  public


Parameters:

string   $path   the path of the file or URL of the asset
boolean   $useIncludePath   use include path (optional)
resource   $context   a context resource (optional)

[ Top ]


Documentation generated by phpDocumentor 1.4.3