public function restore($revision)
    {
        $revision = $this->revisions->find(array('revisionNum' => $revision->revisionNum));

        if ($revision) {
            $this->__restored = true;
            $this->setData(array(
                'name' => $revision->title,
                'body' => $revision->description,
                'exceprt' => $revision->excerpt,
            ), AnDomain::ACCESS_PROTECTED);
        }
    }
public function restore($revision)
    {
        $revision = $this->revisions->find(array('revisionNum' => $revision->revisionNum));

        if ($revision) {
            $this->__restored = true;
            $this->setData(array(
                'name' => $revision->title,
                'body' => $revision->description,
                'exceprt' => $revision->excerpt,
            ), AnDomain::ACCESS_PROTECTED);
        }
    }
public function restore ( $ revision ) { $ revision = $ this -> revisions -> find ( array ( 'revisionNum' => $ revision -> revisionNum ) ) ; if ( $ revision ) { $ this -> __restored = true ; $ this -> setData ( array ( 'name' => $ revision -> title , 'body' => $ revision -> description , 'exceprt' => $ revision -> excerpt , ) , AnDomain :: ACCESS_PROTECTED ) ; } }
Restore an article back to one of it's revision num.

@param int $revision
Restore an article back to one of it s revision num .