Exemplo n.º 1
0
 public function func()
 {
     $b = new BBB();
     $c = new CCC();
     $i = 34;
     $item = array('foo' => 'bar');
     try {
         $c->process($b->xyz($item['foo'], $i));
     } catch (ABCException $e) {
         $b->xyz($item['foo'], $i);
     }
 }
Exemplo n.º 2
0
 function __construct($args = array(), $isSimpleInstance = false)
 {
     $this->setWithTable('test_issue37_ccc');
     $this->addAttribute('attrCCC', Datatypes::TEXT);
     $this->addConstraints('attrCCC', array(Constraint::minLength(5)));
     parent::__construct($args, $isSimpleInstance);
 }
Exemplo n.º 3
0
        echo "ftest";
    }
    public function run()
    {
        echo "***";
        $this->ftest();
    }
    public static function stest()
    {
        echo "static in AAA";
    }
    public static function srun()
    {
        echo "%%%";
        static::stest();
    }
}
class BBB extends AAA
{
    public function ftest()
    {
        echo "hello ,abc";
    }
    public static function stest()
    {
        echo "static in BBB";
    }
}
$a = new BBB();
$a->run();
$a::srun();
Exemplo n.º 4
0
 public function deleteRecordings($recordId = null)
 {
     $bbb = new BBB($this->salt, $this->url);
     $recordingParams = array('recordId' => $recordId);
     $itsAllGood = true;
     try {
         $result = $bbb->deleteRecordingsWithXmlResponseArray($recordingParams);
     } catch (Exception $e) {
         echo 'Caught exception: ', $e->getMessage(), "\n";
         $itsAllGood = false;
     }
     if ($itsAllGood == true) {
         print_r($result);
     }
 }
Exemplo n.º 5
0
class BB extends AA
{
    public function say()
    {
        echo "BB...";
    }
}
$a = new BB();
$a->say();
interface AAA
{
    public function say();
    const cProp = "hello";
}
class BBB implements AAA
{
    public function say()
    {
        echo " say in BBB...";
        echo self::bCProp;
    }
    const bCProp = "world";
}
$a = new BBB();
$a->say();
echo <<<'NOW'
123456789\n0
!@#$%^&*()
qwertyuiopasdfghjklzxcvbnm,./
NOW
;