includes/managers/class-fs-plugin-manager.php
function store( $module = false, $flush = true ) {
			if ( false !== $module ) {
				$this->_module = $module;
			}

			$all_modules = $this->get_all_modules( $this->_module->type );
			$all_modules[ $this->_module->slug ] = $this->_module;

			$options_manager = $this->get_option_manager();
			$options_manager->set_option( $this->_module->type . 's', $all_modules, $flush );

			return $this->_module;
		}
function store( $module = false, $flush = true ) {
			if ( false !== $module ) {
				$this->_module = $module;
			}

			$all_modules = $this->get_all_modules( $this->_module->type );
			$all_modules[ $this->_module->slug ] = $this->_module;

			$options_manager = $this->get_option_manager();
			$options_manager->set_option( $this->_module->type . 's', $all_modules, $flush );

			return $this->_module;
		}
function store ( $ module = false , $ flush = true ) { if ( false !== $ module ) { $ this -> _module = $ module ; } $ all_modules = $ this -> get_all_modules ( $ this -> _module -> type ) ; $ all_modules [ $ this -> _module -> slug ] = $ this -> _module ; $ options_manager = $ this -> get_option_manager ( ) ; $ options_manager -> set_option ( $ this -> _module -> type . 's' , $ all_modules , $ flush ) ; return $ this -> _module ; }
Store plugin on local DB.

@author Vova Feldman (@svovaf)
@since  1.0.6

@param bool|FS_Plugin $module
@param bool           $flush

@return bool|\FS_Plugin
Store plugin on local DB .