This file contains 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
#!/usr/bin/php -q | |
<?php | |
if(isset($argv[1]) && strlen($argv[1])) { | |
$file = $argv[1]; | |
}else{ | |
echo 'Please Specify a File'; | |
exit(1); | |
} |
This file contains 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 | |
class Observer { | |
/** | |
* Untuk singleton diperlukan satu property yang static | |
* | |
* @var array | |
* @access protected | |
*/ |