PHP Classes
elePHPant
Icontem

File: CreateFolder.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael J. Fuhrman  >  Contact Types  >  CreateFolder.php  >  Download  
File: CreateFolder.php
Role: Example script
Content type: text/plain
Description: Creates a Folder in the Ladder Tree for Appointments
Class: Contact Types
Manage a list of types of people contacts
Author: By
Last change:
Date: 4 years ago
Size: 779 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/_app.inc");

Function
php_Main ()
{
  
$aryRoots = gblLadder()->getRoots();
  
$fldrRoot= gblLadder()->getItem ($aryRoots [1]);

  
$clsCommon_ContactTypes = gblLadder()->getClass ("Common_ContactType")->ID();

  
$fldrAppoinments = $fldrRoot->Create_Folder ("ContactTypes", "ContactTypes are stored here", $clsCommon_ContactTypes);

  
$fldrAppoinments ->Store();

   print (
"The ContactTypes Folder ID is " . $fldrAppoinments->ID() . "<BR>");
}
?>