src/Gnkw/Http/Resource.php
public function content($arg=null)
	{
		switch($this->format)
		{
			case 'json':
				if(!isset($arg))
				{
					$arg = false;
				}
				return $this->json($arg);
				break;
			case 'xml' :
				if(!isset($arg))
				{
					$arg = 'dom';
				}
				return $this->xml($arg);
				break;
			default :
				return $this->getContent();
				break;
		}
	}
public function content($arg=null)
	{
		switch($this->format)
		{
			case 'json':
				if(!isset($arg))
				{
					$arg = false;
				}
				return $this->json($arg);
				break;
			case 'xml' :
				if(!isset($arg))
				{
					$arg = 'dom';
				}
				return $this->xml($arg);
				break;
			default :
				return $this->getContent();
				break;
		}
	}
public function content ( $ arg = null ) { switch ( $ this -> format ) { case 'json' : if ( ! isset ( $ arg ) ) { $ arg = false ; } return $ this -> json ( $ arg ) ; break ; case 'xml' : if ( ! isset ( $ arg ) ) { $ arg = 'dom' ; } return $ this -> xml ( $ arg ) ; break ; default : return $ this -> getContent ( ) ; break ; } }
Get the content of the ressource
Return a result depending on the type of the resource
@param mixed $arg The possible argument(s) of the method to call
@return mixed
Get the content of the ressource Return a result depending on the type of the resource