當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseFormDoctrine::updateDefaultsFromObject方法代碼示例

本文整理匯總了PHP中BaseFormDoctrine::updateDefaultsFromObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseFormDoctrine::updateDefaultsFromObject方法的具體用法?PHP BaseFormDoctrine::updateDefaultsFromObject怎麽用?PHP BaseFormDoctrine::updateDefaultsFromObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseFormDoctrine的用法示例。


在下文中一共展示了BaseFormDoctrine::updateDefaultsFromObject方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['rel_structures_matfinss_list'])) {
         $this->setDefault('rel_structures_matfinss_list', $this->object->RelStructuresMatfinss->getPrimaryKeys());
     }
 }
開發者ID:njch,項目名稱:PatBati,代碼行數:7,代碼來源:BaseStructuresForm.class.php

示例2: updateDefaultsFromObject

  public function updateDefaultsFromObject()
  {
    parent::updateDefaultsFromObject();

    if (isset($this->widgetSchema['groups_list']))
    {
      $this->setDefault('groups_list', $this->object->Groups->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['permissions_list']))
    {
      $this->setDefault('permissions_list', $this->object->Permissions->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['proyectos_list']))
    {
      $this->setDefault('proyectos_list', $this->object->Proyectos->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['versiones_list']))
    {
      $this->setDefault('versiones_list', $this->object->Versiones->getPrimaryKeys());
    }

  }
開發者ID:nhpatt,項目名稱:gestor-de-estados,代碼行數:25,代碼來源:BasesfGuardUserForm.class.php

示例3: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['ls_list_list'])) {
         $values = array();
         foreach ($this->object->LsList as $obj) {
             $values[] = current($obj->identifier());
         }
         $this->object->clearRelated('LsList');
         $this->setDefault('ls_list_list', $values);
     }
     if (isset($this->widgetSchema['industry_list'])) {
         $values = array();
         foreach ($this->object->Industry as $obj) {
             $values[] = current($obj->identifier());
         }
         $this->object->clearRelated('Industry');
         $this->setDefault('industry_list', $values);
     }
     if (isset($this->widgetSchema['lobby_filing_list'])) {
         $values = array();
         foreach ($this->object->LobbyFiling as $obj) {
             $values[] = current($obj->identifier());
         }
         $this->object->clearRelated('LobbyFiling');
         $this->setDefault('lobby_filing_list', $values);
     }
 }
開發者ID:silky,項目名稱:littlesis,代碼行數:28,代碼來源:BaseEntityForm.class.php

示例4: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['sf_guard_user_profile_list'])) {
         $this->setDefault('sf_guard_user_profile_list', $this->object->sfGuardUserProfile->getPrimaryKeys());
     }
 }
開發者ID:limitium,項目名稱:uberlov,代碼行數:7,代碼來源:BaseCommentForm.class.php

示例5: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['sf_guard_permission_list'])) {
         $this->setDefault('sf_guard_permission_list', $this->object->sfGuardPermission->getPrimaryKeys());
     }
 }
開發者ID:nvieirafelipe,項目名稱:graviola-project,代碼行數:7,代碼來源:BaseNjMenuItemRoutingForm.class.php

示例6: updateDefaultsFromObject

  public function updateDefaultsFromObject()
  {
    parent::updateDefaultsFromObject();

    if (isset($this->widgetSchema['dance_styles_list']))
    {
      $this->setDefault('dance_styles_list', $this->object->DanceStyles->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['tracks_list']))
    {
      $this->setDefault('tracks_list', $this->object->Tracks->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['classes_list']))
    {
      $this->setDefault('classes_list', $this->object->Classes->getPrimaryKeys());
    }

    if (isset($this->widgetSchema['lessons_list']))
    {
      $this->setDefault('lessons_list', $this->object->Lessons->getPrimaryKeys());
    }

  }
開發者ID:romankallweit,項目名稱:swingmachine,代碼行數:25,代碼來源:BasedsTeacherForm.class.php

示例7: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['petition_signing_list'])) {
         $this->setDefault('petition_signing_list', $this->object->PetitionSigning->getPrimaryKeys());
     }
 }
開發者ID:uniteddiversity,項目名稱:policat,代碼行數:7,代碼來源:BaseContactForm.class.php

示例8: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['tipoingrediente_list'])) {
         $this->setDefault('tipoingrediente_list', $this->object->Tipoingrediente->getPrimaryKeys());
     }
 }
開發者ID:BGCX067,項目名稱:f2gsym-svn-to-git,代碼行數:7,代碼來源:BaseUsuarioForm.class.php

示例9: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['kernbegrip_list'])) {
         $this->setDefault('kernbegrip_list', $this->object->Kernbegrip->getPrimaryKeys());
     }
 }
開發者ID:robinkanters,項目名稱:dnsleergemeenschap,代碼行數:7,代碼來源:BaseleerlijnEindtermForm.class.php

示例10: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['rel_matge_meos_list'])) {
         $this->setDefault('rel_matge_meos_list', $this->object->RelMatgeMeos->getPrimaryKeys());
     }
 }
開發者ID:njch,項目名稱:PatBati,代碼行數:7,代碼來源:BaseBibMeoeuvreForm.class.php

示例11: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['media_items_list'])) {
         $this->setDefault('media_items_list', $this->object->MediaItems->getPrimaryKeys());
     }
 }
開發者ID:blekkzor,項目名稱:ap,代碼行數:7,代碼來源:BaseaSlotForm.class.php

示例12: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['jobeet_affiliates_list'])) {
         $this->setDefault('jobeet_affiliates_list', $this->object->JobeetAffiliates->getPrimaryKeys());
     }
 }
開發者ID:AinhoaLM,項目名稱:jobeet,代碼行數:7,代碼來源:BaseJobeetCategoryForm.class.php

示例13: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['translation_list'])) {
         $this->setDefault('translation_list', array_merge((array) $this->getDefault('translation_list'), $this->object->Translation->getPrimaryKeys()));
     }
 }
開發者ID:theolymp,項目名稱:diem,代碼行數:7,代碼來源:BaseDmAutoSeoForm.class.php

示例14: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['organization_list'])) {
         $this->setDefault('organization_list', $this->object->Organization->getPrimaryKeys());
     }
 }
開發者ID:br00k,項目名稱:yavom,代碼行數:7,代碼來源:BaseServiceForm.class.php

示例15: updateDefaultsFromObject

 public function updateDefaultsFromObject()
 {
     parent::updateDefaultsFromObject();
     if (isset($this->widgetSchema['rel_ident_perspectives_list'])) {
         $this->setDefault('rel_ident_perspectives_list', $this->object->RelIdentPerspectives->getPrimaryKeys());
     }
 }
開發者ID:njch,項目名稱:PatBati,代碼行數:7,代碼來源:BaseBibPerspectiveForm.class.php


注:本文中的BaseFormDoctrine::updateDefaultsFromObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。