Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function hasChildren() {
- $sqlQuery = new SQLQuery(
- "COUNT('SiteTree_Live'.'ID')", "'SiteTree_Live'", "'ParentID' = ". $this->ID
- );
- $cnt = (int) $sqlQuery->execute()->value();
- return $cnt > 0 ? true : false;
- }
Add Comment
Please, Sign In to add comment