PHP 클래스 jQuery, atk4

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

공개 프로퍼티들

프로퍼티 타입 설명
$app App_Web
$chain_class Name of jQuery_Chain class
$included array

공개 메소드들

메소드 설명
addInclude ( string $file, string $ext = '.js' ) Locate javascript file and add it to HTML's head section.
addOnReady ( jQuery_Chain | string $js ) Add custom code into onReady section. Will be executed under $(function(){ .
addStaticInclude ( string $file, string $ext = '.js' ) Adds static includes
addStaticStylesheet ( string $file, string $ext = '.css', string $locate = 'css' ) Adds static stylesheet
addStylesheet ( string $file, string $ext = '.css', string $locate = 'css' ) Locate stylesheet file and add it to HTML's head section.
chain ( AbstractObject $object ) : jQuery_Chain [private] use $object->js() instead.
cutRender ( ) [private] When partial render is done, this function includes JS for rendered region.
getJS ( AbstractView $obj ) : string [private] Collect JavaScript chains from specified object and add them into onReady section.
init ( ) Initialization
postRender ( ) [private] .

메소드 상세

addInclude() 공개 메소드

Locate javascript file and add it to HTML's head section.
public addInclude ( string $file, string $ext = '.js' )
$file string
$ext string

addOnReady() 공개 메소드

. })
public addOnReady ( jQuery_Chain | string $js )
$js jQuery_Chain | string

addStaticInclude() 공개 메소드

Adds static includes
public addStaticInclude ( string $file, string $ext = '.js' )
$file string
$ext string

addStaticStylesheet() 공개 메소드

Adds static stylesheet
public addStaticStylesheet ( string $file, string $ext = '.css', string $locate = 'css' )
$file string
$ext string
$locate string

addStylesheet() 공개 메소드

Locate stylesheet file and add it to HTML's head section.
public addStylesheet ( string $file, string $ext = '.css', string $locate = 'css' )
$file string
$ext string
$locate string

chain() 공개 메소드

[private] use $object->js() instead.
public chain ( AbstractObject $object ) : jQuery_Chain
$object AbstractObject
리턴 jQuery_Chain

cutRender() 공개 메소드

[private] When partial render is done, this function includes JS for rendered region.
public cutRender ( )

getJS() 공개 메소드

[private] Collect JavaScript chains from specified object and add them into onReady section.
public getJS ( AbstractView $obj ) : string
$obj AbstractView
리턴 string

init() 공개 메소드

Initialization
public init ( )

postRender() 공개 메소드

. ?
public postRender ( )

프로퍼티 상세

$app 공개적으로 프로퍼티

public App_Web $app
리턴 App_Web

$chain_class 공개적으로 프로퍼티

Name of jQuery_Chain class
public $chain_class

$included 공개적으로 프로퍼티

public array $included
리턴 array