Esempio n. 1
0
 public function __construct(array $eventData = null)
 {
     //default values
     $this->type = "event";
     $this->startHour = date("H:i:s");
     $this->finalHour = date("H:i:s");
     $this->color = "blue";
     $this->status = "process";
     $this->dateCreate = FechaHoraSrv();
     $this->notifyStatus = "pending";
     $this->keys = ["eventId", "title", "description", "type", "location", "startHour", "finalHour", "color", "status", "dateCreate", "userId", "googleCalendarEventId", "notifyStatus", "parentEventId", "calendarId", "eventMeta"];
     if ($eventData) {
         foreach ($eventData as $key => $value) {
             if (in_array($key, $this->keys)) {
                 if ($key === "eventMeta") {
                     if (!is_a($value, "EventMeta")) {
                         throw new Exception("eventMeta param isn't a EvenMeta object");
                     }
                 }
                 $this->{$key} = $value;
             }
         }
     }
 }
Esempio n. 2
0
<?php

require_once '_librerias/disenoVisual/menus.php';
require_once '_librerias/disenoVisual/cuerposite.php';
require_once '_librerias/php/funciones.php';
// error_reporting(E_ERROR);
$enlace = "./proforma.php";
$conexDefsei = conexDefsei();
$Id_Empresa = get('Id_Empresa');
$FechaHora = FechaHoraSrv();
$Url_id = get('Url_id');
$sql = 'SELECT Codigo,Url_id,Estado
	FROM sys_usuarios WHERE  Url_id = "' . $Url_id . '" ';
$rg = rGT($conexDefsei, $sql);
$Codigo_empresa = $rg["Codigo"];
$Nom_BD = "eco_" . $Codigo_empresa;
$Servidor = "LOCALHOST";
$ConexionEmpresa = conexSis_Emp($Servidor, $Nom_BD);
if (get('ProformaCod') != '') {
    Main(get('ProformaCod'));
}
if (get('Comprar') != '') {
    Comprar(get('Comprar'), '');
}
/////////////////// PROCESOS///////////////////////////////////////
if (get('Main') != '') {
    Main(get('Main'));
}
if (get("Formulario") != "") {
    // esta condicion inicia cuando se procesa la info de un formulario
    ///////////////////////////////////////////
Esempio n. 3
0
function addTempFile($code, $path, $newFileName, $fileName, $fileType, $formId, $userId, $enterpriseUser, $campo)
{
    $extension = pathinfo($fileName, PATHINFO_EXTENSION);
    return insert('sys_archivotemporal', array('Codigo' => $code, 'Path' => $path, 'Nombre' => $newFileName, 'TipoArchivo' => $fileType, 'Extencion' => $extension, 'Formulario' => $formId, 'Usuario' => $userId, 'Empresa' => $enterpriseUser, 'Estado' => 'Cargado', 'DiaHoraIniUPpl' => FechaHoraSrv(), 'NombreOriginal' => $fileName, 'Campo' => $campo));
}