daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function hasChildren() {
  2.                 $sqlQuery = new SQLQuery(
  3.                         "COUNT('SiteTree_Live'.'ID')", "'SiteTree_Live'", "'ParentID' = ". $this->ID
  4.                         );
  5.                 $cnt = (int) $sqlQuery->execute()->value();
  6.                         return $cnt > 0 ? true : false;
  7.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top