original_string: public function fromZip($zip)
      {
          $this->data = null;
          $this->error = null;
          $this->renamed = false;
          $this->tempname = null;
          $this->module_id = null;
          $this->destination = null;
  
          if (!$this->setModuleId($zip)) {
              return $this->error;
          }
  
          if (!$this->extract()) {
              $this->rollback();
              return $this->error;
          }
  
          if (!$this->validate()) {
              $this->rollback();
              return $this->error;
          }
  
          if (!$this->backup()) {
              return $this->error;
          }
  
          return true;
      }
code: public function fromZip($zip)
      {
          $this->data = null;
          $this->error = null;
          $this->renamed = false;
          $this->tempname = null;
          $this->module_id = null;
          $this->destination = null;
  
          if (!$this->setModuleId($zip)) {
              return $this->error;
          }
  
          if (!$this->extract()) {
              $this->rollback();
              return $this->error;
          }
  
          if (!$this->validate()) {
              $this->rollback();
              return $this->error;
          }
  
          if (!$this->backup()) {
              return $this->error;
          }
  
          return true;
      }
code_tokens: public function fromZip ( $ zip ) { $ this -> data = null ; $ this -> error = null ; $ this -> renamed = false ; $ this -> tempname = null ; $ this -> module_id = null ; $ this -> destination = null ; if ( ! $ this -> setModuleId ( $ zip ) ) { return $ this -> error ; } if ( ! $ this -> extract ( ) ) { $ this -> rollback ( ) ; return $ this -> error ; } if ( ! $ this -> validate ( ) ) { $ this -> rollback ( ) ; return $ this -> error ; } if ( ! $ this -> backup ( ) ) { return $ this -> error ; } return true ; }
docstring: Installs a module from a ZIP file
  @param string $zip
  @return string|bool
docstring_tokens: Installs a module from a ZIP file