/**
  * Returns how many child albums this album has.
  *
  * @return An integer, or '0' if the album has no children.
  */
 function getNumChildren()
 {
     // breaking the rules here again...
     if ($this->_numChildren == -1) {
         $albums = new GalleryAlbums();
         $this->_numChildren = $albums->getNumChildren($this->getId());
     }
     return $this->_numChildren;
 }