src/libraries/models/Photo.php
/**
    * Does the opposite of $this->generateFragment.
    * Given a string fragment this will return it's parts as an array.
    * The $options must start with a width and height (i.e. 800x600)
    *
    * @param string $options Options for the photo such as crop (CR) and greyscale (BW)
    * @return array
    */
Does the opposite of $this->generateFragment.
Given a string fragment this will return it's parts as an array.
The $options must start with a width and height

@param string $options Options for the photo such as crop (CR) and greyscale (BW)
@return array
Does the opposite of $this - > generateFragment . Given a string fragment this will return it ' s parts as an array . The $options must start with a width and height @param string $options Options for the photo such as crop ( CR ) and greyscale ( BW ) @return array
public function generateFragmentReverse($options)
  {
    $options = explode('x', $options);
    $width = array_shift($options);
    $height = array_shift($options);
    $options = implode('x', $options);
    return array('width' => $width, 'height' => $height, 'options' => $options);
  }
public function generateFragmentReverse ( $ options ) { $ options = explode ( 'x' , $ options ) ; $ width = array_shift ( $ options ) ; $ height = array_shift ( $ options ) ; $ options = implode ( 'x' , $ options ) ; return array ( 'width' => $ width , 'height' => $ height , 'options' => $ options ) ; }
Does the opposite of $this->generateFragment.
Does the opposite of $this - > generateFragment .