/** * SysMiscNeuralForm::ConstructorFieldsetOpen($Constructor, $Array) * * Metodo Contructor de Apertura del Fieldset * * @param $Array: array asociativo con los datos a construir * @param $Constructor: Array con los constructores html correspondientes * */ public static function ConstructorFieldsetOpen($Constructor, $Array) { foreach ($Array as $Llave => $Valor) { if ($Llave == 'style') { $Campo[] = is_array($Valor) ? SysMiscNeuralForm::OrganizarStyle($Valor) : ''; } else { $Campo[] = $Valor == true ? $Llave . "=\"{$Valor}\"" : ''; } } $CamposOrganizados = implode(' ', $Campo); return str_replace('{ CAMPOS }', trim($CamposOrganizados), $Constructor); }
private function ConstructorLoader($Aplicacion) { $ArrayApp = SysMisNeural::CargarArchivoYAMLAplicacion('Configuracion/ConfiguracionScripts.yaml'); $ClassContenedor = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['CONTENEDOR']['CLASS'] == 'DESACTIVADO' ? '' : ' class="' . $ArrayApp[$Aplicacion]['LOADER']['CLASS']['CONTENEDOR']['CLASS'] . '"'; $ClassImagen = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['IMAGEN']['CLASS'] == 'DESACTIVADO' ? '' : ' class="' . $ArrayApp[$Aplicacion]['LOADER']['CLASS']['IMAGEN']['CLASS'] . '"'; $StyleContenedor = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['CONTENEDOR']['STYLE'] == 'DESACTIVADO' ? '' : ' ' . SysMiscNeuralForm::OrganizarStyle($ArrayApp[$Aplicacion]['LOADER']['STYLE']['CONTENEDOR']); $StyleImagen = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['IMAGEN']['STYLE'] == 'DESACTIVADO' ? '' : ' ' . SysMiscNeuralForm::OrganizarStyle($ArrayApp[$Aplicacion]['LOADER']['STYLE']['IMAGEN']); return '<div' . $ClassContenedor . $StyleContenedor . '><img src="' . NeuralRutasBase::RutaBase($ArrayApp[$Aplicacion]['LOADER']['LOADER']) . '" alt=""' . $ClassImagen . $StyleImagen . ' /></div>'; unset($Aplicacion, $ArrayApp, $ClassContenedor, $ClassImagen, $StyleContenedor, $StyleImagen); }
private static function ConstructorLoader($Aplicacion) { $ArrayApp = SysNeuralNucleo::CargarArchivoJsonConfiguracion('ConfigScripts.json'); $ClassContenedor = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['CONTENEDOR']['CLASS'] == 'DESACTIVADO' ? '' : ' class="' . $ArrayApp[$Aplicacion]['LOADER']['CLASS']['CONTENEDOR']['CLASS'] . '"'; $ClassImagen = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['IMAGEN']['CLASS'] == 'DESACTIVADO' ? '' : ' class="' . $ArrayApp[$Aplicacion]['LOADER']['CLASS']['IMAGEN']['CLASS'] . '"'; $StyleContenedor = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['CONTENEDOR']['STYLE'] == 'DESACTIVADO' ? '' : ' ' . SysMiscNeuralForm::OrganizarStyle($ArrayApp[$Aplicacion]['LOADER']['STYLE']['CONTENEDOR']); $StyleImagen = $ArrayApp[$Aplicacion]['LOADER']['CLASS']['IMAGEN']['STYLE'] == 'DESACTIVADO' ? '' : ' ' . SysMiscNeuralForm::OrganizarStyle($ArrayApp[$Aplicacion]['LOADER']['STYLE']['IMAGEN']); return '<div' . $ClassContenedor . $StyleContenedor . '><img src="' . __NeuralUrlRoot__ . $ArrayApp[$Aplicacion]['LOADER']['LOADER'] . '" alt=""' . $ClassImagen . $StyleImagen . ' /></div>'; unset($Aplicacion, $ArrayApp, $ClassContenedor, $ClassImagen, $StyleContenedor, $StyleImagen); }