Public feed #378572

Unnamed

public php v1 · immutable
Raw Edit
·published 2007-03-02 16:17 UTC
rendered paste body
<?class core_client {	private $ldapConnection;		protected function getldapConnection() {		return $this->ldapConnection;	}		protected function setldapConnection( $var ) {		$this->ldapConnection = $var;	}}class sw_client extends core_client {	private $var1=1;	private $var2=2;	private $var3=3;	private $var4=4;	private $var5=5;		 public function save() {		$this->setldapConnection("HELLO, DONT WANT YOU TO SEE ME");				$current = get_object_vars($this);				return print_r( $current );	}		public function showParent() {		return $this->getldapConnection();	}}$test = new sw_client();echo "sw_client = ";echo $test->save();echo "<br />\$test->showParent() = ".$test->showParent();?>