Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hasABoddle ( array fizzit_ids ) {
- /***
- * fizzits have two properties: foo and bar
- *
- * a fizzit is a boddle if both foo and bar are true
- *
- * the data is structured such that foo_havers and bar_havers
- * are tables that maintain the history of those properties
- * for our fizzits ( eg we need to know when an admin or
- * support person changed that status of the property )
- *
- * so, we need to do a couple of queries to find the boddles
- *
- * we don't need to identify the boddles, though. this function
- * only returns true if *any* of the input fizzit_ids refer
- * to a boddle
- ***/
- foo_havers = getFooHavers( fizzit_ids )
- bar_havers = getBarHavers( fizzit_ids )
- return ( foo_havers.count > 0 ) && ( bar_havers.count > 0 )
- }
Add Comment
Please, Sign In to add comment