Skip to content

Instantly share code, notes, and snippets.

@michaeltwofish
Created January 8, 2011 03:28
Show Gist options
  • Save michaeltwofish/770507 to your computer and use it in GitHub Desktop.
Save michaeltwofish/770507 to your computer and use it in GitHub Desktop.
/**
* 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