Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
10 Aug 2002 20:47:15postnuke_official/html/includespnTableDDL.php,1.4,1.5Paul Rosania
 added back some of johnny's changes

Update of /home/cvsroot/postnuke_official/html/includes
In directory ns7.hostnuke.net:/tmp/cvs-serv2497/includes

Modified Files:
	pnTableDDL.php 
Log Message:
added back some of johnny's changes


Index: pnTableDDL.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/includes/pnTableDDL.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** pnTableDDL.php	10 Aug 2002 20:08:36 -0000	1.4
--- pnTableDDL.php	10 Aug 2002 20:47:12 -0000	1.5
***************
*** 70,80 ****
      
  }
! 
! function pnDBAlterTable($args, $dbtype="") {
! 
      // perform validations on input arguments
      if (empty($args)) return FALSE;
      if (!is_array($args)) return FALSE;
!     if (empty($args['table']) || (empty($args['command']))) return FALSE;
         
      if (empty($dbtype)) {
--- 70,95 ----
      
  }
! /**
!   * Alter database table
!   *
!   * @access public
!   * @param args['table'] the table to alter
!   * @param args['command'] command to perform on table(add,modify,drop,rename)
!   * @param args['field_name'] field to alter
!   * @param args['new_field_name'] new field name
!   * @param args['type'] field type
!   * @param args['null'] null or not
!   * @param args['increment'] auto incrementing files
!   * @param args['primary_key'] primary key
!   * @param dbtype the database type (optional)
!   * @returns sql
!   * @return generated sql
!   */
! function pnDBAlterTable($args, $dbtype = '')
! {
      // perform validations on input arguments
      if (empty($args)) return FALSE;
      if (!is_array($args)) return FALSE;
!     if (empty($args['table'] || empty($args['command'])) return FALSE;
         
      if (empty($dbtype)) {
***************
*** 96,101 ****
  }
  
! function pnMySQLAlterTable($args) {
! 
      switch ($args['command']) {
          case 'add':
--- 111,116 ----
  }
  
! function pnMySQLAlterTable($args)
! {
      switch ($args['command']) {
          case 'add':
***************
*** 130,135 ****
  } 
  
! function pnPostgresAlterTable($args) {
! 
      switch ($args['command']) {
          case 'add':
--- 145,150 ----
  } 
  
! function pnPostgresAlterTable($args)
! {
      switch ($args['command']) {
          case 'add':
***************
*** 151,161 ****
  /**
   * generate the SQL to create a table
   * @param table the physical table name 
   * @param fields an array containing the fields to create
   * @returns data|false
   * @return the generated SQL statement, or false on failure
   */
! function pnDBCreateTable($table, $fields, $dbtype="") {
! 
      // perform validations on input arguments
      if (empty($table)) return FALSE;
--- 166,179 ----
  /**
   * generate the SQL to create a table
+  *
+  * @access public
   * @param table the physical table name 
   * @param fields an array containing the fields to create
+  * @param dbtype database type (optional)
   * @returns data|false
   * @return the generated SQL statement, or false on failure
   */
! function pnDBCreateTable($table, $fields, $dbtype="")
! {
      // perform validations on input arguments
      if (empty($table)) return FALSE;
***************
*** 184,187 ****
--- 202,207 ----
  /**
   * generate the SQL to delete a table
+  *
+  * @access public
   * @param table the physical table name 
   * @param index an array containing the index name, type and fields array
***************
*** 189,194 ****
   * @return the generated SQL statement, or false on failure
   */
! function pnDBDropTable( $table, $dbtype="" ) {
! 
      // perform validations on input arguments
      if (empty($table)) return FALSE;
--- 209,214 ----
   * @return the generated SQL statement, or false on failure
   */
! function pnDBDropTable( $table, $dbtype="" )
! {
      // perform validations on input arguments
      if (empty($table)) return FALSE;
***************
*** 251,255 ****
  }
   
! function pnDBDropIndex( $table, $fields, $dbtype="") {
      // perform validations on input arguments
      if (empty($table)) return FALSE;
--- 271,276 ----
  }
   
! function pnDBDropIndex( $table, $fields, $dbtype="")
! {
      // perform validations on input arguments
      if (empty($table)) return FALSE;
***************
*** 290,294 ****
   * @return the generated SQL statement, or false on failure
   */
! function pnMySQLCreateTable($table, $fields) {
      $sql_fields = array();
  
--- 311,316 ----
   * @return the generated SQL statement, or false on failure
   */
! function pnMySQLCreateTable($table, $fields)
! {
      $sql_fields = array();
  
***************
*** 302,306 ****
  }
  
! function pnMySQLColumnDefinition ($field_name,$parameters) {
      $this_field = array($field_name);
  
--- 324,329 ----
  }
  
! function pnMySQLColumnDefinition ($field_name,$parameters)
! {
      $this_field = array($field_name);
  
***************
*** 508,512 ****
   * @return the generated SQL statement, or false on failure
   */
! function pnPostgreSQLCreateTable($table, $fields) {
      $sql_fields = array();
  
--- 531,536 ----
   * @return the generated SQL statement, or false on failure
   */
! function pnPostgreSQLCreateTable($table, $fields)
! {
      $sql_fields = array();
  
***************
*** 520,524 ****
  }
  
! function pnPostgresColumnDefinition ($field_name,$parameters) {
      $this_field = array($field_name);
      
--- 544,549 ----
  }
  
! function pnPostgresColumnDefinition ($field_name,$parameters)
! {
      $this_field = array($field_name);
      


Directory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3