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  >  Todo List  >  CreateFolder.php  >  Download  
File: CreateFolder.php
Role: Example script
Content type: text/plain
Description: Creatse a Folder in Ladder for the Todos
Class: Todo List
Manage a list of tasks of a to do list
Author: By
Last change:
Date: 2010-06-18 07:36
Size: 1,188 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_Todos gblLadder()->getClass ("Common_Todos")->ID();
    
$clsCommon_TaskTypes gblLadder()->getClass ("Common_TaskTypes")->ID();
    
$clsCommon_TaskTypes_Ref gblLadder()->getClass ("Common_TaskTypes_Ref")->ID();

   
$fldrTaskTypes $fldrRoot->Create_Folder ("Todos""Todos are stored here"$clsCommon_Todos);
   
$fldrTodos->Store();

   
$fldrTodos $fldrRoot->Create_Folder ("Todos""Todos are stored here"$clsCommon_Todos);
   
$fldrTodos->Store();

    
$refTaskTypes $fldrTodos->Create_Reference ("TaskTypes""Reference tot he folder that contains the Task Types"$clsCommon_TaskTypes$fldrTaskTypes);
    
$refTaskTypes->Store();

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