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  >  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: 2010-06-18 07:07
Size: 762 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_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>");
}
?>