Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
revcomment.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Generated Header (not documented yet)
8
*
9
* @author Anakeen
10
* @version $Id: revcomment.php,v 1.5 2005/06/28 08:37:46 eric Exp $
11
* @package FDL
12
* @subpackage GED
13
*/
14
/**
15
*/
16
// ---------------------------------------------------------------
17
// $Id: revcomment.php,v 1.5 2005/06/28 08:37:46 eric Exp $
18
// $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/revcomment.php,v $
19
// ---------------------------------------------------------------
20
include_once (
"FDL/Class.Doc.php"
);
21
include_once (
"FDL/Class.DocAttr.php"
);
22
function
revcomment
(
Action
&
$action
)
23
{
24
$dbaccess
= $action->dbaccess;
25
$docid
= GetHttpVars(
"id"
, 0);
26
27
$doc
=
new_Doc
(
$dbaccess
,
$docid
);
28
29
$err
=
$doc
->lock(
true
);
// auto lock
30
if
(
$err
!=
""
) $action->ExitError(
$err
);
31
32
$err
=
$doc
->canEdit();
33
if
(
$err
!=
""
) $action->ExitError(
$err
);
34
35
$action->lay->eSet(
"APP_TITLE"
, _($action->parent->description));
36
$action->lay->eSet(
"title"
,
$doc
->getTitle());
37
$action->lay->eSet(
"docid"
, (
int
)
$doc
->id);
38
}
$action
global $action
Definition:
accountRefreshGroup.php:16
Action
Definition:
Class.Action.php:24
$docid
$docid
Definition:
cleanFamily.php:13
new_Doc
new_Doc($dbaccess, $id= '', $latest=false)
Definition:
freedom_util.php:119
revcomment
revcomment(Action &$action)
Definition:
revcomment.php:22
$dbaccess
$dbaccess
Definition:
checkVault.php:17
$err
if($file) if($subject==""&&$file) if($subject=="") $err
Definition:
fdl_sendmail.php:78
$doc
$doc
Definition:
SetDocVaultIndex.php:39
← centre documentaire
© anakeen