public function getStatus($doiValue)
    {
        // validate client
        if (!$this->isClientAuthenticated()) {
            $this->setResponse('responsecode', 'MT009');
            return false;
        }

        //get the doi info
        $doi = $this->doiRepo->getByID($doiValue);
        $this->setResponse('doi', $doiValue);

        if ($doi === null) {
            $this->setResponse('responsecode', 'MT011');
            return true;
        }

        // check if this client owns this doi
        if (!$this->isDoiAuthenticatedClients($doiValue, $doi->client_id)) {
            $this->setResponse('responsecode', 'MT008');
            $this->setResponse('verbosemessage', $doiValue . " is not owned by " . $this->getAuthenticatedClient()->client_name);
            return false;
        }

        $this->setResponse('responsecode', 'MT019');
        $this->setResponse('verbosemessage', $doi->status);

        return true;

    }
public function getStatus($doiValue)
    {
        // validate client
        if (!$this->isClientAuthenticated()) {
            $this->setResponse('responsecode', 'MT009');
            return false;
        }

        //get the doi info
        $doi = $this->doiRepo->getByID($doiValue);
        $this->setResponse('doi', $doiValue);

        if ($doi === null) {
            $this->setResponse('responsecode', 'MT011');
            return true;
        }

        // check if this client owns this doi
        if (!$this->isDoiAuthenticatedClients($doiValue, $doi->client_id)) {
            $this->setResponse('responsecode', 'MT008');
            $this->setResponse('verbosemessage', $doiValue . " is not owned by " . $this->getAuthenticatedClient()->client_name);
            return false;
        }

        $this->setResponse('responsecode', 'MT019');
        $this->setResponse('verbosemessage', $doi->status);

        return true;

    }
public function getStatus ( $ doiValue ) { // validate client if ( ! $ this -> isClientAuthenticated ( ) ) { $ this -> setResponse ( 'responsecode' , 'MT009' ) ; return false ; } //get the doi info $ doi = $ this -> doiRepo -> getByID ( $ doiValue ) ; $ this -> setResponse ( 'doi' , $ doiValue ) ; if ( $ doi === null ) { $ this -> setResponse ( 'responsecode' , 'MT011' ) ; return true ; } // check if this client owns this doi if ( ! $ this -> isDoiAuthenticatedClients ( $ doiValue , $ doi -> client_id ) ) { $ this -> setResponse ( 'responsecode' , 'MT008' ) ; $ this -> setResponse ( 'verbosemessage' , $ doiValue . " is not owned by " . $ this -> getAuthenticatedClient ( ) -> client_name ) ; return false ; } $ this -> setResponse ( 'responsecode' , 'MT019' ) ; $ this -> setResponse ( 'verbosemessage' , $ doi -> status ) ; return true ; }
get status of the DOI

@param $doiValue
@return bool
get status of the DOI