Login   Register  
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  >  Appointment Calendar  >  CreateFolder.php  >  Download  
File: CreateFolder.php
Role: Application script
Content type: text/plain
Description: Creates a Folder in the Ladder Tree for Appointments
Class: Appointment Calendar
Manage scheduled appointments
Author: By
Last change:
Date: 2010-03-08 06:08
Size: 777 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();
   
$fldrRootgblLadder()->getItem ($aryRoots [1]);

   
$clsCommon_Appointments gblLadder()->getClass ("Common_Appointments")->ID();

   
$fldrAppoinments $fldrRoot->Create_Folder        ("Appointments""Appointments are stored here"$clsCommon_Appointments);

   
$fldrAppoinments ->Store();

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