PHP Classes

File: CreateFolder.php

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Task Types   CreateFolder.php   Download  
File: CreateFolder.php
Role: Example script
Content type: text/plain
Description: Creates a Folder in Ladder to Contain the Task Types
Class: Task Types
Manage a list of types of tasks of a to do list
Author: By
Last change:
Date: 13 years ago
Size: 762 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_TaskTypes = gblLadder()->getClass ("Common_TaskTypes")->ID();

$fldrAppoinments = $fldrRoot->Create_Folder ("TaskTypes", "TaskTypes are stored here", $clsCommon_TaskTypes);

$fldrAppoinments ->Store();

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