Beispiel #1
0
 public function __construct()
 {
     $twigLoader = new Twig_Loader_Filesystem(RRApplication::getSystemApplicationDirectory() . 'templates');
     $this->twigObj = new Twig_Environment($twigLoader, array());
     $this->renderArray = array();
     $this->renderArray['System']['LibPath'] = RRApplication::getLibPath();
     $this->renderArray['System']['DicePath'] = RRApplication::getDiceImgPath();
 }
Beispiel #2
0
 public function getJsonArray()
 {
     $dieArray = array();
     $dieArray['dieAbbr'] = $this->getDieAbbrev();
     $dieArray['dieType'] = $this->getDieName();
     $dieArray['dieLogo'] = 'http://' . RRApplication::getDiceImgPath() . $this->getDieLogo();
     $dieArray['dieSide'] = $this->getCurrentSide();
     $dieArray['dieSImg'] = 'http://' . RRApplication::getDiceImgPath() . $this->getCurrentSideDieLogo();
     return $dieArray;
 }