PHP Classes

File: CreateFolder.php

Recommend this page to a friend!
  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: 14 years ago
Size: 777 bytes


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/");

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>");