Beispiel #1
0
 public function hello2()
 {
     $this->hello();
     // Check if $this mean also inheritance methods
     parent::hello();
     // Check if it work in spite of it is not static method
 }
Beispiel #2
0
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'source6-includes.php';
class Test
{
    use A, B {
        B::hello insteadof A;
        A::hello as helloA;
    }
}
$test = new Test();
$test->hello();
$test->helloA();
Beispiel #3
0
<?php

require 'vendor/autoload.php';
// $host = "localhost";
// $db_name = "planner";
// $username = "******";
// $password = "";
//       try{
//           $conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $username, $password);
//           echo "connection established";
//       }catch(PDOException $exception){
//           echo "Connection error: " . $exception->getMessage();
//       }
/*if(isset($_GET['cmd'])){

    exec('git remote -v', $output, $return);
    
    foreach ($output as $value) {
    	echo $value ."\n";
    }
}else{
	echo "No Command Issued";
} */
//sendmail('*****@*****.**','Kevin Maina','Test','Just testing');
//sms('+254724844946','The Planner');
//echo isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'not there';
//print_r($_SESSION);
$db = new Database();
$test = new Test($db->conn);
echo $test->hello();
 public function AutoLoadAction()
 {
     $t = new Test();
     echo $t->hello();
 }