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


PHP BaseFormPropel類代碼示例

本文整理匯總了PHP中BaseFormPropel的典型用法代碼示例。如果您正苦於以下問題:PHP BaseFormPropel類的具體用法?PHP BaseFormPropel怎麽用?PHP BaseFormPropel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveSubcategoriesHasEntitatsList($con);
     $this->saveSubcategoriesHasFitxersList($con);
     $this->saveSubcategoriesHasProjectesList($con);
 }
開發者ID:nagiro,項目名稱:intra,代碼行數:7,代碼來源:BaseSubcategoriesForm.class.php

示例2: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveUsergroupHasChiefList($con);
     $this->saveUsergroupHasUserList($con);
     $this->saveUsergroupHasActivityList($con);
 }
開發者ID:jfesquet,項目名稱:tempos,代碼行數:7,代碼來源:BaseUsergroupForm.class.php

示例3: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveRoomHasActivityList($con);
     $this->saveUsergroupHasActivityList($con);
     $this->saveActivityHasFeatureList($con);
 }
開發者ID:jfesquet,項目名稱:tempos,代碼行數:7,代碼來源:BaseActivityForm.class.php

示例4: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveProjectesHasAgendaactivitatsList($con);
     $this->saveProjectesHasBlogarticlesList($con);
     $this->saveSubcategoriesHasProjectesList($con);
 }
開發者ID:nagiro,項目名稱:intra,代碼行數:7,代碼來源:BaseProjectesForm.class.php

示例5: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveRolePermissionBackupList($con);
     $this->saveEmailListRoleList($con);
     $this->savePersonRoleList($con);
 }
開發者ID:yasirgit,項目名稱:afids,代碼行數:7,代碼來源:BaseRoleForm.class.php

示例6: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveProductHasPhotoList($con);
     $this->saveProductHasProductCategoryList($con);
     $this->saveProductHasSaleList($con);
 }
開發者ID:AlexandrKozyr,項目名稱:justcode_test,代碼行數:7,代碼來源:BaseProductForm.class.php

示例7: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->saveEtiquetaPoliticoList($con);
     $this->saveEtiquetaPartidoList($con);
     $this->saveEtiquetaPropuestaList($con);
 }
開發者ID:voota,項目名稱:voota,代碼行數:7,代碼來源:BaseEtiquetaForm.class.php

示例8: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->savePoliticoListaList($con);
     $this->saveEtiquetaPoliticoList($con);
     $this->savePoliticoInstitucionList($con);
 }
開發者ID:voota,項目名稱:voota,代碼行數:7,代碼來源:BasePoliticoForm.class.php

示例9: doSave

 protected function doSave($con = null)
 {
     parent::doSave($con);
     $this->savePcUsersListsList($con);
     $this->savePcSplitTestUserResultList($con);
     $this->savePcDirtyTaskList($con);
 }
開發者ID:ntemple,項目名稱:intelli-plancake,代碼行數:7,代碼來源:BasePcUserForm.class.php

示例10: setup

 public function setup()
 {
     $this->setWidgets(array('id' => new sfWidgetFormInputHidden(), 'meta_id' => new sfWidgetFormPropelChoice(array('model' => 'Meta', 'add_empty' => true)), 'name' => new sfWidgetFormInput(), 'is_active' => new sfWidgetFormInputCheckbox(), 'created_at' => new sfWidgetFormDateTime()));
     $this->setValidators(array('id' => new sfValidatorPropelChoice(array('model' => 'Authors', 'column' => 'id', 'required' => false)), 'meta_id' => new sfValidatorPropelChoice(array('model' => 'Meta', 'column' => 'id', 'required' => false)), 'name' => new sfValidatorString(array('max_length' => 255)), 'is_active' => new sfValidatorBoolean(), 'created_at' => new sfValidatorDateTime(array('required' => false))));
     $this->widgetSchema->setNameFormat('authors[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
     parent::setup();
 }
開發者ID:serg-smirnoff,項目名稱:symfony-pposter,代碼行數:8,代碼來源:BaseAuthorsForm.class.php

示例11: setup

 public function setup()
 {
     $this->setWidgets(array('id' => new sfWidgetFormInputHidden(), 'name' => new sfWidgetFormInputText()));
     $this->setValidators(array('id' => new sfValidatorChoice(array('choices' => array($this->getObject()->getId()), 'empty_value' => $this->getObject()->getId(), 'required' => false)), 'name' => new sfValidatorString(array('max_length' => 45, 'required' => false))));
     $this->widgetSchema->setNameFormat('primary_attribute[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
     parent::setup();
 }
開發者ID:nashlesigon,項目名稱:project-dota,代碼行數:8,代碼來源:BasePrimaryAttributeForm.class.php

示例12: setup

 public function setup()
 {
     $this->setWidgets(array('id' => new sfWidgetFormInputHidden(), 'role_id' => new sfWidgetFormPropelChoice(array('model' => 'Role', 'add_empty' => true)), 'employee_id' => new sfWidgetFormPropelChoice(array('model' => 'Employee', 'add_empty' => true)), 'user' => new sfWidgetFormInput(), 'password' => new sfWidgetFormInput(), 'status' => new sfWidgetFormInput(), 'created_at' => new sfWidgetFormDate(), 'updated_at' => new sfWidgetFormDate()));
     $this->setValidators(array('id' => new sfValidatorPropelChoice(array('model' => 'User', 'column' => 'id', 'required' => false)), 'role_id' => new sfValidatorPropelChoice(array('model' => 'Role', 'column' => 'id', 'required' => false)), 'employee_id' => new sfValidatorPropelChoice(array('model' => 'Employee', 'column' => 'id', 'required' => false)), 'user' => new sfValidatorString(array('max_length' => 50, 'required' => false)), 'password' => new sfValidatorString(array('max_length' => 50, 'required' => false)), 'status' => new sfValidatorString(array('max_length' => 10, 'required' => false)), 'created_at' => new sfValidatorDate(array('required' => false)), 'updated_at' => new sfValidatorDate(array('required' => false))));
     $this->widgetSchema->setNameFormat('user[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
     parent::setup();
 }
開發者ID:lejacome,項目名稱:hospital-mgt,代碼行數:8,代碼來源:BaseUserForm.class.php

示例13: setup

 public function setup()
 {
     $this->setWidgets(array('group_id' => new sfWidgetFormInputHidden(), 'permission_id' => new sfWidgetFormInputHidden()));
     $this->setValidators(array('group_id' => new sfValidatorPropelChoice(array('model' => 'sfGuardGroup', 'column' => 'id', 'required' => false)), 'permission_id' => new sfValidatorPropelChoice(array('model' => 'sfGuardPermission', 'column' => 'id', 'required' => false))));
     $this->widgetSchema->setNameFormat('sf_guard_group_permission[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
     parent::setup();
 }
開發者ID:BGCX261,項目名稱:zrobtotak-svn-to-git,代碼行數:8,代碼來源:BasesfGuardGroupPermissionForm.class.php

示例14: setup

 public function setup()
 {
     $this->setWidgets(array('id' => new sfWidgetFormInputHidden(), 'name' => new sfWidgetFormInput()));
     $this->setValidators(array('id' => new sfValidatorPropelChoice(array('model' => 'Status', 'column' => 'id', 'required' => false)), 'name' => new sfValidatorString(array('max_length' => 255, 'required' => false))));
     $this->widgetSchema->setNameFormat('status[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
     parent::setup();
 }
開發者ID:rayku,項目名稱:rayku,代碼行數:8,代碼來源:BaseStatusForm.class.php

示例15: setup

 public function setup()
 {
     $this->setWidgets(array('id' => new sfWidgetFormInputHidden(), 'county' => new sfWidgetFormInputText(), 'city' => new sfWidgetFormInputText(), 'village' => new sfWidgetFormInputText(), 'VoteNo' => new sfWidgetFormInputText(), 'DPPNum' => new sfWidgetFormInputText(), 'DPPRatio' => new sfWidgetFormInputText(), 'KMTNum' => new sfWidgetFormInputText(), 'KMTRatio' => new sfWidgetFormInputText(), 'vaildVotes' => new sfWidgetFormInputText(), 'invaildVotes' => new sfWidgetFormInputText(), 'totalVotes' => new sfWidgetFormInputText(), 'otherVotes' => new sfWidgetFormInputText(), 'VotersNum' => new sfWidgetFormInputText(), 'VotersRatio' => new sfWidgetFormInputText()));
     $this->setValidators(array('id' => new sfValidatorChoice(array('choices' => array($this->getObject()->getId()), 'empty_value' => $this->getObject()->getId(), 'required' => false)), 'county' => new sfValidatorString(array('required' => false)), 'city' => new sfValidatorString(array('required' => false)), 'village' => new sfValidatorString(array('required' => false)), 'VoteNo' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'DPPNum' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'DPPRatio' => new sfValidatorNumber(array('required' => false)), 'KMTNum' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'KMTRatio' => new sfValidatorNumber(array('required' => false)), 'vaildVotes' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'invaildVotes' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'totalVotes' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'otherVotes' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'VotersNum' => new sfValidatorInteger(array('min' => -2147483648.0, 'max' => 2147483647, 'required' => false)), 'VotersRatio' => new sfValidatorNumber(array('required' => false))));
     $this->widgetSchema->setNameFormat('presidentialelection2004[%s]');
     $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
     parent::setup();
 }
開發者ID:ntuaha,項目名稱:SimpleBusServer,代碼行數:8,代碼來源:BasePresidentialelection2004Form.class.php


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