本文整理汇总了PHP中SugarBean::SugarBean方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarBean::SugarBean方法的具体用法?PHP SugarBean::SugarBean怎么用?PHP SugarBean::SugarBean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarBean
的用法示例。
在下文中一共展示了SugarBean::SugarBean方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Worksheets
function Worksheets()
{
$this->worksheet_tour_id = $id;
global $sugar_config;
$noidung = new stdClass();
parent::SugarBean();
}
示例2: Currency
function Currency()
{
parent::SugarBean();
$this->field_defs['hide'] = array('name' => 'hide', 'source' => 'non-db', 'type' => 'varchar', 'len' => 25);
$this->field_defs['unhide'] = array('name' => 'unhide', 'source' => 'non-db', 'type' => 'varchar', 'len' => 25);
$this->disable_row_level_security = true;
}
示例3:
function __construct($token = '', $secret = '')
{
parent::SugarBean();
$this->token = $token;
$this->secret = $secret;
$this->setState(self::REQUEST);
}
示例4: UserSignature
function UserSignature()
{
//Ensure the vardefs get loaded.
global $dictionary;
require_once "metadata/users_signaturesMetaData.php";
parent::SugarBean();
}
示例5: Document
function Document()
{
parent::SugarBean();
$this->setupCustomFields('Documents');
//parameter is module name
$this->disable_row_level_security = false;
}
示例6: MergeRecord
function MergeRecord($merge_module = '', $merge_id = '')
{
global $sugar_config;
parent::SugarBean();
if ($merge_module != '') {
$this->load_merge_bean($merge_module, $merge_id);
}
}
示例7: Dashboard
function Dashboard()
{
parent::SugarBean();
$this->setupCustomFields('Dashboard');
foreach ($this->field_defs as $field) {
$this->field_name_map[$field['name']] = $field;
}
}
示例8: Currency
function Currency()
{
parent::SugarBean();
global $app_strings, $current_user, $sugar_config, $locale;
$this->field_defs['hide'] = array('name' => 'hide', 'source' => 'non-db', 'type' => 'varchar', 'len' => 25);
$this->field_defs['unhide'] = array('name' => 'unhide', 'source' => 'non-db', 'type' => 'varchar', 'len' => 25);
$this->disable_row_level_security = true;
}
示例9: __construct
public function __construct($name, $vardefs)
{
global $dictionary;
$this->object_name = $name;
$this->table_name = $name;
$dictionary[$this->object_name] = $vardefs;
parent::SugarBean();
}
示例10: DocumentRevision
function DocumentRevision()
{
parent::SugarBean();
$this->setupCustomFields('DocumentRevisions');
//parameter is module name
$this->disable_row_level_security = true;
//no direct access to this module.
}
示例11: SchedulersJob
/**
* Sole constructor.
*/
function SchedulersJob()
{
parent::SugarBean();
require_once 'modules/Users/User.php';
$user = new User();
$user->retrieve('1');
// Scheduler jobs run as Admin
$this->user = $user;
}
示例12: array
function Bug42475TestBean()
{
$this->module_dir = 'Accounts';
$this->object_name = 'Account';
parent::SugarBean();
// Fake a fetched row
$this->fetched_row = array('test_field' => 257.8300000001);
$this->test_field = 257.83;
}
示例13: Opportunity
function Opportunity()
{
parent::SugarBean();
global $sugar_config;
if (!$sugar_config['require_accounts']) {
unset($this->required_fields['account_name']);
}
global $current_user;
}
示例14: SchedulersJob
/**
* Sole constructor.
*/
function SchedulersJob($init = true)
{
parent::SugarBean();
if ($init) {
$user = new User();
$user->retrieve('1');
// Scheduler jobs run as Admin
$this->user = $user;
}
}
示例15: Dashboard
function Dashboard()
{
parent::SugarBean();
$this->setupCustomFields('Dashboard');
foreach ($this->field_defs as $field) {
$this->field_name_map[$field['name']] = $field;
}
$this->team_id = 1;
// make the item globally accessible
}