[Parsix-Devel] Basic Queue System Design
Milad Rastian
miladmovie at gmail.com
Sat Dec 1 20:54:58 CET 2007
/
| admin/
| add.php #admin interface to add pkgs(just set pkg
active true as default)
| index.php #admin interface to active-delete pkgs
| developers/
| index.php #developer interface to add pkgs
| db/
| queue.db database of pkgs (like docs of [1] schema
)
| clean.php # as describe in [1]
| export.php # as describe in [1]
| data.php # contain data of developers name & distors name &
location of queue.db
| package.php # contain class package & packages
pakage.php detail :
*Package* Class public function :
public function setPkgName($name)
public function getPkgName()
public function setId($id)
public function getId()
public function setDeveloper($name)
public function getDeveloper()
public function setDistro($name)
public function getDistro()
public function setStatus($bool)
public function getStatus()
public function delete() #delete record with *_id *value* *
public function save() #if did not assign *_id* to object save as new
record else update record
*Packages* Class public function :
public function getAll () #return all records as a array of *Package*
public function deleteAll() #delete all records
*Note :*
If you have some problem with saving new record(even if you change chmod of
*queue.db*) change chmod of *db *folder
[1] http://www.parsix.org/html/pnWikka-tag-QueueSysteml.htmlOn Nov 27, 2007
6:40 PM, Alan Baghumian <alan at technotux.org> wrote:
> Hi,
>
> Thanks a lot, would you please write a small documentation for it?
>
> 1) how it works
> 2) database structure
> 3) outputs
> 4) etc
>
> It's not problem if you write it in Persian, just email me and I'll
> translate it to English.
>
> Thanks alot,
> Alan
>
> > Hi,
> > I commit code with all feature .
> > *just didn't write build-queue.bash, cause I don't know what this script
> > will do with data
> >
> > Don't forget to chmod "db" folder to 777
> >
> > bye
> > *
> >
>
> _______________________________________________
> Parsix-Devel mailing list
> Parsix-Devel at parsix.org
> http://parsix.org/cgi-bin/mailman/listinfo/parsix-devel
>
--
/--------------------
Milad Rastian
http://milad.rastian.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://parsix.org/pipermail/parsix-devel/attachments/20071201/36db895e/attachment.htm
More information about the Parsix-Devel
mailing list