/**
* Set output content
*
* @param string $type data type
* @param array $value data value
* @return void
*/
public function setOutputContent($type = 'data', $value = array())
{
switch (strtolower($type)) {
case 'data':
$this->data = $value;
break;
case 'errors':
$this->errors = $value;
break;
case 'success':
$this->success = $value;
break;
case 'template':
$this->template = $value;
break;
case 'code':
parent::set_status_header($value);
$this->code = $value;
break;
case 'header':
$this->header = $value;
break;
case 'help':
$this->help = $value;
break;
case 'back_link':
$this->back_link = $value;
break;
case 'redirect':
$this->redirect = $value;
break;
}
}