Location: PHPKode > scripts > Appointment Calendar > CreateFolder.php
<?
/*	=======================================
	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_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>");
}
?>
Return current item: Appointment Calendar