projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af86cad
)
Lock.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Nov 2010 08:15:34 +0000
(16:15 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 18 Nov 2010 08:15:34 +0000
(16:15 +0800)
Lock.php
patch
|
blob
|
history
diff --git
a/Lock.php
b/Lock.php
index
fac9e4f
..
69b0171
100644
(file)
--- a/
Lock.php
+++ b/
Lock.php
@@
-30,6
+30,19
@@
class Pman_Core_Lock extends Pman
if (!$x->get($_REQUEST['on_id'])) {
$this->jerr("Item does not exist");
}
if (!$x->get($_REQUEST['on_id'])) {
$this->jerr("Item does not exist");
}
+ $curlock = DB_DataObject::factory('Core_locking');
+ $curlock->setFrom(array(
+ 'on_id' => $_REQUEST['on_id'],
+ 'on_table' => $_REQUEST['on_table']
+ ));
+ $locked = false;
+ if ($curlock->find(true)) {
+ $locked = true;
+ }
+
+
+
+
}
}
\ No newline at end of file
}
}
\ No newline at end of file