本文整理汇总了PHP中Utils_RecordBrowserCommon::set_QFfield_callback方法的典型用法代码示例。如果您正苦于以下问题:PHP Utils_RecordBrowserCommon::set_QFfield_callback方法的具体用法?PHP Utils_RecordBrowserCommon::set_QFfield_callback怎么用?PHP Utils_RecordBrowserCommon::set_QFfield_callback使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utils_RecordBrowserCommon
的用法示例。
在下文中一共展示了Utils_RecordBrowserCommon::set_QFfield_callback方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: refresh_magic_callbacks
public function refresh_magic_callbacks()
{
/** @var $field RBO_FieldDefinition */
foreach ($this->fields() as $field) {
if (!$field->magic_callbacks()) {
continue;
}
$field_id = Utils_RecordBrowserCommon::get_field_id($field->name);
if (!$field->QFfield_callback) {
$qffield_callback = 'QFfield_' . $field_id;
if (method_exists($this, $qffield_callback) || method_exists($this->class, $qffield_callback)) {
Utils_RecordBrowserCommon::set_QFfield_callback($this->tab, $field->name, get_class($this) . '::__QFfield_magic_callback');
} else {
Utils_RecordBrowserCommon::unset_QFfield_callback($this->tab, $field->name);
}
}
if (!$field->display_callback) {
$display_callback = 'display_' . $field_id;
if (method_exists($this, $display_callback) || method_exists($this->class, $display_callback)) {
Utils_RecordBrowserCommon::set_display_callback($this->tab, $field->name, get_class($this) . '::__display_magic_callback');
} else {
Utils_RecordBrowserCommon::unset_display_callback($this->tab, $field->name);
}
}
}
}
示例2: defined
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
Utils_RecordBrowserCommon::set_display_callback('rc_mails', 'Thread', array('CRM_RoundcubeCommon', 'display_mail_thread'));
Utils_RecordBrowserCommon::set_QFfield_callback('rc_mails', 'Thread', array('CRM_RoundcubeCommon', 'QFfield_mail_thread'));
Utils_RecordBrowserCommon::new_addon('rc_mail_threads', 'CRM/Roundcube', 'thread_addon', _M('E-mails'));
示例3: defined
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
Utils_RecordBrowserCommon::set_QFfield_callback('company', 'Tax ID', array('CRM_ContactsCommon', 'QFfield_tax_id'));
Utils_RecordBrowserCommon::set_QFfield_callback('company', 'Company Name', array('CRM_ContactsCommon', 'QFfield_cname'));
示例4: defined
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
Utils_RecordBrowserCommon::set_caption('phonecall_related', _M('Phonecalls Related Recordsets'));
Utils_RecordBrowserCommon::set_QFfield_callback('phonecall', 'Related', array('CRM_PhoneCallCommon', 'QFfield_related'));
DB::Execute('UPDATE phonecall_field SET param=%s WHERE field=%s', array('__RECORDSETS__::;CRM_PhoneCallCommon::related_crits', 'Related'));
示例5: array
if ($allow) {
$r2 = DB::Execute('SELECT * FROM contact_data_1 WHERE f_login=%d', array($row['id']));
while ($r = $r2->FetchRow()) {
if (!$r['f_access']) {
$gr = '__vendor_manager__';
} else {
$gr = $r['f_access'] . 'vendor_manager__';
}
DB::Execute('UPDATE contact_data_1 SET f_access=%s WHERE id=%d', array($gr, $r['id']));
}
}
}
}
if (ModuleManager::is_installed('Custom_CADES_AccessRestrictions') >= 0) {
DB::Execute('UPDATE cades_behavior_log_field SET type=%s, param=%s WHERE field=%s', array('select', 'contact::Last Name|First Name;', 'Person'));
Utils_RecordBrowserCommon::set_QFfield_callback('cades_behavior_log', 'Person', array('Custom_CADES_BehaviorCommon', 'QFfield_log_person'));
Utils_CommonDataCommon::extend_array('Contacts/Access', array('mrm' => _M('Medical Record Manager')));
$ret = DB::Execute('SELECT * FROM user_login');
while ($row = $ret->FetchRow()) {
$aid = get_acl_user_id($row['id']);
$allow = is_user_in_group($aid, 'Medical Record Manager');
$allow |= is_user_in_group($aid, 'Administrator');
$allow |= is_user_in_group($aid, 'Super administrator');
if ($allow) {
$r2 = DB::Execute('SELECT * FROM contact_data_1 WHERE f_login=%d', array($row['id']));
while ($r = $r2->FetchRow()) {
if (!$r['f_access']) {
$gr = '__mrm__';
} else {
$gr = $r['f_access'] . 'mrm__';
}