code/dataobjects/CdnImage.php
private function getDimensionsFromDB($dim = "string") {
        $imageDimensions = $this->ImageDim;
        if (!$imageDimensions) {
            return null;
        }
        if ($dim === 'string') {
            return $imageDimensions;
        }
        $widthAndHeight = explode('x', $imageDimensions);
        if (!isset($widthAndHeight[$dim])) {
            return null;
        }
        return (int)$widthAndHeight[$dim];
    }
private function getDimensionsFromDB($dim = "string") {
        $imageDimensions = $this->ImageDim;
        if (!$imageDimensions) {
            return null;
        }
        if ($dim === 'string') {
            return $imageDimensions;
        }
        $widthAndHeight = explode('x', $imageDimensions);
        if (!isset($widthAndHeight[$dim])) {
            return null;
        }
        return (int)$widthAndHeight[$dim];
    }
private function getDimensionsFromDB ( $ dim = "string" ) { $ imageDimensions = $ this -> ImageDim ; if ( ! $ imageDimensions ) { return null ; } if ( $ dim === 'string' ) { return $ imageDimensions ; } $ widthAndHeight = explode ( 'x' , $ imageDimensions ) ; if ( ! isset ( $ widthAndHeight [ $ dim ] ) ) { return null ; } return ( int ) $ widthAndHeight [ $ dim ] ; }
Get the dimensions of this Image.

@param string $dim If this is equal to "string", return the dimensions in string form,
if it is 0 return the height, if it is 1 return the width.
@return string|int|null
Get the dimensions of this Image .