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;
    }
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;
    }
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 ; }
Installs a module from a ZIP file
@param string $zip
@return string|bool
Installs a module from a ZIP file