本文整理汇总了PHP中Base_ThemeCommon::install_default_theme方法的典型用法代码示例。如果您正苦于以下问题:PHP Base_ThemeCommon::install_default_theme方法的具体用法?PHP Base_ThemeCommon::install_default_theme怎么用?PHP Base_ThemeCommon::install_default_theme使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base_ThemeCommon
的用法示例。
在下文中一共展示了Base_ThemeCommon::install_default_theme方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
$this->create_data_dir();
DB::CreateTable('libs_tcpdf_pdf_index', 'created_on T,' . 'filename C(32)', array('constraints' => ''));
return true;
}
示例2: install
public function install() {
Base_ThemeCommon::install_default_theme($this->get_type());
$ret = true;
$ret &= DB::CreateTable('utils_messenger_message','
id I4 AUTO KEY,
callback_method C(255) NOTNULL,
callback_args X,
message X,
created_by I4 NOTNULL,
created_on T NOTNULL,
alert_on T,
parent_module C(32) NOTNULL,
page_id C(32) NOTNULL',
array('constraints'=>', FOREIGN KEY (created_by) REFERENCES user_login(ID)'));
if(!$ret){
print('Unable to create table utils_messenger_message.<br>');
return false;
}
$ret &= DB::CreateTable('utils_messenger_users','
message_id I4,
done I1 DEFAULT 0,
user_login_id I4,
done_on T,
follow I1 DEFAULT 0',
array('constraints'=>' , FOREIGN KEY (message_id) REFERENCES utils_messenger_message(id), FOREIGN KEY (user_login_id) REFERENCES user_login(ID)'));
if(!$ret){
print('Unable to create table utils_messenger_users.<br>');
return false;
}
Base_AclCommon::add_permission(_M('Messenger Alerts'),array('ACCESS:employee'));
return $ret;
}
示例3: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
DB::CreateTable('utils_currency', 'id I AUTO KEY,' . 'symbol C(16),' . 'code C(8),' . 'decimal_sign C(2),' . 'thousand_sign C(2),' . 'decimals I1,' . 'active I1,' . 'default_currency I1,' . 'pos_before I1', array('constraints' => ''));
DB::Execute('INSERT INTO utils_currency (symbol, code, decimal_sign, thousand_sign, decimals, pos_before, active, default_currency) VALUES (%s, %s, %s, %s, %d, %d, %d, %d)', array('$', 'USD', '.', ',', 2, 1, 1, 1));
return true;
}
示例4: install
public function install()
{
$ret = DB::CreateTable('user_password', "user_login_id I KEY, password C(256) NOTNULL, mail C(255) NOTNULL", array('constraints' => ', FOREIGN KEY (user_login_id) REFERENCES user_login(id)'));
if ($ret === false) {
print 'Invalid SQL query - user_password table install';
return false;
}
$ret = DB::CreateTable('user_autologin', "user_login_id I NOTNULL, autologin_id C(32) NOTNULL, last_log T, description C(64)", array('constraints' => ', FOREIGN KEY (user_login_id) REFERENCES user_login(id)'));
if ($ret === false) {
print 'Invalid SQL query - user_autologin table install';
return false;
}
$ret = DB::CreateTable('user_login_ban', "failed_on I4, from_addr C(32)");
if ($ret === false) {
print 'Invalid SQL query - user_login_ban table install';
return false;
}
$ret = DB::CreateTable('user_reset_pass', "user_login_id I NOTNULL, hash_id C(32) NOTNULL, created_on T DEFTIMESTAMP", array('constraints' => ', FOREIGN KEY (user_login_id) REFERENCES user_login(id)'));
if ($ret === false) {
print 'Invalid SQL query - user_autologin table install';
return false;
}
Variable::set('host_ban_time', 300);
Variable::set('host_ban_nr_of_tries', 3);
Variable::set('host_ban_by_login', 0);
Base_ThemeCommon::install_default_theme(Base_User_LoginInstall::module_name());
return true;
}
示例5: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
DB::CreateTable('base_home_page', 'id I4 AUTO KEY,' . 'priority I4,' . 'home_page C(64)', array('constraints' => ''));
DB::CreateTable('base_home_page_clearance', 'id I4 AUTO KEY,' . 'home_page_id I,' . 'clearance C(64)', array('constraints' => ', FOREIGN KEY (home_page_id) REFERENCES base_home_page(id)'));
return true;
}
示例6: install
public function install()
{
Base_AclCommon::add_permission(_M('View Activity Report'), array('ACCESS:employee', 'ACCESS:manager'));
Base_ThemeCommon::install_default_theme($this->get_type());
Utils_RecordBrowserCommon::new_addon('contact', 'Apps/ActivityReport', 'contact_addon', array('Apps_ActivityReportCommon', 'contact_addon_label'));
return true;
}
示例7: install
public function install()
{
$ret = true;
if ($ret) {
$ret = Variable::set('mail_from_addr', 'admin@example.com');
}
if ($ret) {
$ret = Variable::set('mail_from_name', 'Administrator');
}
if ($ret) {
$ret = Variable::set('mail_use_replyto', '');
}
if ($ret) {
$ret = Variable::set('mail_method', 'mail');
}
if ($ret) {
$ret = Variable::set('mail_user', '');
}
if ($ret) {
$ret = Variable::set('mail_password', '');
}
if ($ret) {
$ret = Variable::set('mail_host', 'smtp.example.com:25');
}
if ($ret) {
$ret = Variable::set('mail_security', '');
}
if ($ret) {
$ret = Variable::set('mail_auth', false);
}
Base_ThemeCommon::install_default_theme($this->get_type());
return $ret;
}
示例8: install
public function install()
{
Base_ThemeCommon::install_default_theme('CRM/Contacts/Activities');
Utils_RecordBrowserCommon::new_addon('company', 'CRM/Contacts/Activities', 'company_activities', _M('Activities'));
Utils_RecordBrowserCommon::new_addon('contact', 'CRM/Contacts/Activities', 'contact_activities', _M('Activities'));
return true;
}
示例9: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
Variable::set('error_mail', '');
$this->create_data_dir();
return true;
}
示例10: install
public function install()
{
Base_ThemeCommon::install_default_theme('CRM/Calendar');
Base_AclCommon::add_permission(_M('Calendar'), array('ACCESS:employee'));
DB::CreateTable('crm_calendar_custom_events_handlers', 'id I4 AUTO KEY,' . 'group_name C(64),' . 'handler_callback C(128)', array('constraints' => ''));
return true;
}
示例11: install
public function install()
{
global $database;
$ret = true;
$ret &= DB::CreateTable('base_user_settings', '
user_login_id I4 NOTNULL,
module C(128) NOTNULL,
variable C(64) NOTNULL,
value X NOTNULL', array('constraints' => ', FOREIGN KEY (user_login_id) REFERENCES user_login(id), PRIMARY KEY(user_login_id,module,variable)'));
if (!$ret) {
print 'Unable to create table base_user_settings.<br>';
return false;
}
$ret &= DB::CreateTable('base_user_settings_admin_defaults', '
module C(128) NOTNULL,
variable C(64) NOTNULL,
value X NOTNULL', array('constraints' => ', PRIMARY KEY(module,variable)'));
if (!$ret) {
print 'Unable to create table base_user_settings_defaults.<br>';
return false;
}
Base_ThemeCommon::install_default_theme(Base_User_SettingsInstall::module_name());
Base_AclCommon::add_permission(_M('Advanced User Settings'), array('ACCESS:employee'));
return $ret;
}
示例12: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
Utils_CommonDataCommon::new_id('Base_Notify/Timeout', true);
Utils_CommonDataCommon::new_array('Base_Notify/Timeout', array(-1 => _M('Disable Notification'), 0 => _M('Manually')), true, true);
Utils_CommonDataCommon::new_array('Base_Notify/Timeout', array(10000 => _M('10 seconds'), 30000 => _M('30 seconds'), 60000 => _M('1 minute')));
return true;
}
示例13: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
Utils_RecordBrowserCommon::new_addon('contact', 'CRM/Contacts/NotesAggregate', 'contact_addon', _M('Related Notes'));
Utils_RecordBrowserCommon::new_addon('company', 'CRM/Contacts/NotesAggregate', 'company_addon', _M('Related Notes'));
Utils_RecordBrowserCommon::new_addon('premium_salesopportunity', 'CRM/Contacts/NotesAggregate', 'salesopportunity_addon', _M('Related Notes'));
return true;
}
示例14: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
ModuleManager::include_common($this->get_type(), 0);
Base_PrintCommon::register_document_type(new Base_Print_Document_HTML());
Base_PrintCommon::register_document_type(new Base_Print_Document_PDF());
return true;
}
示例15: install
public function install()
{
Base_ThemeCommon::install_default_theme($this->get_type());
Base_AclCommon::add_permission(_M('Fax - Browse'), array('ACCESS:employee'));
Base_AclCommon::add_permission(_M('Fax - Send'), array('ACCESS:employee'));
$this->create_data_dir();
return true;
}