File: base.inc.php


The Abstract Base Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: AnObject

Constructor: ()


Class: BaseClass

Method: void loadSettings()


Method: void loadColumns()


Method: void loadTables()


File: databaseconfig.inc.php


The Abstract Database Classes and the Storage Tier Configuration

File: database.inc.php


The Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: Database

The Database class is an abstract class for the classes that support the supported Database Management Systems. When using the Database class the following methods and properties are available. When using a class for a specific Database Management System then it is possible that more functionality is available. Check the sources of phpbase if you want to know more about this extra functionality. Also check out the databaseconfig.inc.php file if you want to configure the databases objects and their Database Management Systems (Change the class of wich the database extends).

Property:debug


type: property

Method: sqlresult query()


Executes a query on the databases and returns the result

Method: Integer num_fields()



Arg #0: res The queryresult

Method: String unQuoteString()



Arg #0: str The string to unquote

Method: Integer num_rows()


Not reliable when using ODBC for an unknown reason
Arg #0: res The queryresult

Method: void escape_str()



Arg #0: str The string to escape

Method: Array[] fetchArray()



Arg #0: res The queryresult to fetch from

Method: void close()


Method: TransactionID startTransaction()


Method: void commitTransaction()



Arg #0: TransactionID id

Method: void abortTransaction()



Arg #0: TransactionID id

File: database_odbc_compat.inc.php


Some ODBC functionality to bridge PHP versions
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

File: dbabstract.inc.php


The AbstractObjects Module Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Table: cats

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | des | varchar(100) | YES | | NULL | | | inherited | int(11) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

File: dbgraph.inc.php


The Graph Module Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

File: link.inc.php


The Link Module Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Table: linkcats

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | inherited | int(11) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

Table: linkitems

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | url | varchar(255) | YES | | NULL | | | des | varchar(255) | YES | | NULL | | | title | varchar(255) | YES | | NULL | | | date | datetime | YES | | NULL | | | person | varchar(50) | YES | | NULL | | | inherited | int(11) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

File: dbnews.inc.php


The News Module Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

TODO: createNewsCat


difficulty: 10

Table: newscats

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | inherited | int(11) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

Table: newsreplyitems

+---------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | content | blob | YES | | NULL | | | person | varchar(50) | YES | | NULL | | | anon | varchar(100) | YES | | NULL | | | parent | varchar(50) | YES | | NULL | | | date | datetime | YES | | NULL | | +---------+--------------+------+-----+---------+-------+

TODO: setNewsReplyItemFields


difficulty: 10
update the replyitems who have parent set to $this->id too

Table: newsitems

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | content | blob | YES | | NULL | | | subject | varchar(255) | YES | | NULL | | | date | datetime | YES | | NULL | | | person | varchar(50) | YES | | NULL | | | anon | varchar(100) | YES | | NULL | | | inherited | int(11) | YES | | NULL | | | image | varchar(255) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

TODO: setNewsItemFields


difficulty: 10
Set the replies to the new id if the ID changes

File: dbsales.inc.php


The Sales Module Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Table: articlecats

+-----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | inherited | int(11) | YES | | NULL | | +-----------+-------------+------+-----+---------+-------+

Table: articles

+-----------+---------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+---------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | name | varchar(255) | YES | | NULL | | | price | decimal(28,4) | YES | | NULL | | | vat | varchar(50) | YES | | NULL | | | profit | decimal(28,4) | YES | | NULL | | | inherited | int(11) | YES | | NULL | | +-----------+---------------+------+-----+---------+-------+

Table: articlesdes

+-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | id | varchar(50) | YES | PRI | NULL | | | item | varchar(50) | YES | | NULL | | | des | blob | YES | | NULL | | +-------+-------------+------+-----+---------+-------+

Table: vats

+-----------+---------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+---------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | per | decimal(28,4) | YES | | NULL | | | des | blob | YES | | NULL | | | inherited | int(11) | YES | | NULL | | +-----------+---------------+------+-----+---------+-------+

Table: orders

+--------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------+-------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | person | varchar(50) | YES | | NULL | | | date | datetime | YES | | NULL | | +--------+-------------+------+-----+---------+-------+

Table: orderedarticles

+----------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+-------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | theorder | varchar(50) | YES | | NULL | | | article | varchar(50) | YES | | NULL | | +----------+-------------+------+-----+---------+-------+

File: dbuser.inc.php


The Authentication and User Module Storage Tier
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Table: users

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | username | varchar(100) | YES | | NULL | | | id | varchar(50) | | PRI | | | | adres | varchar(200) | YES | | NULL | | | place | varchar(100) | YES | | NULL | | | zipcode | varchar(50) | YES | | NULL | | | email | varchar(50) | YES | | NULL | | | phone | varchar(50) | YES | | NULL | | | fax | varchar(50) | YES | | NULL | | | inherited | int(11) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

Table: persons

+-----------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+-------+ | id | varchar(50) | | PRI | | | | pwd | varchar(50) | YES | | NULL | | | inherited | int(11) | YES | | NULL | | +-----------+--------------+------+-----+---------+-------+

Table: permissions

+------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+--------------+------+-----+---------+----------------+ | id | int(11) | | PRI | NULL | auto_increment | | userid | varchar(50) | YES | | NULL | | | permission | varchar(200) | YES | | NULL | | +------------+--------------+------+-----+---------+----------------+

File: functions.inc.php


Some Non-OOP Functions
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Function: String prepareCookie()



Arg #0: String str

Function: String removeSpaces()



Arg #0: String str

Function: String unEscapetring()



Arg #0: String str

Function: String getIpOfUser()


Function: imgUrl boolToTree()



Arg #0: Boolean b

Function: imgUrl boolToTree2()



Arg #0: Boolean b

Function: imgUrl clickHere()


Function: String urlsToLinks()



Arg #0: String str

Function: DateTime unix_date()



Arg #0: MySQLTimeStamp t

Function: DateTime mysql_date()



Arg #0: UnixTimeStamp t
uniqueKey

Arg #0: Long value

Function: Long sround()



Arg #0: Long value

Function: String uniqueKey()


Function: String stringNot()



Arg #0: String Boolean

Function: void savelogin()


Function: void forgetlogin()


Function: killsPage Unauthorized()


Function: String reqPage()


Returns the requested page-url (not a complete url, only the page and the arguments that where added the the url-bar of the browser).

Function: String refUrl()


Returns the referer url of the browser of the user. So the url where the user came from.

Function: String urlAtUser()


Returns the url the way it most likely is in the browser of the user.

Function: String argvToHidden()



Arg #0: Boolean cookies Process cookies too
Arg #0: String quote The quote-sign to use Returns a string containing input type=hidden tags with name is the name of an argument which was received by the server and value is the value of that argument. If the first functionargument is true then also the cookies are added to this string. The string will be \n delimited and no form tag is added. If a second functionargument is given then this argument is used for forming the quotes, because most JavaScripts work with single quote the default (if this argument is not added to the function) is a singlequote.

Function: String argvToCompleteUrl()



Arg #0: Boolean cookies Process cookies too Returns a url with protocol and server from all the arguments which the server has received. If the first functionargument is true then also the cookies will be added to the url Everything afther the = of the arguments is urlencoded.If the 2e and 3th arguments are set then these will be added. 2e is the name and 3th is the value

Function: String argvToUrl()



Arg #0: Boolean cookies Process cookies too Returns a url from all the arguments which the server has received. If the first functionargument is true then also the cookies will be added to the url Everything afther the = of the arguments is urlencoded. If the 2e and 3th arguments are set then these will be added. 2e is the name and 3th is the value. If there are two arguments then the second argument must be a hash table that will be added to the url -for each item: key=value will be added-. Note that, because this function uses a hash to store everything; you can overwrite existing arguments by passing them as argument.

Function: String EncodeObject()



Arg #0: Object o

Function: Object DecodeObject()



Arg #0: String s

File: graph.inc.php


The Graph Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: NotPermited

An class to display an authorisation error as a image with a string

Constructor: NotPermited()



Arg #0: width Width
Arg #1: height Height

Class: AxxDrawer

An class to draw the Axis of a Graph

Method: void setXaxxSpecials()



Arg #0: axxSpecials[] s

Method: void setYaxxSpecials()



Arg #0: axxSpecials[] s

Method: void setXaxxtype()



Arg #0: Enum t values of scaled

Method: void setYaxxtype()



Arg #0: Enum t values of scaled

Constructor: AxxDrawer()



Arg #0: Integer width
Arg #1: Integer height
Arg #2: Integer border
Arg #3: Integer maxY
Arg #4: Integer maxX
Arg #5: Long multiplier

Method: void drawYaxx()



Arg #0: Image i

Method: void drawXaxx()



Arg #0: Image i
$myx = $this->Xvalues[$x]["x"] + $calc; imageline ($image, $myx, $this->Xvalues[$x]["y"]-($this->border/3), $myx, $this->Xvalues[$x]["y"]- ($this->border/2), $black);

Class: LargeAxxDrawer

Aclass for drawing a large Axis

Constructor: LargeAxxDrawer()



Arg #0: width
Arg #1: height
Arg #2: border
Arg #3: maxY
Arg #4: maxX
Arg #5: multiplier

Class: GraphQuestion

An class to create users in the database.

Method: void setCalcTo()



Arg #0: Long c

Method: void setCustomXaxxDrawer()



Arg #0: AxxDrawer c

Method: void setCustomYaxxDrawer()



Arg #0: AxxDrawer c

Method: void setQuestionType()



Arg #0: Enum t line or bar

Method: void setDrawConf()



Arg #0: DrawConfigItem[] dr

Method: void setValueMultiplier()



Arg #0: Long h

Constructor: GraphQuestion()



Arg #0: Database databaseobject
Arg #1: String query
Arg #2: Color color
Arg #3: Integer legendasize
Arg #4: Long valuemultiplier
Arg #5: Graph graph $this->rows = $this->dbgraph->num_rows($this->res);

Method: void addLine()



Arg #0: ResultColumn[] c

Method: void plotQuestion()



Arg #0: Image i
Arg #0: Integer width
Arg #0: Integer height
Arg #0: Integer border
Arg #0: Integer num
Arg #0: GraphStat[] graphstat

Class: Graph

Aclass to create statistical Graphs

Constructor: Graph()



Arg #0: Database databaseobject
Arg #1: Integer width
Arg #2: Integer height
Arg #3: Integer bordersize
Arg #4: Integer legendasize
Arg #5: String title $this->dbgraph = new dbGraph(); Legenda ...

Method: void addGraphQuestion()



Arg #0: GraphQuestion g

Method: void addGraphQuestionByConf()



Arg #0: GraphConf[] c

Method: void plotQuestions()


File: include.inc.php


The Include file

File: link.inc.php


The Link Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: LinkCats

Property:items


type: property

Constructor: LinkCats()


Constructor: LinkCats()



Arg #0: String id Id

Method: void addLinkCat()


TODO: addLinkCat


difficulty: 10

Class: LinkCat

Property:items


type: property

Method: void setId()



Arg #0: String id

Method: String getId()


Method: void setDes()



Arg #0: String des

Method: String getDes()


Constructor: LinkCat()


Constructor: LinkCat()



Arg #0: String id Id

Method: sqlresult addLinkItem()



Arg #0: Linkitem li

Method: sqlresult delLinkItem()



Arg #0: String li

Method: void getLinkItems()


TODO: getLinkItems


difficulty: 10
wtf?

Method: Boolean updLinkCat()


Class: LinkItem

Method: void setId()



Arg #0: String id

Method: String getId()


Method: void setCat()



Arg #0: String cat

Method: String getCat()


Method: void setUrl()



Arg #0: String url

Method: String getUrl()


Method: void setDes()



Arg #0: String des

Method: String getDes()


Method: void setTitle()



Arg #0: String title

Method: String getTitle()


Method: void setDate()



Arg #0: DateTime d

Method: String getDate()


Method: void setPerson()



Arg #0: String person

Method: String getPerson()


Constructor: LinkItem()


Constructor: LinkItem()



Arg #0: String id Id

Method: Boolean updLinkItem()


File: news.inc.php


The News Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: NewsCats

Property:items


type: property

Constructor: NewsCats()


Method: void addNewsCat()



Arg #0: String des Description

TODO: addNewsCat


difficulty: 10
$this->dbnewscats->createNewsCat()

Class: NewsCat

Property:items


type: property

Constructor: NewsCat()


Constructor: NewsCat()



Arg #0: String id Id

Method: void setDes()



Arg #0: String des Description

Method: String getDes()


Method: void setId()



Arg #0: String id Id

Method: String getId()


Method: sqlresult addNewsItem()



Arg #0: NewsItem newsitem NewsItem to add

Method: sqlresult delNewsItemObject()



Arg #0: NewsItem newsitem NewsItem-object to delete

Method: sqlresult delNewsItem()



Arg #0: newsitem NewsItem -id to delete

Method: NewsItem[] getNewsItems()


Method: Boolean updNewsCat()


Class: NewsItem

Property:items


type: property

Constructor: NewsItem()


Constructor: NewsItem()



Arg #0: String id Id

Method: void setId()



Arg #0: String id

Method: String getId()


Method: void setCat()



Arg #0: NewsCat cat

Method: String getCat()


Method: void setSubject()



Arg #0: String subject

Method: String getSubject()


Method: void setContent()



Arg #0: String content

Method: String getContent()


Method: void setImage()



Arg #0: String imageurl

Method: String getImage()


Method: void setDate()



Arg #0: DateTime datetime

Method: String getDate()


Method: void setPerson()



Arg #0: User person

Method: String getPerson()


Method: void setAnon()



Arg #0: String anonname

Method: String getAnon()


Method: sqlresult delNewsReplyItem()



Arg #0: String id

Method: sqlresult addNewsReplyItem()



Arg #0: NewsReplyItem newsreplyitem

Method: void getNewsReplyItems()


Method: sqlresult updNewsItem()


Class: NewsReplyItem

Property:items


type: property

Method: void setId()



Arg #0: String id

Method: void setParent()



Arg #0: NewsItem newsitem

Method: void setParent()



Arg #0: NewsReplyItem newsreplyitem

Method: NewsReplyItem getParent()


Method: NewsItem getParent()


Method: void setContent()



Arg #0: String content

Method: String getContent()


Method: void setDate()



Arg #0: DateTime datetime

Method: DateTime getDate()


Method: void setPerson()



Arg #0: Person person

Method: User getPerson()


Method: void setAnon()



Arg #0: String anonname

Method: String getAnon()


Constructor: NewsReplyItem()


Constructor: NewsReplyItem()



Arg #0: id Id

Method: Boolean updNewsReplyItem()


Method: void getNewsReplyItems()


Method: sqlresult delNewsReplyItem()



Arg #0: String id

Method: sqlresult addNewsReplyItem()



Arg #0: NewsReplyItem newsreplyitem

File: sales.inc.php


The Sales Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: ArticleCats

Aclass that holds the Article Categories

Property:items


type: property

Constructor: ArticleCats()


Constructor: ArticleCats()



Arg #0: String id Id

Class: ArticleCat

Aclass that represents an Article Categorie

Property:items


type: property

Constructor: ArticleCat()


Constructor: ArticleCat()



Arg #0: String id Id

Method: String getDes()


Method: String getId()


Method: sqlresult addArticleItem()



Arg #0: ArticleItem a

Method: sqlresult delArticleItemObject()



Arg #0: ArticleItem a

Method: sqlresult delArticleItem()



Arg #0: String id

Method: void getArticleItems()


Method: Boolean updArticleCat()


Class: ArticleItem

Aclass represents an Article Item

Property:items


type: property

Constructor: ArticleItem()


Constructor: ArticleItem()



Arg #0: String id Id

Method: sqlresult updateDescriptions()


Method: String getId()


Method: ArticleCat getCat()


Method: String getName()


Method: Long getPrice()


Method: VatItem getVat()


Method: String getVatId()


Method: Long getProfit()


Method: String getDescription()


Method: void delDescription()


TODO: delDescription


difficulty: 10

Method: void addDescription()


TODO: addDescription


difficulty: 10

Method: void updArticleItem()


Class: VatItem

Aclass represents a Vat

Constructor: VatItem()


Constructor: VatItem()



Arg #0: String id Id

Method: void setId()



Arg #0: String id

Method: String getId()


Method: void setDes()



Arg #0: String d

Method: String getDes()


Method: String getPer()


Method: void setPer()



Arg #0: String p

Method: sqlresult updVatItem()


Class: Order

Aclass that represents an Order

Property:items


type: property

Constructor: Order()


Constructor: Order()



Arg #0: String id Id

Method: void setDate()



Arg #0: DateTime datetime

Method: DateTime getDate()


Method: void setPerson()



Arg #0: Person p

Method: Person getPerson()


Method: void setId()



Arg #0: String id

Method: String getId()


Method: sqlresult addArticleItemObject()



Arg #0: ArticleItem ai

Method: sqlresult addArticleItem()



Arg #0: String ad

Method: sqlresult delArticleItemObject()



Arg #0: ArticleItem a

Method: sqlresult delArticleItem()



Arg #0: String id

Method: void getArticleItems()


File: security.inc.php


The Security Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: Security

Constructor: Security()


Class: UserSecurity

Constructor: UserSecurity()


Method: void grantPermission()


Use this method to grant the user a specified permission.
Arg #0: String user The user to grant permission to
Arg #1: String permission The permission to grant

Method: void denyPermission()


Use this method to deny the user a specified permission.
Arg #0: String user The user to deny permission from
Arg #1: String permission The permission to deny

File: shoppingcart.inc.php


The Shopping Cart Module
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: ShoppingCartItems

Class: ShoppingCart

Constructor: ShoppingCartItems()


Constructor: ShoppingCartItems()



Arg #0: String encodeditems The items in a EncodeObjected string

Method: void resetCart()


Method: void changeInCart()



Arg #0: Integer nr
Arg #0: ShoppingCartItem i

Method: ShoppingCartItem[] destroyCart()


Method: void addToCart()



Arg #0: ShoppingCartItem i

Method: ShoppingCartItem[] lookupInCart()



Arg #0: ShoppingCartItem i

Method: ShoppingCartItem[] delFromCart()



Arg #0: Integer i

Method: ShoppingCartItem[] giveCart()


Method: ShoppingCartItem[] drawCart()


File: user.inc.php


The Authentication and User Modules
* C o p y r i g h t *(also read COPYING) Copyright (C) 2002 Philip Van Hoof 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, or (at your option) any later version. 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

Class: UserCreator

An class to create users in the database.

Method: void createUser()



Arg #0: String id Id
Arg #1: String adres Adres
Arg #2: String place Place
Arg #3: String zipcode Zipcode
Arg #4: String email E-mail
Arg #5: String phone Phone
Arg #6: String fax Fax
Arg #7: String pwd The password

Method: sqlresult createUser()


Method: void createUser()


Method: sqlresult getAllUsers()


Method: sqlresult deleteUserById()



Arg #0: String id

Method: sqlresult delUser()



Arg #0: User user

Class: User

Aclass that represents a user.

Constructor: Person()


Constructor: Person()



Arg #0: String id Id

Method: void setName()



Arg #0: String n Id

Method: String getName()


Method: void setAdres()



Arg #0: String a adres

Method: String getAdres()


Method: void setPlace()



Arg #0: String p place

Method: String getPlace()


Method: void setZipcode()



Arg #0: String zc zipcode

Method: String getZipcode()


Method: void setEmail()



Arg #0: String e email

Method: String getEmail()


Method: void setPhone()



Arg #0: String p phone

Method: String getPhone()


Method: void setFax()



Arg #0: String f fax

Method: String getFax()


Method: void setId()



Arg #0: String n Id

Method: String getId()


Method: String delPerson()


Method: String updPerson()


Class: User

Aclass that represents a user.

Constructor: User()


Constructor: User()



Arg #0: String id Id

Method: Boolean setPwd()


This method will set the password or create the user if it does not exist in the table and the objectstate is set to "ready" (this means that the programmer knows that she filled in all fields. After that she has set the objectstate property to "ready" to confirm this).
Arg #0: String input The password

Method: void deleteUser()


Method: Boolean updUser()


Use this method to update all changes in the database.

Method: Boolean checkPwd()


Use this method to check a password against the password that has been stored. Note that password are crypted in the database. You cannot read them. You can only encrypt using crypt(). So you cannot decrypt the passwords. You can change the password of a user using the setPwd method.
Arg #0: String input The password to check

Method: Boolean checkCryptedPwd()


Use this method to check a encrypted password against the password that has been stored. Note that password are crypted in the database. You cannot read them. You can only encrypt using crypt(). So you cannot decrypt the passwords. You can change the password of a user using the setPwd method.
Arg #0: String input The encrypted password to check

Method: void grantPermission()


Use this method to grant the user a specified permission.
Arg #0: String permission The permission to grant

Method: void denyPermission()


Use this method to deny the user a specified permission (take the permission away).
Arg #0: String permission The permission to deny

Method: String[] getPermissions()


Use this method to get an array of permissions for this user.

Method: Boolean doIhavePermissionFor()


Use this method to check wether this user has permission for a specified task.
Arg #0: String task The task to check if the user has permission to run it