Skip to content

Instantly share code, notes, and snippets.

@jawngee
Created July 15, 2009 06:50
Show Gist options
  • Select an option

  • Save jawngee/147537 to your computer and use it in GitHub Desktop.

Select an option

Save jawngee/147537 to your computer and use it in GitHub Desktop.
<?
$item=new Item();
$class=AttributeReader::ClassAttributes($item);
echo $class->database;
echo $class->table;
$method=AttributeReader::PropertyAttributes($item,'uri');
echo $method->label;
if ($method->validate->required)
echo "Required field";
else
echo "Not required.";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment