sameAs() public method

Returns true if the current object is the same type as the given object then has the same value.
public sameAs ( mix $p_otherObject ) : boolean
$p_otherObject mix
return boolean
Example #1
0
 /**
  * Returns true if the current object is the same type as the given
  * object then has the same value.
  * @param mix $p_otherObject
  * @return boolean
  */
 public function same_as($p_otherObject)
 {
 	return get_class($this) == get_class($p_otherObject)
 	&& (is_null($this->m_dbObject) && is_null($p_otherObject->m_dbObject)
 	|| $this->m_dbObject->sameAs($p_otherObject->m_dbObject));
 } // fn same_as