Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gombos Lorand  >  PHPIncluder  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index
Class: PHPIncluder
Include PHP scripts automatically
Author: By
Last change: New features:
Balcklist
Whitelis
Depth search
Import type -Strategy
Subdir import
Date: 6 years ago
Size: 780 bytes
 

Contents

Class file image Download
<?php
include_once 'includer.class.php';
$includer = new Includer();
//$includer->addBlacklist("level3.php");//add item in blacklist(array, or string) 
//$includer->addWhitelist("level3.php");//add item in whitelist(array, or string)
//$includer->emptyWhitelist(); //empty whitelist
//$includer->emptyBlacklist(); //empty blacklisy
$includer->setSortByDepth(TRUE); // enable depth sorting
$includer->setType(Includer::I_ONCE); //define import type Ex: Includer::R_ONCE
/*set the subdir properti, if false the script
not import files in subdirectorys*/  
//$includer->setInSubdir(FALSE);
$includer->Import('classes');//define the root import directory 
//$includer->Test();
//$includer->ImportIncFiles();
//$includer->ImportClasses();
$includer->ImportAll();
?>