PHP 클래스 UpdateModel, vanilla

상속: extends Gdn_Model
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$AddonSiteUrl URL to the addons site.

공개 메소드들

메소드 설명
analyzeAddon ( string $Path, boolean $ThrowError = true ) : array Check an addon's file to extract the addon information out of it.
compareAddons ( array $MyAddons, array $LatestAddons ) : boolean
findFiles ( string $path, array $fileNames ) : array Find a list of filenames in a folder or zip.
getAddonUpdates ( boolean $Enabled = false ) : array | boolean Deprecated.
getAddons ( boolean $Enabled = false ) : array Deprecated.
parseCoreVersion ( string $Path ) : string Parse the version out of the core's index.php file.
parseInfoArray ( string $Path, string $Variable = false ) : array | false Offers a quick and dirty way of parsing an addon's info array without using eval().
runStructure ( boolean $captureOnly = false ) Run the structure for all addons.

보호된 메소드들

메소드 설명
checkRequiredFields ( $info ) : array Check globally required fields in our addon info.

비공개 메소드들

메소드 설명
addAddon ( $Addon, &$Addons )
getInfoFiles ( string $Path, array $InfoPaths ) : array
getInfoZip ( string $Path, array $InfoPaths, boolean $TmpPath = false, boolean $ThrowError = true ) : array Open a zip archive and inspect its contents for the requested paths.

메소드 상세

analyzeAddon() 공개 정적인 메소드

Check an addon's file to extract the addon information out of it.
public static analyzeAddon ( string $Path, boolean $ThrowError = true ) : array
$Path string The path to the file.
$ThrowError boolean Whether or not to throw an exception if there is a problem analyzing the addon.
리턴 array An array of addon information.

checkRequiredFields() 보호된 정적인 메소드

Check globally required fields in our addon info.
protected static checkRequiredFields ( $info ) : array
$info
리턴 array $results

compareAddons() 공개 메소드

public compareAddons ( array $MyAddons, array $LatestAddons ) : boolean
$MyAddons array
$LatestAddons array
리턴 boolean

findFiles() 공개 정적인 메소드

Find a list of filenames in a folder or zip.
public static findFiles ( string $path, array $fileNames ) : array
$path string Folder or zip file to look in.
$fileNames array List of files to attempt to locate inside $path.
리턴 array

getAddonUpdates() 공개 메소드

Deprecated.
사용 중단:
public getAddonUpdates ( boolean $Enabled = false ) : array | boolean
$Enabled boolean Deprecated.
리턴 array | boolean Deprecated.

getAddons() 공개 메소드

Deprecated.
public getAddons ( boolean $Enabled = false ) : array
$Enabled boolean Deprecated.
리턴 array Deprecated.

parseCoreVersion() 공개 정적인 메소드

Parse the version out of the core's index.php file.
public static parseCoreVersion ( string $Path ) : string
$Path string The path to the index.php file.
리턴 string A string containing the version or empty if the file could not be parsed.

parseInfoArray() 공개 정적인 메소드

Offers a quick and dirty way of parsing an addon's info array without using eval().
public static parseInfoArray ( string $Path, string $Variable = false ) : array | false
$Path string The path to the info array.
$Variable string The name of variable containing the information.
리턴 array | false The info array or false if the file could not be parsed.

runStructure() 공개 메소드

The structure runs the addons in priority order so that higher priority addons override lower priority ones.
public runStructure ( boolean $captureOnly = false )
$captureOnly boolean Run the structure or just capture the SQL changes.

프로퍼티 상세

$AddonSiteUrl 공개적으로 프로퍼티

URL to the addons site.
public $AddonSiteUrl