/ Published in: PHP
URL: http://fuselogic.haltebis.com
Include Path PHP 5 class.
Usage: $path = new fuselogicincludepath(); $path->add('/home/ekobudi/www/fuselogic'); $path->add('/home/ekobudi/www/pear'); $path->remove('/home/ekobudi/www/old_fuselgic');
Expand |
Embed | Plain Text
<?php class fuselogic_include_path { function __construct($path = null) { { $this->setting_name = 'include_path'; $this->_get_separator(); } } function add($variables) { { }else { } $this->clear(); $this->_unlink('.'); foreach($unique as $variable) { if($variable !== '.') $this->_link($variable); } } function remove($variables) { { foreach($variables as $variable) $this->_unlink($variable); }else { $this->_unlink($variables); } } function clear() { } function to_array() { } function get_setting($setting = '') { return $setting; } function _link($directory = '') { { $setting = $this->get_setting(); $setting .= $this->_separator.$directory; } } function _get_separator() { if($count > 0) { $this->_separator = ';'; }else{ $this->_separator = ':'; } } function _unlink($directory = '') { { $setting = $this->get_setting(); $setting .= $this->_separator.$this->_separator; } } } ?>
Comments
Subscribe to comments
You need to login to post a comment.

excellent!!!