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
| <html> | |
| <head> | |
| <title>Hello World</title> | |
| <link rel="stylesheet" href="styles/default.css"> | |
| <link rel="alternate stylesheet" href="styles/arta.css" title="arta"> | |
| <link rel="alternate stylesheet" href="styles/ascetic.css" title="ascetic"> | |
| <link rel="alternate stylesheet" href="styles/brown_paper.css" title="brown_paper"> | |
| <link rel="alternate stylesheet" href="styles/dark.css" title="dark"> | |
| <link rel="alternate stylesheet" href="styles/far.css" title="far"> | |
| <link rel="alternate stylesheet" href="styles/github.css" title="github"> |
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 | |
| /** | |
| * Look into https://github.com/harikt/Hari.Sample for the other code. | |
| * | |
| */ | |
| $package_dir = dirname(dirname(__DIR__)) . '/aurasystem/package/'; | |
| $loader = require $package_dir . 'Aura.Autoload/scripts/instance.php'; | |
| $loader->add('Hari\Sample\\', $package_dir . 'Hari.Sample/src'); | |
| $loader->add('Aura\Sql\\', $package_dir . 'Aura.Sql/src'); | |
| $loader->register(); |
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
| // Require the file | |
| $class = "ClassName"; | |
| $r = new ReflectionClass($class); | |
| $str = ''; | |
| foreach($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { | |
| $rm = new ReflectionMethod($class, $method->name); | |
| $pieces = array(); | |
| foreach($rm->getParameters() as $params ) { |
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 | |
| $loader = require dirname(dirname(__DIR__)) . '/aurasystem/package/Aura.Autoload/scripts/instance.php'; | |
| $loader->setClass('PHPCrawler', __DIR__ . '/libs/PHPCrawler.class.php'); | |
| $loader->register(); | |
| $loader->setMode(0); | |
| $class = new PHPCrawler(); |
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 | |
| /* | |
| Hi Guys, | |
| I need some help from the gurus who have already faced and solved the problem. | |
| The aim is to learn about the access control (ACL) and creating a generic ACL | |
| for creating and manipulating the roles and resources for end users. |
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 | |
| $path = dirname(__DIR__) . '/aurasystem/package'; | |
| $system = dirname(__DIR__) . '/aurasystem'; | |
| $loader = require $path . '/Aura.Autoload/scripts/instance.php'; | |
| $di = require $path . '/Aura.Di/scripts/instance.php'; | |
| $configs = array('Aura.Filter', 'Aura.Input', 'Aura.View', 'Aura.Intl', 'Aura.Cli'); | |
| foreach ($configs as $config) { | |
| require $path . '/' . $config . '/config/default.php'; |
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 | |
| namespace Vendor\Package; | |
| class FirstException extends \Exception | |
| { | |
| // some code that does the functionality | |
| } | |
| class SecondException extends \Exception | |
| { |
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 | |
| class Wedding | |
| { | |
| protected $start; | |
| protected $end; | |
| public function __construct($start = '2013-04-22 09:45', $end = '2013-04-22 10:15') | |
| { | |
| $this->start = $start; |
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
| { | |
| "repositories": [ | |
| { | |
| "type": "package", | |
| "package": { | |
| "name": "CpanelInc/publicapi-php", | |
| "version": "1.0.0", | |
| "dist": { | |
| "url": "https://github.com/CpanelInc/publicapi-php/archive/master.zip", | |
| "type": "zip" |
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
| { | |
| "minimum-stability": "dev", | |
| "require": { | |
| "aura/installer-system" : "1.0.0", | |
| "aura/framework" : "dev-develop", | |
| "aura/demo" : "dev-develop" | |
| } | |
| } | |
| Let us assume this is the composer.json of the user. |