PHP 클래스 Ip\Internal\Plugins\Helper

파일 보기 프로젝트 열기: impresspages/impresspages 1 사용 예제들

공개 메소드들

메소드 설명
getOptionsForm ( string $pluginName, Ip\Form $form, array $options )
getPluginData ( $pluginName )
jsonCleanDecode ( string $json, boolean $assoc = false, integer $depth = 512, integer $options ) : string Clean comments of json content and decode it with json_decode().
pluginPropertiesForm ( $pluginName )
pluginPropertiesFormFields ( string $pluginName, Ip\Form $form ) : Ip\Form
removeDir ( $dir, $depth )
savePluginOptions ( $pluginName, $data )

비공개 메소드들

메소드 설명
removeTrailingSlash ( $path )

메소드 상세

getOptionsForm() 공개 정적인 메소드

public static getOptionsForm ( string $pluginName, Ip\Form $form, array $options )
$pluginName string
$form Ip\Form
$options array

getPluginData() 공개 정적인 메소드

public static getPluginData ( $pluginName )

jsonCleanDecode() 공개 정적인 메소드

Work like the original php json_decode() function with the same params
public static jsonCleanDecode ( string $json, boolean $assoc = false, integer $depth = 512, integer $options ) : string
$json string The json string being decoded
$assoc boolean When TRUE, returned objects will be converted into associative arrays.
$depth integer User specified recursion depth. (>=5.3)
$options integer Bitmask of JSON decode options. (>=5.4)
리턴 string

pluginPropertiesForm() 공개 정적인 메소드

public static pluginPropertiesForm ( $pluginName )

pluginPropertiesFormFields() 공개 정적인 메소드

public static pluginPropertiesFormFields ( string $pluginName, Ip\Form $form ) : Ip\Form
$pluginName string
$form Ip\Form
리턴 Ip\Form $form

removeDir() 공개 정적인 메소드

public static removeDir ( $dir, $depth )

savePluginOptions() 공개 정적인 메소드

public static savePluginOptions ( $pluginName, $data )