models/Credential.php
public function update($id, array $data)
    {
        $data['modified'] = GC_TIME;
        return (bool) $this->db->update('module_gapi_credential', $data, array('credential_id' => $id));
    }
public function update($id, array $data)
    {
        $data['modified'] = GC_TIME;
        return (bool) $this->db->update('module_gapi_credential', $data, array('credential_id' => $id));
    }
public function update ( $ id , array $ data ) { $ data [ 'modified' ] = GC_TIME ; return ( bool ) $ this -> db -> update ( 'module_gapi_credential' , $ data , array ( 'credential_id' => $ id ) ) ; }
Updates a credential
@param integer $id
@param array $data
@return boolean
Updates a credential