html
[ class tree: html ] [ index: html ] [ all elements ]

Class: JavaScript

Source Location: /html/JavaScript.class.php

Class Overview


Setting up javascripts.


Author(s):

Version:

  • 0.2.81

Copyright:

  • Copyright (c) 2004 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods



Class Details

[line 47]
Setting up javascripts.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.2.81
copyright:  

Copyright (c) 2004 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$body =  ""

[line 55]

The content of the javascript.



Tags:

access:  private

Type:   string


[ Top ]



Class Methods


method add [line 1783]

void add( string $string)

Adds a string to the content of this javascript.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


Parameters:

string   $string  

[ Top ]

method get [line 1801]

string get( [boolean $bool_no_html_comments = false])

Returns a generated string based on the attributes of this object.



Tags:

version:  1.01
since:  0.1.0
access:  public


Parameters:

boolean   $bool_no_html_comments   If this is set to true, there will be no html-comments added at first and last script line.

[ Top ]

method getBodyIsHorizontallyScrollable [line 1016]

string getBodyIsHorizontallyScrollable( [boolean $withJSdeclaration = false])

Returns a function to proof whether the document is scrollable in horizontally direction.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.6
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getBodyIsVerticallyScrollable [line 950]

string getBodyIsVerticallyScrollable( [boolean $withJSdeclaration = false])

Returns a function to proof whether the document is scrollable in vertically direction.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.6
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getGetInnerWindowHeight [line 1232]

string getGetInnerWindowHeight( [boolean $withJSdeclaration = false])

Returns a function to get the value of the inner window height.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.6
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getGetInnerWindowWidth [line 1153]

string getGetInnerWindowWidth( [boolean $withJSdeclaration = false])

Returns a function to get the value of the inner window width.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.7
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getInArray [line 1404]

string getInArray( [boolean $withJSdeclaration = false])

Returns a function to check if a given array contains the given value.

It has the same behavior like the function "in_array" in php.




Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.2.1
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getIsAncestorOf [line 1469]

string getIsAncestorOf( [boolean $withJSdeclaration = false])

Returns a function to check if a given HTML-element includes another HTML-element.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.2.2
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getMD5 [line 144]

string getMD5( [boolean $withJSdeclaration = false])

Returns a function to encode a string to md5.



Tags:

author:  Henri Torgemane (Javasript)
author:  Daniel Plücken <daniel@debakel.net> (only include here)
author:  Ralf Mieke <ralf@miekenet.de> (Javascript modifications)
version:  1.0
copyright:  Copyright (c) 1996 Henri Torgemane
since:  0.2.3
access:  public
license:  see


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getSerialize [line 764]

string getSerialize( [boolean $withJSdeclaration = false])

Returns a function to serialize arrays like in php.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
deprecated:  Use the js library jslib/phpserializer.js and jslib/utf.js
since:  0.2.2
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getStrRepeat [line 1081]

string getStrRepeat( [boolean $withJSdeclaration = false])

Returns a function to repeat a string given times.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.2
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getTypeOf [line 584]

string getTypeOf( [boolean $withJSdeclaration = false])

Returns a function to inspect the type of a data.



Tags:

version:  1.0
see:  http://javascript.crockford.com/remedial.html
since:  0.2.8
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method getUnserialize [line 877]

void getUnserialize( [boolean $withJSdeclaration = false])

Returns a function to unserialize arrays like in php.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
deprecated:  Use the js library jslib/phpserializer.js and jslib/utf.js
since:  0.2.2
access:  public


Parameters:

boolean   $withJSdeclaration  

[ Top ]

method setArrayUniqueInsert [line 1532]

void setArrayUniqueInsert( )

Sets up a function to insert a record into an array only if the record does not already exists in the array.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.7
access:  public


[ Top ]

method setEmpty [line 69]

void setEmpty( )

Sets up a function to check if a given variable is empty. It has the same behavior like the function "empty" in php.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method setFindPosX [line 1562]

void setFindPosX( )

Sets up a function to get the x-position of an html-element.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.9
access:  public


[ Top ]

method setFindPosY [line 1601]

void setFindPosY( )

Sets up a function to get the y-position of an html-element.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.9
access:  public


[ Top ]

method setGetInnerWindowHeight [line 1288]

void setGetInnerWindowHeight( )

Sets up a function to get the value of the inner window height.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.6
access:  public


[ Top ]

method setGetInnerWindowWidth [line 1209]

void setGetInnerWindowWidth( )

Sets up a function to get the value of the inner window width.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.7
access:  public


[ Top ]

method setInArray [line 1381]

void setInArray( )

Sets up a function to check if a given array contains the given value.

It has the same behavior like the function "in_array" in php.




Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.8
access:  public


[ Top ]

method setIsAncestorOf [line 1445]

void setIsAncestorOf( )

Sets up a function to check if a given HTML-element includes another HTML-element.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.2.2
access:  public


[ Top ]

method setLeadingZeros [line 1311]

void setLeadingZeros( )

Sets up a function to fill a given string with zeros until it has the count of given length.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.5
access:  public


[ Top ]

method setMD5 [line 110]

void setMD5( )

Sets up a function to encode a string to md5.



Tags:

author:  Henri Torgemane (Javasript)
author:  Daniel Plücken <daniel@debakel.net>
author:  Ralf Mieke <ralf@miekenet.de> (Javascript modifications)
version:  1.0
copyright:  Copyright (c) 1996 Henri Torgemane
since:  0.2.3
access:  public
license:  see


[ Top ]

method setNumberFormat [line 1644]

void setNumberFormat( )

Returns a function that has the same behaviour like the same named php-function.



Tags:

author:  Daniel Plücken <daniel@debakel.net> (only include here)
author:  Frank Olschewski <info.2004-03-27@fobit.de> (Javasript)
version:  1.0
copyright:  Copyright (c) Frank Olschewski
see:  http://www.fobit.com
since:  0.2.4
access:  public


[ Top ]

method setOpenCentredWindow [line 1342]

void setOpenCentredWindow( )

Sets up a function to open a centred browser window.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.2
access:  public


[ Top ]

method setSerialize [line 739]

void setSerialize( )

Sets up a function to serialize arrays like in php.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
deprecated:  Use the js library jslib/phpserializer.js and jslib/utf.js
since:  0.2.2
access:  public


[ Top ]

method setStateStyle [line 1753]

void setStateStyle( )

incomplete.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.9
access:  public


[ Top ]

method setStrRepeat [line 1130]

void setStrRepeat( )

Sets up a function to repeat a given string given times. It has the same behavior like the function "str_repeat" in php.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.5
access:  public


[ Top ]

method setSwapStyle [line 1709]

void setSwapStyle( )

incomplete.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.9
access:  public


[ Top ]

method setTypeOf [line 713]

void setTypeOf( )

Sets up a function to inspect the type of data.



Tags:

version:  1.0
see:  http://javascript.crockford.com/remedial.html
since:  0.2.8
access:  public


[ Top ]

method setUnserialize [line 852]

void setUnserialize( )

Sets up a function to unserialize arrays like in php.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
deprecated:  Use the js library jslib/phpserializer.js and jslib/utf.js
since:  0.2.2
access:  public


[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:13:38 +0200 by phpDocumentor 1.4.1