PHP 클래스 SVGGraphJavascript, GotCms

파일 보기 프로젝트 열기: gotcms/gotcms

보호된 프로퍼티들

프로퍼티 타입 설명
$comments
$functions
$onload
$variables

공개 메소드들

메소드 설명
AddEventHandler ( &$array, $evt, $code ) Adds an inline event handler to an element's array
AddFunction ( $name ) Adds a javascript function
AddOverlay ( $from, $to ) Add an overlaid copy of an element, with opacity of 0
AutoHide ( &$element ) Makes something auto-hide
GetFunctions ( ) Returns the functions as Javascript code
GetOnload ( ) Returns the onload code to use for the SVG
GetVariables ( ) Returns the variables (and comments) as Javascript code
InsertComment ( $details ) Insert a comment into the Javascript section - handy for debugging!
InsertFunction ( $name, $fn ) Inserts a Javascript function into the list
InsertVariable ( $var, $value, $more = NULL, $quote = TRUE ) Adds a Javascript variable - use $value:$more for assoc - use NULL:$more for array
SetDraggable ( &$element ) Makes an item draggable
SetFader ( &$element, $in, $out, $target = NULL, $duplicate = FALSE ) Sets the fader for an element
SetTooltip ( &$element, $text, $duplicate = FALSE ) Sets the tooltip for an element
__construct ( &$settings, &$graph ) Constructor takes array of settings and graph instance as arguments
__get ( $name ) Return the settings as properties

메소드 상세

AddEventHandler() 공개 메소드

Adds an inline event handler to an element's array
public AddEventHandler ( &$array, $evt, $code )

AddFunction() 공개 메소드

Adds a javascript function
public AddFunction ( $name )

AddOverlay() 공개 메소드

Add an overlaid copy of an element, with opacity of 0
public AddOverlay ( $from, $to )

AutoHide() 공개 메소드

Makes something auto-hide
public AutoHide ( &$element )

GetFunctions() 공개 메소드

Returns the functions as Javascript code
public GetFunctions ( )

GetOnload() 공개 메소드

Returns the onload code to use for the SVG
public GetOnload ( )

GetVariables() 공개 메소드

Returns the variables (and comments) as Javascript code
public GetVariables ( )

InsertComment() 공개 메소드

Insert a comment into the Javascript section - handy for debugging!
public InsertComment ( $details )

InsertFunction() 공개 메소드

Inserts a Javascript function into the list
public InsertFunction ( $name, $fn )

InsertVariable() 공개 메소드

Adds a Javascript variable - use $value:$more for assoc - use NULL:$more for array
public InsertVariable ( $var, $value, $more = NULL, $quote = TRUE )

SetDraggable() 공개 메소드

Makes an item draggable
public SetDraggable ( &$element )

SetFader() 공개 메소드

Sets the fader for an element
public SetFader ( &$element, $in, $out, $target = NULL, $duplicate = FALSE )

SetTooltip() 공개 메소드

Sets the tooltip for an element
public SetTooltip ( &$element, $text, $duplicate = FALSE )

__construct() 공개 메소드

Constructor takes array of settings and graph instance as arguments
public __construct ( &$settings, &$graph )

__get() 공개 메소드

Return the settings as properties
public __get ( $name )

프로퍼티 상세

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

protected $comments

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

protected $functions

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

protected $onload

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

protected $variables