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); } }
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); }
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();
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); } }
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 ;