You are here

class MediaFlickrStyles in Media: Flickr 7

@file Definition for Styles.

Hierarchy

Expanded class hierarchy of MediaFlickrStyles

1 string reference to 'MediaFlickrStyles'
media_flickr_styles_default_containers in includes/media_flickr.styles.inc
Implementation of Styles module hook_styles_default_containers().

File

includes/MediaFlickrStyles.inc, line 8
Definition for Styles.

View source
class MediaFlickrStyles extends FileStyles {
  public function getImageUri() {
    if ($image_uri = $this
      ->get('imageUri')) {
      return $image_uri;
    }
    $object = $this
      ->getObject();
    if ($object->uri) {
      $wrapper = file_stream_wrapper_get_instance_by_uri($object->uri);
      return $wrapper
        ->getLocalThumbnailPath();
    }
  }
  public function flickr_image($effect) {
    $variables = array(
      'uri' => $this
        ->getUri(),
      'width' => $this
        ->getWidth(),
      'height' => $this
        ->getHeight(),
    );
    $variables = array_merge($variables, $this->variables);
    $this
      ->setOutput(theme('media_flickr_embed', $variables));
  }
  public function flickr_photoset($effect) {
    $variables = array(
      'uri' => $this
        ->getUri(),
      'width' => $this
        ->getWidth(),
      'height' => $this
        ->getHeight(),
      'photoset' => TRUE,
    );
    $variables = array_merge($variables, $this->variables);
    $this
      ->setOutput(theme('media_flickr_embed', $variables));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FileStyles::$alt public property
FileStyles::$classes public property Overrides StylesDefault::$classes
FileStyles::$fid public property
FileStyles::$float public property
FileStyles::$height public property
FileStyles::$imagecachePreset public property
FileStyles::$link public property
FileStyles::$streamWrapperInstance public property
FileStyles::$title public property
FileStyles::$uri public property
FileStyles::$width public property
FileStyles::$wrapperType public property Overrides StylesDefault::$wrapperType
FileStyles::float function
FileStyles::getAlt function
FileStyles::getFid function
FileStyles::getFloat function
FileStyles::getHeight function
FileStyles::getImageStyle function
FileStyles::getLink function
FileStyles::getObject function Override the getObject() method to account for media fields that store their data in a sub-property rather than the field itself. Overrides StylesDefault::getObject
FileStyles::getStreamWrapperInstance function
FileStyles::getTitle function
FileStyles::getUri function
FileStyles::getWidth function
FileStyles::imageStyle function
FileStyles::linkToMedia function
FileStyles::linkToPath function
FileStyles::override public function
FileStyles::render public function Override the render function to always display a thumbnail in the wysiwyg. Overrides StylesDefault::render
FileStyles::resize function
FileStyles::setAlt function
FileStyles::setFid function
FileStyles::setFloat function
FileStyles::setHeight function
FileStyles::setImageStyle function
FileStyles::setImageUri function
FileStyles::setLink function
FileStyles::setObject function Overrides StylesDefault::setObject
FileStyles::setStreamWrapperInstance function
FileStyles::setTitle function
FileStyles::setUri function
FileStyles::setWidth function
FileStyles::teaser function
FileStyles::thumbnail function
MediaFlickrStyles::flickr_image public function
MediaFlickrStyles::flickr_photoset public function
MediaFlickrStyles::getImageUri public function Overrides FileStyles::getImageUri
StylesDefault::$effects public property
StylesDefault::$id public property
StylesDefault::$object public property
StylesDefault::$output public property
StylesDefault::$prefix public property
StylesDefault::$suffix public property
StylesDefault::$variables public property
StylesDefault::$_id private property
StylesDefault::addEffect public function Add an effect to the end of the array.
StylesDefault::arrayPop public function
StylesDefault::arrayPush public function
StylesDefault::arrayShift public function
StylesDefault::arrayUnshift public function
StylesDefault::display public function Display the rendered output.
StylesDefault::get public function
StylesDefault::getClasses public function
StylesDefault::getClassName public function
StylesDefault::getEffects public function
StylesDefault::getId public function
StylesDefault::getOutput public function
StylesDefault::getPrefix public function
StylesDefault::getSuffix public function
StylesDefault::getVariables public function
StylesDefault::getWrapperType public function
StylesDefault::magicSet protected function Given an array of k/v pairs calls set$key
StylesDefault::popEffect public function
StylesDefault::pushEffect public function
StylesDefault::set public function
StylesDefault::setClasses public function
StylesDefault::setEffects public function
StylesDefault::setId public function
StylesDefault::setOutput public function
StylesDefault::setPrefix public function
StylesDefault::setSuffix public function
StylesDefault::setVariables public function
StylesDefault::setWrapperType public function
StylesDefault::shiftEffect public function
StylesDefault::unshiftEffect public function
StylesDefault::_get public function
StylesDefault::_set public function
StylesDefault::_toCamelCase protected function Converts a string in the form with_underscores to withUnderscores
StylesDefault::__construct public function