Methods
__call()
__call($func, $args)
__construct 建出一個 Pix_Partial ,並且將路徑設定成 $path
__construct(string | null $path, array $options) : void
Parameters
$path
stringnull
$options
array
cache_prefix cache_id 要加入的字串
addCommonHelpers add common helpers
addCommonHelpers() : void
addHelper add static helper in Pix_Controller
addHelper(string $helper, array $methods, array $options) : void
Parameters
$helper
string
Helper name
$methods
array
$options
array
breakRender 在 partial 內呼叫 function ,呼叫此 function 時,整個 partial 前面已經生成的部分會照常被印出。
breakRender() : void
getNoCache 取得 nocache 是否開啟
getNoCache() : boolean
getPath 取出 Partial 的 path
getPath() : void
getTrimMode 取得 Trim Mode 是否開啟
getTrimMode() : boolean
noRender 在 partial 內呼叫 function ,呼叫此 function 時,整個 partial 前面已經生成的部分會被捨棄。
noRender() : void
partial 印出 $file 的內容,並且將 $data 的參數轉成 $this
partial(string $file, array | \Pix_Partial | null $data, array | string $options) : string
Parameters
$file
string
$options
arraystring
設定 或 cache id
Returns
string
setCacheWriteOnlyMode()
setCacheWriteOnlyMode($write_only)
setNoCache 是否不啟動 cache (預設啟動)
setNoCache(boolean $nocache) : void
Parameters
$nocache
boolean
setPath 將 Partial 自動讀取路徑設定為 $path
setPath(string $path) : void
setTrimMode 是否要啟動 Trim mode ,預設把每一行的前後空白拿掉
setTrimMode(boolean $trim_mode) : void
Parameters
$trim_mode
boolean
Properties
$_cache_prefix
$_cache_prefix
$alert_messages
$alert_messages