Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
condition_write_access.inc
1
<?php
17
require_once SQ_CORE_PACKAGE_PATH.
'/system/conditions/condition/condition.inc'
;
18
32
class
Condition_Write_Access
extends
Condition
33
{
34
35
42
function
__construct
($assetid=0)
43
{
44
parent::__construct($assetid);
45
46
}
//end constructor
47
48
58
public
static
function
evaluate
(
Asset
$asset, Array $condition_data)
59
{
60
// first, check if someone's logged in
61
if
($GLOBALS[
'SQ_SYSTEM'
]->userPublic())
return
FALSE;
62
63
// next, check to see if the currently logged in user
64
// has write access
65
if
(!$asset->
writeAccess
(
''
))
return
FALSE;
66
67
return
TRUE;
68
69
}
//end evaluate()
70
71
72
}
//end class
73
?>
squiz_matrix
core
assets
system
conditions
condition_types
condition_write_access
condition_write_access.inc
Generated on Tue Jan 29 2013 14:04:39 for Squiz Matrix by
1.8.3.1