Media/Output/Component.php
- Classes
- Kwf_Media_Output_Component
\Kwf_Media_Output_Component
Methods
getMediaOutputForDimension
getMediaOutputForDimension(
           $data,  $dim,  $type
          )
        
        :
        Helper function that returns scaled and croped images for media output
Used by image components in getMediaOutput. Tries to avoid scaling if not required (to keep gif animation intact)
Arguments
- $data
- $dim
- $type
 Details
 Details
- visibility
- public
- final
- false
- static
- true
getResponsiveImageVars
getResponsiveImageVars(
           $dimensions,  $imageFile
          )
        
        :
        Helper function that calculates vars needed by components with responsive images
Arguments
- $dimensions
- $imageFile
 Details
 Details
- visibility
- public
- final
- false
- static
- true
isValid
isValid(
           $id
          )
        
        :
        Helper function that can be used in Component implementing Kwf_Media_Output_IsValidInterface to check if the component is visible to the current user
Arguments
- $id
 Details
 Details
- visibility
- public
- final
- false
- static
- true
isValidImage
isValidImage(
           $id,  $type,  $className
          )
        
        :
        Checks if given type (starting with Kwf_Media::DONT_HASH_TYPE_PREFIX) should return an image by checking Kwf_Media_Image::getResponsiveWidthSteps of image
Arguments
- $id
- $type
- $className
 Details
 Details
- visibility
- public
- final
- false
- static
- true
