PHP 인터페이스 Inpsyde\MultilingualPress\Asset\Script

부터: 3.0.0
상속: extends Inpsyde\MultilingualPress\Asset\Asset
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
add_data ( string $object_name, array $data ) : static Makes the given data available for the script.
clear_data ( ) : static Clears the data so it won't be output another time.
data ( ) : array[] Returns all data to be made available for the script.

메소드 상세

add_data() 공개 메소드

Makes the given data available for the script.
부터: 3.0.0
public add_data ( string $object_name, array $data ) : static
$object_name string The name of the JavaScript variable holding the data.
$data array The data to be made available for the script.
리턴 static Script instance.

clear_data() 공개 메소드

Clears the data so it won't be output another time.
부터: 3.0.0
public clear_data ( ) : static
리턴 static Script instance.

data() 공개 메소드

Returns all data to be made available for the script.
부터: 3.0.0
public data ( ) : array[]
리턴 array[] Data to be made available for the script.