Пример #1
0
 /**
  *	Return TRUE if field is defined
  *	@return bool
  *	@param $key string
  **/
 function exists($key)
 {
     return \Dsc\ArrayHelper::exists($this->document, $key);
 }
Пример #2
0
 /**
  * Sets the theme to be used for the current rendering, but only if it has been registered.
  * if a path is provided, it will be registered.
  *
  * @param unknown $theme            
  */
 public function setTheme($theme, $path = null)
 {
     if ($path) {
         $this->registerThemePath($path, $theme);
     }
     if (\Dsc\ArrayHelper::exists($this->dsc_theme, 'themes.paths.' . $theme)) {
         \Dsc\ArrayHelper::set($this->dsc_theme, 'themes.current', $theme);
     }
     return $this;
 }
Пример #3
0
 /**
  * Return TRUE if field is defined
  *
  * @return bool
  * @param $key string            
  *
  */
 function exists($key)
 {
     if (\Dsc\ArrayHelper::exists($this->__doc, $key) || $this->isPublic($key)) {
         return true;
     }
     return false;
 }