public function testGetLevelItem()
 {
     $aAssumedResult = array('id' => $this->nId, 'dim_id' => $this->nId, 'label' => 'label', 'code' => 'code', 'hidden' => Level::VISIBLE, 'level' => Level::LEVEL_1);
     $this->assertEquals($aAssumedResult, $this->object->getLevelItem(Level::LEVEL_1, $this->nId));
 }
Exemple #2
0
 /**
  * get level code
  *
  * @param int $nLevel
  * @param int $nLevelId
  * @return string
  */
 public function getLevelCode($nLevel, $nLevelId)
 {
     $oL = new Level($this->db);
     $aLI = $oL->getLevelItem($nLevel, $nLevelId);
     return $aLI['code'];
 }