コード例 #1
0
ファイル: Inside.php プロジェクト: Abuamany/concerto-platform
 public function __construct($node, $parent)
 {
     parent::__construct($node, $parent);
     self::$possible_attributes = array_merge(parent::$possible_attributes, self::$possible_attributes);
     self::$required_attributes = array_merge(parent::$required_attributes, self::$required_attributes);
     self::$possible_children = array_merge(parent::$possible_children, self::$possible_children);
     self::$required_children = array_merge(parent::$required_children, self::$required_children);
 }
コード例 #2
0
$weird = 'Outside';

echo $weird::NAME;



//from inside the class definition

class Inside
{
	const NAME = "Bicku";
	public static $name = "Bicku";


	static function boo()
	{
		echo self::$name . "<br />";
	}
}

Inside::boo();

$inside = new Inside();

$inside::boo();





 ?>