'~^[-a-z0-9_.]+$~i', ); function getPrimaryKey() { return 'tag_id'; } function getField($field, $insert = FALSE) { $prefix = !$insert ? 'ts.' : ''; return "$prefix$field"; } function getTable() { return 'k4_tags'; } function getSelectTables() { return 'k4_tags ts'; } function getSelectFields() { return "ts.*"; } function getSelectGroupby() { return "ts.tag_id"; } } class TagsRecord extends FARecord { //-------------------------------------------- // Define what in this records object is cacheable. //-------------------------------------------- function cacheAble() { return array( 'tag_id', 'tag_name', ); } } ?>