From 29c549ca7a6d2a30e1284bbf7b031301f44b356e Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Mon, 23 Aug 2004 20:59:39 +0000 Subject: [PATCH] Add pear-DB_DataObject 1.7.1, an SQL Builder, Object Interface to Database Tables. PR: 70882 Submitted by: Antonio Carlos Venancio Junior --- databases/Makefile | 1 + databases/pear-DB_DataObject/Makefile | 27 ++++++++++++++++++++++++++ databases/pear-DB_DataObject/distinfo | 2 ++ databases/pear-DB_DataObject/pkg-descr | 9 +++++++++ 4 files changed, 39 insertions(+) create mode 100644 databases/pear-DB_DataObject/Makefile create mode 100644 databases/pear-DB_DataObject/distinfo create mode 100644 databases/pear-DB_DataObject/pkg-descr diff --git a/databases/Makefile b/databases/Makefile index 2d8d2db9c7fa..1ccf7ce46605 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -200,6 +200,7 @@ SUBDIR += p5-postgresql-plperl SUBDIR += p5-sqlrelay SUBDIR += pear-DB + SUBDIR += pear-DB_DataObject SUBDIR += pear-DB_Pager SUBDIR += pear-MDB SUBDIR += pear-sqlite diff --git a/databases/pear-DB_DataObject/Makefile b/databases/pear-DB_DataObject/Makefile new file mode 100644 index 000000000000..f80a652766c2 --- /dev/null +++ b/databases/pear-DB_DataObject/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: pear-DB_DataObject +# Date created: 23 August 2004 +# Whom: Antonio Carlos Venancio Junior () +# +# $FreeBSD$ +# + +PORTNAME= DB_DataObject +PORTVERSION= 1.7.1 +CATEGORIES= databases www pear + +MAINTAINER= antonio@php.net +COMMENT= An SQL Builder, Object Interface to Database Tables + +BUILD_DEPENDS= ${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \ + ${PEARDIR}/Date.php:${PORTSDIR}/devel/pear-Date +RUN_DEPENDS= ${BUILD_DEPENDS} + +CATEGORY= DB +FILES= DataObject.php DataObject/Cast.php DataObject/Error.php \ + DataObject/Generator.php DataObject/createTables.php + +DOCS= example.ini + +.include +.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" +.include diff --git a/databases/pear-DB_DataObject/distinfo b/databases/pear-DB_DataObject/distinfo new file mode 100644 index 000000000000..f5c920632fc6 --- /dev/null +++ b/databases/pear-DB_DataObject/distinfo @@ -0,0 +1,2 @@ +MD5 (PEAR/DB_DataObject-1.7.1.tgz) = 555cc6425c85952221e0237963d3296f +SIZE (PEAR/DB_DataObject-1.7.1.tgz) = 44629 diff --git a/databases/pear-DB_DataObject/pkg-descr b/databases/pear-DB_DataObject/pkg-descr new file mode 100644 index 000000000000..bc4da30923ea --- /dev/null +++ b/databases/pear-DB_DataObject/pkg-descr @@ -0,0 +1,9 @@ +PEAR::DB_DataObject performs 2 tasks: +1. Builds SQL statements based on the objects vars and the buiLder methods. +2. acts as a datastore for a table row. + +The core class is designed to be extended for each of your tables so that you + put the data logic inside the data classes. +Included is a Generator to make your configuration files and your base classes. + +WWW: http://pear.php.net/package/DB_DataObject