Ejemplo n.º 1
0
 /**
  *获取项目信息数组
  * @author wjh
  * @date 14-5-29
  * @param string $cfgid cfgid
  * @param stirng $evalue item key
  * @return array
  */
 public static function getConfigArray($cfgid, $evalue = null)
 {
     $items = ConfigInfo::getItems($cfgid);
     if (is_null($evalue)) {
         return $items;
     } else {
         return BArrayHelper::getValue($items, $evalue);
     }
 }
Ejemplo n.º 2
0
 /**
  * 获取类型定义的值(文本)内容
  * @author wjh 2014-6-3
  * @param array $arr
  * @param mixed $index index or key name
  * @return mixed
  */
 public static function getValue($arr, $index)
 {
     return BArrayHelper::getValue($arr, $index);
 }