private function isApproveFormat($format) { if ($this->html !== true && $format == 'html') { return false; } elseif ($this->api !== true && $format != 'html') { return false; } return true; }