Created
January 8, 2011 03:28
-
-
Save michaeltwofish/770507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Magic function __isset returns true or false depending on if the given property is set for this object. | |
* Potential valid properties: | |
* field: A valid unique name for this control in HTML. | |
* value: The value of the control, whether the default or submitted in the form | |
* | |
* @param string $name The parameter to check | |
* @return Boolean Whether the parameter is set | |
*/ | |
public function __isset($name) | |
{ | |
return $this->__get($name) === null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment