PHP Class Updates_model, TastyIgniter

Inheritance: extends TI_Model
Mostrar archivo Open project: tastyigniter/tastyigniter

Protected Properties

Property Type Description
$endpoint
$updated_files

Public Methods

Method Description
downloadUpdate ( $update_type, $update = '' )
flushUpdatedFiles ( )
getRemoteData ( $url, $options = [], $params = [] )
getRemoteVersion ( $url )
getUpdates ( $refresh )
getVersions ( $extensions = [], $refresh = FALSE )
installCoreUpdate ( $update_version, $update_file )
lastVersionCheck ( )
update ( $update_type, $update_name = '', $update_version = '' )

Protected Methods

Method Description
copyTempFiles ( $source, $destination )
isFilesIdentical ( $file_one, $file_two )
removeTempFiles ( $files = [], $from_folder = '' )

Method Details

copyTempFiles() protected method

protected copyTempFiles ( $source, $destination )

downloadUpdate() public method

public downloadUpdate ( $update_type, $update = '' )

flushUpdatedFiles() public method

public flushUpdatedFiles ( )

getRemoteData() public method

public getRemoteData ( $url, $options = [], $params = [] )

getRemoteVersion() public method

public getRemoteVersion ( $url )

getUpdates() public method

public getUpdates ( $refresh )

getVersions() public method

public getVersions ( $extensions = [], $refresh = FALSE )

installCoreUpdate() public method

public installCoreUpdate ( $update_version, $update_file )

isFilesIdentical() protected method

protected isFilesIdentical ( $file_one, $file_two )

lastVersionCheck() public method

public lastVersionCheck ( )

removeTempFiles() protected method

protected removeTempFiles ( $files = [], $from_folder = '' )

update() public method

public update ( $update_type, $update_name = '', $update_version = '' )

Property Details

$endpoint protected_oe property

protected $endpoint

$updated_files protected_oe property

protected $updated_files