本文整理匯總了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);
}
}