Exemple #1
0
 /**
  * Get the path of the gallery
  * 
  * @param numeric $pStructureId ID of the gallery we want to find the path to
  * @access public
  * @return Gallery path on success, FALSE on failure - mErrors will contain reason for failure
  */
 function getGalleryPath($pStructureId = NULL)
 {
     if (!@BitBase::verifyId($pStructureId)) {
         $pStructureId = $this->mStructureId;
     }
     if (@BitBase::verifyId($pStructureId)) {
         global $gStructure;
         // create new object if needed
         if (empty($gStructure)) {
             $gStructure = new LibertyStructure();
         }
         // get the structure path
         $ret = $gStructure->getPath($pStructureId);
     }
     return !empty($ret) ? $ret : FALSE;
 }