File: install.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman  >  People  >  install.php  >  Download  
File: install.php
Role: Example script
Content type: text/plain
Description: Installs the classes needed to manage People
Class: People
Manage user contacts
Author: By
Last change:
Date: 10 years ago
Size: 1,607 bytes
 

Contents

Class file image Download
<?
/* =======================================
    Copyright 1998 - 2010 - E Net Arch
    This program is distributed under the terms of the GNU
    General Public License (or the Lesser GPL).
    ======================================= */

function dirPath() { return ("../../"); }

Include_Once (
dirPath() . "Shared/Install_Functions.inc");
Include_Once (
dirPath() . "Shared/_app.inc");

Function
php_Main ()
{
  
$szStr =
       
" szTitle VarChar(5), " .
       
" szFirst VarChar(20), " .
       
" szMiddle VarChar(20), " .
       
" szLast VarChar(20), " .
       
" szSuffix varChar(10) " ;

  
CreateClass ("Common_Name", ldrGlobals::cisItem(), 0 , true, $szStr);

  
$szStr =
       
" szStreet1 VarChar(40), " .
       
" szStreet2 VarChar(40), " .
       
" szCity VarChar(20), " .
       
" szState VarChar(2), " .
       
" szZip varChar(10) " ;

  
CreateClass ("Common_Address", ldrGlobals::cisItem(), 0 , true, $szStr);

  
$szStr =
       
" szType varChar(20) " ;

  
CreateClass ("Common_ContactType", ldrGlobals::cisItem(), 0 , true, $szStr);

  
$szStr =
       
" szMethod varChar(250) " ;

  
CreateClass ("Common_ContactMethod", ldrGlobals::cisItem(), 0 , true, $szStr);

  
CreateClass ("Common_ContactTypes", ldrGlobals::cisFolder(), 0 , true);
  
CreateClass ("Common_ContactTypes_Ref", ldrGlobals::cisReference(), 0 , true);

  
CreateClass ("Common_Contact", ldrGlobals::cisFolder(), 0 , true);
  
CreateClass ("Common_Contacts", ldrGlobals::cisFolder(), 0 , true);

  
CreateClass ("Common_Person", ldrGlobals::cisFolder(), 0 , true);

  
CreateClass ("Common_People", ldrGlobals::cisFolder(), 0 , true);
}
?>


For more information send a message to info at phpclasses dot org.