本文整理汇总了PHP中Browse::getPersonConf方法的典型用法代码示例。如果您正苦于以下问题:PHP Browse::getPersonConf方法的具体用法?PHP Browse::getPersonConf怎么用?PHP Browse::getPersonConf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browse
的用法示例。
在下文中一共展示了Browse::getPersonConf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: spl_autoload_register
require_once APPROOT . '3rd/Zend/ ' . $class_name . '.php';
}
if (file_exists(APPROOT . 'data/' . $class_name . '.php')) {
require_once APPROOT . 'data/' . $class_name . '.php';
}
}
}
spl_autoload_register(array('AutoLoadClass', '__autoload'));
//include(APPROOT.'3rd/phpgacl/gacl.class.php');
include APPROOT . '3rd/phpgacl/gacl_api.class.php';
include APPROOT . 'inc/handler_db.inc';
# $gacl= new gacl(array('db_host'=> $conf['db_host'] , 'db_name'=> $conf['db_name'] , 'db_user'=> $conf['db_user'], 'db_password'=> $conf['db_pass'] , 'db_table_prefix'=>'gacl_' , 'db_type'=> 'mysql' ));
# $gacl_api = new gacl_api(array('db_host'=> $conf['db_host'] , 'db_name'=> $conf['db_name'] , 'db_user'=> $conf['db_user'], 'db_password'=> $conf['db_pass'] , 'db_table_prefix'=>'gacl_' , 'db_type'=> 'mysql' ));
$gacl = new gacl(array('db' => $global['db'], 'db_table_prefix' => 'gacl_'));
$gacl_api = new gacl_api(array('db' => $global['db'], 'db_table_prefix' => 'gacl_'));
$root_aro = $gacl_api->get_group_id('root', 'OpenEvSysUser', 'ARO');
//var_dump('root_aro' , $root_aro); exit(0);
$root_axo = $gacl_api->get_group_id('root', 'root', 'AXO');
//var_dump($root_axo);
$g_person = $gacl_api->add_group('person', 'Person', $root_axo, 'AXO');
$gacl_api->add_object_section('Person', 'person', 3, 0, 'AXO');
$gacl_api->add_acl(array('access' => array('access')), null, array($root_aro), null, array($g_person));
$persons = Browse::getPersonConf();
//var_dump($persons); exit(0);
foreach ($persons as $person) {
acl_add_person($person['person_record_number']);
//if event is marked as confidential limit it to this user and admin.
if ($person['confidentiality'] == 'y') {
acl_set_person_permissions($person['person_record_number']);
}
}
示例2: act_update_person_perms
public function act_update_person_perms()
{
$persons = Browse::getPersonConf();
//var_dump($persons); exit(0);
foreach ($persons as $person) {
acl_add_person($person['person_record_number']);
//if event is marked as confidential limit it to this user and admin.
if ($person['confidentiality'] == 'y') {
acl_set_person_permissions($person['person_record_number']);
}
}
}