This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 1. This Algorithm can help you build tree as a nested php array from array like ('id' => x, 'parent_id' => y) | |
* 2. Algorithm speed = {O(n log n) + О(N)} | |
*/ | |
class EasyTree | |
{ | |
public static | |
$idKeyName = 'id', $parentIdKeyName = 'parent_id', $childrenKeyName = 'children'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://pwfisher.com/nucleus/index.php?itemid=45 | |
This command line option parser supports any combination of three types of options (switches, flags and arguments) and returns a simple array. | |
<?php | |
/** | |
* CommandLine class | |
* | |
* @package Framework | |
*/ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple FTP Class | |
* | |
* @package SFTP | |
* @name SFTP | |
* @version 1.0 | |
* @author Shay Anderson 05.11 | |
* @link shayanderson.com | |
* @license http://www.gnu.org/licenses/gpl.html GPL License |