当前位置: 首页>>代码示例>>PHP>>正文


PHP log::insert方法代码示例

本文整理汇总了PHP中log::insert方法的典型用法代码示例。如果您正苦于以下问题:PHP log::insert方法的具体用法?PHP log::insert怎么用?PHP log::insert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在log的用法示例。


在下文中一共展示了log::insert方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: log

 function log()
 {
     $action = $_REQUEST['ajax'];
     $pagename = $this->pagename;
     $object_id = $this->object_id;
     log::insert($pagename, $action, get_current_user_id(), $object_id);
 }
开发者ID:xflash8,项目名称:staff-2016,代码行数:7,代码来源:ajax-handler.php

示例2: registerPartido

 /**
  * Esta funcion guarda en el log para el sistema de auditoria
  * @access public
  * @author: fzalazar
  * @param $accion: id de la accion
  * @param $parametro: descripcion de la accion (opcional)
  * @param $torneo: id del torneo (opcional)
  * @param $rueda: rueda (opcional)
  * @param $fecha: numero de fecha (opcional)
  * @param $partido: partido (opcional)
  * @return true si pudo insertar en el log, false en caso contrario
  * @modificacion: dabiricha (agregado de parametros opcionales: torneo, rueda, fecha y partido)
  */
 function registerPartido($accion, $parametro = '', $torneo = 0, $rueda = 0, $fecha = 0, $partido = 0)
 {
     $log = new log();
     $log->id_accion = $accion;
     $log->fecha = date("Y/m/d");
     $log->hora = date("H:i:s");
     $log->parametro = $parametro ? $parametro : NULL;
     $log->torneo = $torneo;
     $log->rueda = $rueda;
     $log->numero_fecha = $fecha;
     $log->partido = $partido;
     $log->id_usuario = RegistryHelper::getIdUsuario();
     return $log->insert();
 }
开发者ID:Nilphy,项目名称:moteguardian,代码行数:27,代码来源:clase.Logger.php

示例3: log

 function log()
 {
     if ($_GET['sub']) {
         $pagename = $this->pagename . ' sub ' . $_GET['sub'];
         $action = 'view';
     } elseif ($_GET['mode']) {
         $pagename = $this->pagename . ' sub ' . $_GET['mode'];
         $action = 'view';
     } elseif ($_GET['action']) {
         $pagename = $this->pagename . ' sub ' . $_GET['action'];
         $action = 'view';
     } else {
         $pagename = $this->pagename;
         $action = 'view';
     }
     log::insert($pagename, $action, get_current_user_id(), $action);
 }
开发者ID:xflash8,项目名称:staff-2016,代码行数:17,代码来源:card.class.php

示例4: displayMessages

<?php

include "header.php";
// Handle all the ajax calls
require_once "includes/ajaxHandler.php";
localVars::add("results", displayMessages());
log::insert("Index: View Page");
$engine->eTemplate("include", "header");
?>

<section>
	<header class="page-header">
		<h1>Select a Task</h1>
	</header>

	<nav id="breadcrumbs">
		<ul class="breadcrumb">
			<li><a href="{local var="siteRoot"}">Home</a></li>
		</ul>
	</nav>

	{local var="results"}

	<ul>
		{local var="projectList"}
	</ul>

	<ul class="pickList">
		<li>
			<a href="dataEntry/selectForm.php" class="btn">Create new Object</a>
		</li>
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:index.php

示例5: ini_set

<?php

include "../header.php";
ini_set('memory_limit', '-1');
if (!isset($engine->cleanGet['MYSQL'])) {
    $engine->cleanGet['MYSQL'] = array("listType" => "");
}
// Setup the start of the breadcrumbs and pre-populate what we can
$siteRoot = localvars::get('siteRoot');
$breadCrumbs = array(sprintf('<a href="%s">Home</a>', $siteRoot), sprintf('<a href="%sdataView/list.php">List Objects</a>', $siteRoot));
log::insert("Data View: List", 0, isset($engine->cleanGet['MYSQL']['formID']) ? $engine->cleanGet['MYSQL']['formID'] : 0, $engine->cleanGet['MYSQL']['listType']);
// Figure out what kind of list we're building
switch ($engine->cleanGet['MYSQL']['listType']) {
    case 'metadataObjects':
        $list = listGenerator::metadataObjects($engine->cleanGet['MYSQL']['formID'], $engine->cleanGet['MYSQL']['objectID']);
        break;
    case 'selectForm':
        $list = listGenerator::createFormSelectList();
        localvars::add('subTitle', ' - Select Form');
        $breadCrumbs[] = sprintf('<a href="%sdataView/list.php?listType=selectForm">Select Form</a>', $siteRoot);
        break;
    case 'selectProject':
        $list = listGenerator::createProjectSelectList();
        localvars::add('subTitle', ' - Select Project');
        $breadCrumbs[] = sprintf('<a href="%sdataView/list.php?listType=selectProject">Select Project</a>', $siteRoot);
        break;
    case 'form':
        // $time_start = microtime(true);
        $list = listGenerator::createFormObjectList($engine->cleanGet['MYSQL']['formID']);
        $form = forms::get($engine->cleanGet['MYSQL']['formID']);
        localvars::add('subTitle', ' - ' . $form['title']);
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:list.php

示例6: die

        } else {
            die(revisions::generateFieldDisplay($revision, $fields));
        }
    }
    ###############################################################################################################
    // Build the select list
    $selectARevision = "";
    foreach ($revisions->getSecondaryIDs($engine->cleanGet['MYSQL']['objectID'], 'DESC') as $revisionID) {
        $selectARevision .= sprintf('<option value="%s">%s</option>', $revisionID, date('D, M d, Y - h:i a', $revisionID));
    }
    localVars::add("selectARevision", $selectARevision);
    localvars::add("formName", $form['title']);
    localvars::add("objectID", $objectID);
    localvars::add("currentVersion", revisions::generateFieldDisplay($object, $fields));
} catch (Exception $e) {
    log::insert("Data Entry: Revision: Caught Exception", 0, 0, $e->getMessage());
    errorHandle::newError($e->getMessage(), errorHandle::DEBUG);
    errorHandle::errorMsg($e->getMessage());
}
localVars::add("results", displayMessages());
$engine->eTemplate("include", "header");
?>

<form id="revisionForm" action="" method="post">
	{engine name="csrf"}
	<input type="hidden" name="revisionID" id="revisionID" value="">
</form>


<header class="page-header">
	<h1>{local var="formName"}</h1>
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:index.php

示例7: array

    $l->addField(array("field" => "status", "label" => "Status", "type" => "select", "dupes" => TRUE, "options" => array(array("value" => "Librarian", "label" => "Librarian"), array("value" => "Staff", "label" => "Staff"), array("value" => "Student", "label" => "Student", "selected" => TRUE), array("value" => "Systems", "label" => "Systems"))));
    return $l;
}
if (isset($engine->cleanPost['MYSQL'][$tableName . "_submit"])) {
    log::insert("Admin: Insert New User");
    $list = defineList($tableName);
    $list->insert();
}
if (isset($engine->cleanPost['MYSQL'][$tableName . "_update"])) {
    log::insert("Admin: Update User");
    $list = defineList($tableName);
    $list->update();
}
$list = defineList($tableName);
localVars::add("results", displayMessages());
log::insert("Admin: View Users Page");
$engine->eTemplate("include", "header");
?>

<section>
	<header class="page-header">
		<h1>Manage Users</h1>
	</header>

	<nav id="breadcrumbs">
		<ul class="breadcrumb">
		<li><a href="{local var="siteRoot"}">Home</a></li>
		<li><a href="{local var="siteRoot"}/admin/">Admin</a></li>
		</ul>
	</nav>
开发者ID:PseudoAj,项目名称:mfcs,代码行数:30,代码来源:index.php

示例8: header

        $loginFail = TRUE;
    } else {
        global $engineVars;
        if ($engine->login($loginType)) {
            log::insert("Login");
            if (isset($engine->cleanGet['HTML']['url'])) {
                header("Location: " . $engine->cleanGet['HTML']['URL']);
            } else {
                if (isset($page)) {
                    header("Location: " . $page . "?" . $qs);
                } else {
                    header("Location: " . $engineVars['WEBROOT']);
                }
            }
        } else {
            log::insert("Login Failure");
            $loginFail = TRUE;
        }
    }
}
?>

<html>
<head>
	<title>MFCS Login</title>

	<link rel="stylesheet" type="text/css" href="/css/login.css"/>

</head>

<body>
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:index.php

示例9: Exception

<?php

include "../header.php";
try {
    if (($accordionList = listGenerator::generateAccordionFormList()) === FALSE) {
        throw new Exception("Error generating Form List");
    }
    localvars::add("accordionList", $accordionList);
} catch (Exception $e) {
    errorHandle::errorMsg($e->getMessage());
}
localVars::add("results", displayMessages());
log::insert("Form Creator: View Forms");
$engine->eTemplate("include", "header");
?>

<section>
	<header class="page-header">
		<h1>Select a Form</h1>
	</header>
	<nav id="breadcrumbs">
		<ul class="breadcrumb">
			<li><a href="{local var="siteRoot"}">Home</a></li>
			<li><a href="{local var="siteRoot"}/formCreator/list.php">List Forms</a></li>
		</ul>
	</nav>

	{local var="results"}

	<div class="container-fluid">
		{local var="accordionList"}
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:list.php

示例10:

<?php

require "header.php";
log::insert("Admin: View index Page");
$engine->eTemplate("include", "header");
?>

<section>
	<header class="page-header">
		<h1>Administrator Actions</h1>
	</header>

	<nav id="breadcrumbs">
		<ul class="breadcrumb">
			<li><a href="{local var="siteRoot"}">Home</a></li>
		</ul>
	</nav>

	<ul class="pickList">
		<li>
			<a href="projects/" class="btn">Projects</a>
		</li>
		<li>
			<a href="users/" class="btn">Users</a>
		</li>
		<li>
			<a href="watermarks/" class="btn">Watermarks</a>
		</li>
	</ul>
</section>
开发者ID:PseudoAj,项目名称:mfcs,代码行数:30,代码来源:index.php

示例11: isset

<?php

// @TODO there is way too much logic in this file. It needs to be refactored out.
include "../header.php";
$formID = isset($engine->cleanPost['HTML']['id']) ? $engine->cleanPost['HTML']['id'] : (isset($engine->cleanGet['HTML']['id']) ? $engine->cleanGet['HTML']['id'] : NULL);
if (is_empty($formID)) {
    $formID = NULL;
}
log::insert("Form Creator: Edit Forms", 0, $formID);
if (isset($engine->cleanPost['MYSQL']['deleteForm'])) {
    forms::delete($engine->cleanGet['HTML']['id']);
    http::redirect(localvars::get('siteRoot') . 'formCreator/list.php', 301);
}
if (isset($engine->cleanPost['MYSQL']['submitNavigation'])) {
    try {
        if (navigation::updateFormNav($engine->cleanPost['RAW']['groupings']) === FALSE) {
            throw new Exception("Error saving navigation");
        }
        errorHandle::successMsg("Successfully updated Form Navigation.");
    } catch (Exception $e) {
        errorHandle::newError("{$e->getFile()}:{$e->getLine()} {$e->getMessage()}", errorHandle::DEBUG);
        errorHandle::errorMsg("Error Updating Navigation");
        $engine->openDB->transRollback();
        $engine->openDB->transEnd();
    }
}
if (isset($engine->cleanPost['MYSQL']['submitForm'])) {
    $engine->openDB->transBegin();
    $form = json_decode($engine->cleanPost['RAW']['form'], TRUE);
    $fields = json_decode($engine->cleanPost['RAW']['fields'], TRUE);
    $idno = NULL;
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:index.php

示例12: catch

// build the search interface, we do this regardless of
try {
    $interface = mfcsSearch::buildInterface();
    localvars::add("searchInterface", $interface);
} catch (Exception $e) {
    log::insert("Data View: Search: Error", 0, 0, $e->getMessage());
    errorHandle::errorMsg($e->getMessage());
}
// Make breadcrumbs
$crumbs = '';
foreach ($breadCrumbs as $breadCrumb) {
    $crumbs .= "<li>{$breadCrumb}</li>";
}
localvars::add("breadcrumbs", $crumbs);
localVars::add("results", displayMessages());
log::insert("Data View: Search: View Page");
$engine->eTemplate("include", "header");
?>

<section>
	<header class="page-header">
		<h1>Search Objects{local var="subTitle"}</h1>
	</header>
	<nav id="breadcrumbs">
		<ul class="breadcrumb">
			{local var="breadcrumbs"}
		</ul>
	</nav>

	{local var="results"}
开发者ID:PseudoAj,项目名称:mfcs,代码行数:30,代码来源:search.php

示例13: exporting

<?php

include "../header.php";
$engine->eTemplate("include", "header");
$stats = new exporting(".");
log::insert("Exporting: View Index");
localvars::add("exportsList", $stats->showExportListing());
?>
<section>
	<header class="page-header">
		<h1>Exports</h1>
	</header>

	<nav id="breadcrumbs">
		<ul class="breadcrumb">
			<li><a href="{local var="siteRoot"}">Home</a></li>
			<li><a href="{local var="siteRoot"}/exports/">Exports</a></li>
		</ul>
	</nav>

	{local var="exportsList"}

</section>
<?php 
$engine->eTemplate("include", "footer");
开发者ID:PseudoAj,项目名称:mfcs,代码行数:25,代码来源:index.php

示例14: Exception

    // Project Tab Stuff
    //////////
    //////////
    // Children Tab Stuff
    if (($formList = listGenerator::generateFormSelectList($engine->cleanGet['MYSQL']['objectID'])) === FALSE) {
        errorHandle::errorMsg("Error getting Forms Listing");
        throw new Exception('Error');
    } else {
        localvars::add("formList", $formList);
    }
    $childList = listGenerator::generateChildList($engine->cleanGet['MYSQL']['objectID']);
    localVars::add("childrenList", is_empty($childList) ? 'No children available' : $childList);
    // Children Tab Stuff
    //////////
} catch (Exception $e) {
    log::insert("Data View: Object: Error", 0, 0, $e->getMessage());
    errorHandle::errorMsg($e->getMessage());
}
localvars::add("leftnav", navigation::buildProjectNavigation($engine->cleanGet['MYSQL']['formID']));
localVars::add("results", displayMessages());
$engine->eTemplate("include", "header");
?>

<section>
	<header class="page-header">
		<h1>View Object</h1>
	</header>

	<div class="container-fluid">
		<div class="span3">
			{local var="leftnav"}
开发者ID:PseudoAj,项目名称:mfcs,代码行数:31,代码来源:object.php

示例15: mfcsStats

<?php

include "../header.php";
$engine->eTemplate("include", "header");
log::insert("Stats: View Index Page");
$stats = new mfcsStats(".");
localvars::add("statsList", $stats->showStatFiles());
?>
<section>
	<header class="page-header">
		<h1>System Stats</h1>
	</header>

	<nav id="breadcrumbs">
		<ul class="breadcrumb">
			<li><a href="{local var="siteRoot"}">Home</a></li>
			<li><a href="{local var="siteRoot"}/stats/">Stats</a></li>
		</ul>
	</nav>

	{local var="statsList"}

</section>
<?php 
$engine->eTemplate("include", "footer");
开发者ID:PseudoAj,项目名称:mfcs,代码行数:25,代码来源:index.php


注:本文中的log::insert方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。