src/libraries/models/Photo.php
/**
    * Generates the "fragment" for the photo version.
    * This fragment is used in the file name as well as the database key.
    *
    * @param int $width Width of the photo to generate
    * @param int $height Height of the photo to generate
    * @param string $options Options for the photo such as crop (CR) and greyscale (BW)
    * @return string
    */
Generates the "fragment" for the photo version.
This fragment is used in the file name as well as the database key.

@param int $width Width of the photo to generate
@param int $height Height of the photo to generate
@param string $options Options for the photo such as crop (CR) and greyscale (BW)
@return string
Generates the " fragment " for the photo version . This fragment is used in the file name as well as the database key . @param int $width Width of the photo to generate @param int $height Height of the photo to generate @param string $options Options for the photo such as crop ( CR ) and greyscale ( BW ) @return string
public function generateFragment($width, $height, $options = null)
  {
    $fragment = "{$width}x{$height}";
    if(!empty($options))
      $fragment .= "x{$options}";
    return $fragment;
  }
public function generateFragment ( $ width , $ height , $ options = null ) { $ fragment = " { $ width } x { $ height } " ; if ( ! empty ( $ options ) ) $ fragment .= " x { $ options } " ; return $ fragment ; }
Generates the "fragment" for the photo version.
Generates the " fragment " for the photo version .