本文整理汇总了PHP中CMbObject::updateFormFields方法的典型用法代码示例。如果您正苦于以下问题:PHP CMbObject::updateFormFields方法的具体用法?PHP CMbObject::updateFormFields怎么用?PHP CMbObject::updateFormFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMbObject
的用法示例。
在下文中一共展示了CMbObject::updateFormFields方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateFormFields
function updateFormFields()
{
parent::updateFormFields();
$this->_view = $this->nom;
$this->_debut = substr($this->debut, 0, 2);
$this->_fin = substr($this->fin, 0, 2);
}
示例2: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_classeNyha = "";
if ($this->q1 == 1) {
if ($this->q2a !== null && $this->q2a == 0) {
$this->_classeNyha = "Classe III";
}
if ($this->q2a == 1 && $this->q2b !== null && $this->q2b == 1) {
$this->_classeNyha = "Classe I";
}
if ($this->q2a == 1 && $this->q2b !== null && $this->q2b == 0) {
$this->_classeNyha = "Classe II";
}
} elseif ($this->q1 == 0) {
if ($this->q3a !== null && $this->q3a == 0) {
$this->_classeNyha = "Classe III";
}
if ($this->q3a == 1 && $this->q3b !== null && $this->q3b == 1) {
$this->_classeNyha = "Classe III";
}
if ($this->q3a == 1 && $this->q3b !== null && $this->q3b == 0) {
$this->_classeNyha = "Classe IV";
}
}
$this->_view = "Classification NYHA : {$this->_classeNyha}";
}
示例3: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = $this->libelle ? $this->libelle : $this->code;
$this->_shortview = $this->code;
$this->_font_color = CColorSpec::get_text_color($this->color) > 130 ? '000000' : "ffffff";
}
示例4: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
if ($this->end_datetime && $this->start_datetime) {
$this->_duration = CMbDT::timeRelative($this->start_datetime, $this->end_datetime);
}
}
示例5: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->loadRefsFwd();
$this->_shortview = $this->_ref_examen_labo->_shortview;
$this->_view = $this->_ref_examen_labo->_view;
}
示例6: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->loadRefsFwd();
$this->_ref_delivery->updateFormFields();
$this->_view = $this->_ref_delivery->_view;
}
示例7: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$bloc = $this->loadRefBloc();
$this->_view = $bloc->nom . ' - ' . $this->nom;
$this->_shortview = $this->nom;
}
示例8: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = "{$this->name}";
if ($this->_ref_service) {
$this->_view .= " ({$this->_ref_service->_view})";
}
}
示例9: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
if (!$this->_ref_question) {
$this->loadRefQuestion();
}
$this->_view = $this->_ref_question->nom;
}
示例10: updateFormFields
function updateFormFields()
{
parent::updateFormFields();
$this->_self_sender = $this->emetteur == CAppUI::conf('mb_id');
$this->_self_receiver = $this->destinataire == CAppUI::conf('mb_id');
// ms
$this->response_time = $this->response_time * 1000;
}
示例11: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = $this->quantity;
if ($this->code) {
$this->_view .= " [{$this->code}]";
}
}
示例12: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->loadRefFunction();
$this->loadRefUser();
$this->_view = $this->_ref_user->_view . " - " . $this->_ref_function->_view;
$this->_shortview = $this->_ref_user->_shortview . " - " . $this->_ref_function->_shortview;
}
示例13: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = "Indisponibilité du " . CMbDT::dateToLocale($this->deb);
if ($this->deb != $this->fin) {
$this->_view .= " au " . CMbDT::dateToLocale($this->fin);
}
}
示例14: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = "Allaitement du " . CMbDT::transform($this->date_debut, null, CAppUI::conf("date")) . " à " . CMbDT::transform($this->date_debut, null, CAppUI::conf("time"));
if ($this->date_fin) {
$this->_view .= " au " . CMbDT::transform($this->date_fin, null, CAppUI::conf("date")) . " à " . CMbDT::transform($this->date_fin, null, CAppUI::conf("time"));
}
}
示例15: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = $this->name;
if ($this->evenements) {
$this->_ref_evenement = explode("|", $this->evenements);
}
}