本文整理匯總了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);
}
示例2: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->saveUsergroupHasChiefList($con);
$this->saveUsergroupHasUserList($con);
$this->saveUsergroupHasActivityList($con);
}
示例3: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->saveRoomHasActivityList($con);
$this->saveUsergroupHasActivityList($con);
$this->saveActivityHasFeatureList($con);
}
示例4: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->saveProjectesHasAgendaactivitatsList($con);
$this->saveProjectesHasBlogarticlesList($con);
$this->saveSubcategoriesHasProjectesList($con);
}
示例5: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->saveRolePermissionBackupList($con);
$this->saveEmailListRoleList($con);
$this->savePersonRoleList($con);
}
示例6: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->saveProductHasPhotoList($con);
$this->saveProductHasProductCategoryList($con);
$this->saveProductHasSaleList($con);
}
示例7: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->saveEtiquetaPoliticoList($con);
$this->saveEtiquetaPartidoList($con);
$this->saveEtiquetaPropuestaList($con);
}
示例8: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->savePoliticoListaList($con);
$this->saveEtiquetaPoliticoList($con);
$this->savePoliticoInstitucionList($con);
}
示例9: doSave
protected function doSave($con = null)
{
parent::doSave($con);
$this->savePcUsersListsList($con);
$this->savePcSplitTestUserResultList($con);
$this->savePcDirtyTaskList($con);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}