Class JavaScriptConsole (namespace Nette\Web)


JavaScript output console.

  1. 1:  $js new JavaScriptConsole;
  2. 2:  $js->jQuery('table tr:eq(2) img')
  3. 3:          ->css('z-index'1000)
  4. 4:          ->animate(array('top' => '100px'));
  5. 5:  
  6. 6:  $js->fifteen->move(56);
  7. 7:  
  8. 8:  $js->fifteen->partialId '';
  9. 9:  $js->flush();

Object
   |
   --JavaScriptConsole
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Web/JavaScriptConsole.php (line 46)
Public Method Summary
void
flush ()
JavaScript
raw (mixed $arg)
Appends user expressions.
JavaScript
__call (string $method, array $args)
Calls JavaScript function.
JavaScript
__get (string $name)
Returns JavaScript property value.
void
__set (string $name, mixed $value)
Sets value of a JavaScript property.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 56

flush

public void flush ()

Output
void  

line 110

raw

public JavaScript raw (mixed $arg)

Appends user expressions.

Input
mixed $arg one or more parameters
Output
JavaScript  

line 97

__call

public JavaScript __call (string $method, array $args)

Calls JavaScript function.

Input
string $method method name
array $args arguments
Output
JavaScript  

line 83

__get

public JavaScript & __get (string $name)

Returns JavaScript property value.

Input
string $name property name
Output
JavaScript  

line 70

__set

public void __set (string $name, mixed $value)

Sets value of a JavaScript property.

Input
string $name property name
mixed $value property value
Output
void