Skip to content

Instantly share code, notes, and snippets.

@baltazarparra
Created May 3, 2017 17:22
Show Gist options
  • Save baltazarparra/0dd26f8e1f56d8cd12b1ba9dfb2ae8a2 to your computer and use it in GitHub Desktop.
Save baltazarparra/0dd26f8e1f56d8cd12b1ba9dfb2ae8a2 to your computer and use it in GitHub Desktop.
if (is_array($this->_arrCfgCmp[$this->_cmpSelecionado]) && array_key_exists($atributo, $this->_arrCfgCmp[$this->_cmpSelecionado])) {
return $this->_arrCfgCmp[$this->_cmpSelecionado][$atributo];
} else if ($info != null && array_key_exists($atributo, $info)) {
$info = parent::info();
if (is_array($info['metadata'][$this->_cmpSelecionado]) && array_key_exists($atributo, $info['metadata'][$this->_cmpSelecionado])) {
return $info['metadata'][$this->_cmpSelecionado][$atributo];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment