PHP 클래스 ProcessWire, ProcessWire

Gets ProcessWire's API ready for use
상속: extends Wire
파일 보기 프로젝트 열기: ryancramerdesign/ProcessWire 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_fuel Fuel | null This will replace the static $fuel from the Wire class in PW 3.0. Currently it is just here as a placeholder.
$debug boolean Whether debug mode is on or off
$pathSave string Saved path, for includeFile() method
$updater SystemUpdater | null

공개 메소드들

메소드 설명
__call ( $method, $arguments )
__construct ( Config $config ) Given a Config object, instantiates ProcessWire and it's API
__toString ( )
load ( Config $config ) Load's ProcessWire using the supplied Config and populates all API fuel
set ( $key, $value, boolean $lock = false ) Set a new API variable
setStatus ( $status ) Set the system status to one of the ProcessWire::status* constants

보호된 메소드들

메소드 설명
___finished ( ) Hookable ready for anyone that wants to hook when the request is finished
___init ( ) Hookable init for anyone that wants to hook immediately before any autoload modules initialized or after all modules initialized
___ready ( ) Hookable ready for anyone that wants to hook immediately before any autoload modules ready or after all modules ready
config ( Config $config ) Populate ProcessWire's configuration with runtime and optional variables
getHttpHost ( Config $config ) : string Safely determine the HTTP host
includeFile ( $file ) : boolean Include a PHP file, giving it all PW API varibles in scope
initVar ( string $name, Wire $value ) Initialize the given API var

메소드 상세

___finished() 보호된 메소드

Hookable ready for anyone that wants to hook when the request is finished
protected ___finished ( )

___init() 보호된 메소드

Hookable init for anyone that wants to hook immediately before any autoload modules initialized or after all modules initialized
protected ___init ( )

___ready() 보호된 메소드

Hookable ready for anyone that wants to hook immediately before any autoload modules ready or after all modules ready
protected ___ready ( )

__call() 공개 메소드

public __call ( $method, $arguments )

__construct() 공개 메소드

Given a Config object, instantiates ProcessWire and it's API
public __construct ( Config $config )
$config Config

__toString() 공개 메소드

public __toString ( )

config() 보호된 메소드

$param Config $config
protected config ( Config $config )
$config Config

getHttpHost() 보호된 메소드

Safely determine the HTTP host
protected getHttpHost ( Config $config ) : string
$config Config
리턴 string

includeFile() 보호된 메소드

File is executed in the directory where it exists.
protected includeFile ( $file ) : boolean
$file Full path and filename
리턴 boolean True if file existed and was included, false if not.

initVar() 보호된 메소드

Initialize the given API var
protected initVar ( string $name, Wire $value )
$name string
$value Wire

load() 공개 메소드

Load's ProcessWire using the supplied Config and populates all API fuel
public load ( Config $config )
$config Config

set() 공개 메소드

Alias of $this->wire(), but for setting only, for syntactic convenience. i.e. $this->wire()->set($key, $value);
public set ( $key, $value, boolean $lock = false )
$key API variable name to set
$value Value of API variable
$lock boolean Whether to lock the value from being overwritten

setStatus() 공개 메소드

This also triggers init/ready functions for modules, when applicable.
public setStatus ( $status )
$status

프로퍼티 상세

$_fuel 보호되어 있는 프로퍼티

This will replace the static $fuel from the Wire class in PW 3.0. Currently it is just here as a placeholder.
protected Fuel|null $_fuel
리턴 Fuel | null

$debug 보호되어 있는 프로퍼티

Whether debug mode is on or off
protected bool $debug
리턴 boolean

$pathSave 보호되어 있는 프로퍼티

Saved path, for includeFile() method
protected string $pathSave
리턴 string

$updater 보호되어 있는 프로퍼티

protected SystemUpdater|null $updater
리턴 SystemUpdater | null