Location: PHPKode > scripts > PHPClass Generator > phpclass-generator/templates/func-get.tpl
function get( $Id )
{
    {db-func}

    $q = mysql_query( "SELECT * FROM {table-name} WHERE {primary-id}='$Id'" )
         or die( "{class-name}::get( $Id ) failed, dying..." );

    {get-elements}
}
Return current item: PHPClass Generator