本文整理汇总了PHP中humhub\models\Setting::IsFixed方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::IsFixed方法的具体用法?PHP Setting::IsFixed怎么用?PHP Setting::IsFixed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类humhub\models\Setting
的用法示例。
在下文中一共展示了Setting::IsFixed方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
<?php
echo $form->textField($model, 'baseUrl', array('class' => 'form-control', 'readonly' => Setting::IsFixed('baseUrl')));
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_index', 'E.g. http://example.com/humhub');
?>
</p>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'defaultLanguage');
?>
<?php
echo $form->dropDownList($model, 'defaultLanguage', Yii::$app->params['availableLanguages'], array('class' => 'form-control', 'readonly' => Setting::IsFixed('defaultLanguage')));
?>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'timeZone');
?>
<?php
echo $form->dropDownList($model, 'timeZone', \humhub\libs\TimezoneHelper::generateList(), array('class' => 'form-control'));
?>
<?php
echo $form->error($model, 'timeZone');
?>
</div>
示例2: array
<div class="form-group">
<?php
echo $form->labelEx($model, 'encryption');
?>
<?php
echo $form->dropDownList($model, 'encryption', $encryptionTypes, array('class' => 'form-control', 'readonly' => Setting::IsFixed('mailer.encryption')));
?>
</div>
<div id="encryptionOptions">
<div class="form-group">
<strong>Encryption Options</strong>
<div class="checkbox">
<label>
<?php
echo $form->checkbox($model, 'allowSelfSignedCerts', array('class' => 'form-control', 'readonly' => Setting::IsFixed('mailer.allowSelfSignedCerts')));
?>
<?php
echo $model->getAttributeLabel('allowSelfSignedCerts');
?>
</label>
</div>
</div>
</div>
</div>
<hr>
<?php
echo CHtml::submitButton(Yii::t('AdminModule.views_setting_mailing_server', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => ""));
?>
<?php
示例3: seconds
?>
<?php
echo $form->field($model, 'internalUsersCanInvite')->checkbox();
?>
<?php
echo $form->field($model, 'internalRequireApprovalAfterRegistration')->checkbox();
?>
<?php
echo $form->field($model, 'defaultUserGroup')->dropdownList($groups, ['readonly' => Setting::IsFixed('auth.defaultUserGroup', 'user')]);
?>
<?php
echo $form->field($model, 'defaultUserIdleTimeoutSec')->textInput(['readonly' => Setting::IsFixed('auth.defaultUserIdleTimeoutSec', 'user')]);
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)');
?>
</p>
<?php
echo $form->field($model, 'defaultUserProfileVisibility')->dropdownList([1 => Yii::t('AdminModule.views_setting_authentication', 'Visible for members only'), 2 => Yii::t('AdminModule.views_setting_authentication', 'Visible for members+guests')], ['readonly' => !Yii::$app->getModule('user')->settings->get('auth.allowGuestAccess')]);
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication', 'Only applicable when limited access for non-authenticated users is enabled. Only affects new users.');
?>
</p>
<hr>
示例4: array
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"');
?>
</p>
<?php
echo $form->field($model, 'emailAttribute')->textInput(['readonly' => Setting::IsFixed('auth.ldap.emailAttribute', 'user')]);
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for E-Mail Address. Default: "mail"');
?>
</p>
<?php
echo $form->field($model, 'refreshUsers')->checkbox(['readonly' => Setting::IsFixed('auth.ldap.refreshUsers', 'user')]);
?>
<hr>
<?php
echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => ""));
?>
<?php
echo \humhub\widgets\DataSaved::widget();
?>
<?php
ActiveForm::end();
?>
</div>
示例5: array
echo $form->labelEx($model, 'maxPreviewImageHeight');
?>
<?php
echo $form->textField($model, 'maxPreviewImageHeight', array('class' => 'form-control', 'readonly' => Setting::IsFixed('maxPreviewImageHeight', 'file')));
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_file', 'If not set, height will default to 200px.');
?>
</p>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<?php
echo $form->checkBox($model, 'hideImageFileInfo', array('disabled' => Setting::IsFixed('hideImageFileInfo', 'file')));
?>
<?php
echo $model->getAttributeLabel('hideImageFileInfo');
?>
</label>
</div>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'allowedExtensions');
?>
<?php
echo $form->textField($model, 'allowedExtensions', array('class' => 'form-control'));
?>
示例6: array
<div class="form-group">
<?php
echo $form->labelEx($model, 'defaultUserGroup');
?>
<?php
echo $form->dropDownList($model, 'defaultUserGroup', $groups, array('class' => 'form-control', 'readonly' => Setting::IsFixed('defaultUserGroup', 'authentication_internal')));
?>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'defaultUserIdleTimeoutSec');
?>
<?php
echo $form->textField($model, 'defaultUserIdleTimeoutSec', array('class' => 'form-control', 'readonly' => Setting::IsFixed('defaultUserIdleTimeoutSec', 'authentication_internal')));
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)');
?>
</p>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'defaultUserProfileVisibility');
?>
<?php
echo $form->dropDownList($model, 'defaultUserProfileVisibility', array(1 => 'Visible for members only', 2 => 'Visible for members+guests'), array('class' => 'form-control', 'readonly' => !Setting::Get('allowGuestAccess', 'authentication_internal')));
?>
示例7: array
echo $form->labelEx($model, 'usernameAttribute');
?>
<?php
echo $form->textField($model, 'usernameAttribute', array('class' => 'form-control', 'readonly' => Setting::IsFixed('usernameAttribute', 'authentication_ldap')));
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"');
?>
</p>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<?php
echo $form->checkBox($model, 'refreshUsers', array('readonly' => Setting::IsFixed('refreshUsers', 'authentication_ldap')));
?>
<?php
echo $model->getAttributeLabel('refreshUsers');
?>
</label>
</div>
</div>
<hr>
<?php
echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary'));
?>
<?php
示例8: array
</div>
<div class="panel-body">
<?php
$form = CActiveForm::begin();
?>
<?php
echo $form->errorSummary($model);
?>
<div class="form-group">
<div class="checkbox">
<label>
<?php
echo $form->checkBox($model, 'enabled', array('readonly' => Setting::IsFixed('enabled', 'proxy')));
?>
<?php
echo $model->getAttributeLabel('enabled');
?>
</label>
</div>
</div>
<hr>
<div class="form-group">
<?php
echo $form->labelEx($model, 'server');
?>
<?php
echo $form->textField($model, 'server', array('class' => 'form-control'));
示例9: seconds
?>
<?php
echo $form->field($model, 'internalUsersCanInvite')->checkbox();
?>
<?php
echo $form->field($model, 'internalRequireApprovalAfterRegistration')->checkbox();
?>
<?php
echo $form->field($model, 'defaultUserGroup')->dropdownList($groups, ['readonly' => Setting::IsFixed('defaultUserGroup', 'authentication_internal')]);
?>
<?php
echo $form->field($model, 'defaultUserIdleTimeoutSec')->textInput(['readonly' => Setting::IsFixed('defaultUserIdleTimeoutSec', 'authentication_internal')]);
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)');
?>
</p>
<?php
echo $form->field($model, 'defaultUserProfileVisibility')->dropdownList([1 => 'Visible for members only', 2 => 'Visible for members+guests'], ['readonly' => !Setting::Get('allowGuestAccess', 'authentication_internal')]);
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication', 'Only applicable when limited access for non-authenticated users is enabled. Only affects new users.');
?>
</p>
<hr>
示例10: array
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"');
?>
</p>
<?php
echo $form->field($model, 'emailAttribute')->textInput(['readonly' => Setting::IsFixed('emailAttribute', 'authentication_ldap')]);
?>
<p class="help-block"><?php
echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for E-Mail Address. Default: "mail"');
?>
</p>
<?php
echo $form->field($model, 'refreshUsers')->checkbox(['readonly' => Setting::IsFixed('refreshUsers', 'authentication_ldap')]);
?>
<hr>
<?php
echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary'));
?>
<?php
echo \humhub\widgets\DataSaved::widget();
?>
<?php
ActiveForm::end();
?>
示例11: array
<div class="form-group">
<?php
echo $form->labelEx($model, 'type');
?>
<?php
echo $form->dropDownList($model, 'type', $cacheTypes, array('class' => 'form-control', 'readonly' => Setting::IsFixed('type', 'cache')));
?>
<br>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'expireTime');
?>
<?php
echo $form->textField($model, 'expireTime', array('class' => 'form-control', 'readonly' => Setting::IsFixed('expireTime', 'cache')));
?>
<br>
</div>
<hr>
<?php
echo CHtml::submitButton(Yii::t('AdminModule.views_setting_caching', 'Save & Flush Caches'), array('class' => 'btn btn-primary'));
?>
<?php
echo \humhub\widgets\DataSaved::widget();
?>
<?php
CActiveForm::end();
?>
示例12:
echo $form->errorSummary($model);
?>
<div class="form-group">
<?php
echo $form->labelEx($model, 'theme');
?>
<?php
echo $form->dropDownList($model, 'theme', AdminController::getThemes(), ['class' => 'form-control', 'readonly' => Setting::IsFixed('theme', 'humhubchat')]);
?>
</div>
<div class="form-group">
<?php
echo $form->labelEx($model, 'timeout');
?>
<?php
echo $form->textField($model, 'timeout', ['class' => 'form-control', 'readonly' => Setting::IsFixed('timeout', 'humhubchat')]);
?>
</div>
<p class="help-block"><?php
echo Yii::t('Humhub-chatModule.base', 'Amount of days, after messages will be deleted; min value is 0 (no deletion); max: 365');
?>
</p>
<?php
echo Html::submitButton(Yii::t('Humhub-chatModule.base', 'Save'), ['class' => 'btn btn-primary']);
?>
<?php
echo \humhub\widgets\DataSaved::widget();
?>
<?php
CActiveForm::end();
?>