Example #1
0
 /**
  * Turn contents into a string of the correct format
  *
  * @param   string  $client
  * @param   string  $group
  * @return  string
  */
 public function toContent($contents, $format)
 {
     if (!$contents instanceof Registry) {
         $contents = new Registry($contents);
     }
     return $contents->toString($format, array('format' => 'array'));
 }