controllers/Credential.php
protected function setCredential($credential_id)
    {
        if (is_numeric($credential_id)) {
            $this->data_credential = $this->credential->get($credential_id);
            if (empty($this->data_credential)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCredential($credential_id)
    {
        if (is_numeric($credential_id)) {
            $this->data_credential = $this->credential->get($credential_id);
            if (empty($this->data_credential)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCredential ( $ credential_id ) { if ( is_numeric ( $ credential_id ) ) { $ this -> data_credential = $ this -> credential -> get ( $ credential_id ) ; if ( empty ( $ this -> data_credential ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
Sets the credential data
@param $credential_id
Sets the credential data