本文整理汇总了PHP中BaseFormPropel::updateDefaultsFromObject方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseFormPropel::updateDefaultsFromObject方法的具体用法?PHP BaseFormPropel::updateDefaultsFromObject怎么用?PHP BaseFormPropel::updateDefaultsFromObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseFormPropel
的用法示例。
在下文中一共展示了BaseFormPropel::updateDefaultsFromObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
$c = new Criteria();
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['user_has_role_list'])) {
$values = array();
foreach ($this->object->getUserHasRoles() as $obj) {
$values[] = $obj->getRoleId();
}
$this->setDefault('user_has_role_list', $values);
}
if (isset($this->widgetSchema['usergroup_has_chief_list'])) {
$values = array();
foreach ($this->object->getUsergroupHasChiefs($c) as $obj) {
$values[] = $obj->getUsergroupId();
}
$this->setDefault('usergroup_has_chief_list', $values);
}
if (isset($this->widgetSchema['usergroup_has_user_list'])) {
$values = array();
foreach ($this->object->getUsergroupHasUsers($c) as $obj) {
$values[] = $obj->getUsergroupId();
}
$this->setDefault('usergroup_has_user_list', $values);
}
}
示例2: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['etiqueta_politico_list'])) {
$values = array();
foreach ($this->object->getEtiquetaPoliticos() as $obj) {
$values[] = $obj->getPoliticoId();
}
$this->setDefault('etiqueta_politico_list', $values);
}
if (isset($this->widgetSchema['etiqueta_partido_list'])) {
$values = array();
foreach ($this->object->getEtiquetaPartidos() as $obj) {
$values[] = $obj->getPartidoId();
}
$this->setDefault('etiqueta_partido_list', $values);
}
if (isset($this->widgetSchema['etiqueta_propuesta_list'])) {
$values = array();
foreach ($this->object->getEtiquetaPropuestas() as $obj) {
$values[] = $obj->getPropuestaId();
}
$this->setDefault('etiqueta_propuesta_list', $values);
}
}
示例3: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['product_has_photo_list'])) {
$values = array();
foreach ($this->object->getProductHasPhotos() as $obj) {
$values[] = $obj->getPhotoId();
}
$this->setDefault('product_has_photo_list', $values);
}
if (isset($this->widgetSchema['product_has_product_category_list'])) {
$values = array();
foreach ($this->object->getProductHasProductCategorys() as $obj) {
$values[] = $obj->getProductCategoryId();
}
$this->setDefault('product_has_product_category_list', $values);
}
if (isset($this->widgetSchema['product_has_sale_list'])) {
$values = array();
foreach ($this->object->getProductHasSales() as $obj) {
$values[] = $obj->getSaleId();
}
$this->setDefault('product_has_sale_list', $values);
}
}
示例4: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['politico_lista_list'])) {
$values = array();
foreach ($this->object->getPoliticoListas() as $obj) {
$values[] = $obj->getListaId();
}
$this->setDefault('politico_lista_list', $values);
}
if (isset($this->widgetSchema['etiqueta_politico_list'])) {
$values = array();
foreach ($this->object->getEtiquetaPoliticos() as $obj) {
$values[] = $obj->getEtiquetaId();
}
$this->setDefault('etiqueta_politico_list', $values);
}
if (isset($this->widgetSchema['politico_institucion_list'])) {
$values = array();
foreach ($this->object->getPoliticoInstitucions() as $obj) {
$values[] = $obj->getInstitucionId();
}
$this->setDefault('politico_institucion_list', $values);
}
}
示例5: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['room_has_activity_list'])) {
$values = array();
foreach ($this->object->getRoomHasActivitys() as $obj) {
$values[] = $obj->getRoomId();
}
$this->setDefault('room_has_activity_list', $values);
}
if (isset($this->widgetSchema['usergroup_has_activity_list'])) {
$values = array();
foreach ($this->object->getUsergroupHasActivitys() as $obj) {
$values[] = $obj->getUsergroupId();
}
$this->setDefault('usergroup_has_activity_list', $values);
}
if (isset($this->widgetSchema['activity_has_feature_list'])) {
$values = array();
foreach ($this->object->getActivityHasFeatures() as $obj) {
$values[] = $obj->getFeatureId();
}
$this->setDefault('activity_has_feature_list', $values);
}
}
示例6: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['pc_users_lists_list'])) {
$values = array();
foreach ($this->object->getPcUsersListss() as $obj) {
$values[] = $obj->getListId();
}
$this->setDefault('pc_users_lists_list', $values);
}
if (isset($this->widgetSchema['pc_split_test_user_result_list'])) {
$values = array();
foreach ($this->object->getPcSplitTestUserResults() as $obj) {
$values[] = $obj->getTestId();
}
$this->setDefault('pc_split_test_user_result_list', $values);
}
if (isset($this->widgetSchema['pc_dirty_task_list'])) {
$values = array();
foreach ($this->object->getPcDirtyTasks() as $obj) {
$values[] = $obj->getTaskId();
}
$this->setDefault('pc_dirty_task_list', $values);
}
}
示例7: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['room_has_featurevalue_list'])) {
$values = array();
foreach ($this->object->getRoomHasFeaturevalues() as $obj) {
$values[] = $obj->getFeaturevalueId();
}
$this->setDefault('room_has_featurevalue_list', $values);
}
if (isset($this->widgetSchema['room_has_energyaction_list'])) {
$values = array();
foreach ($this->object->getRoomHasEnergyactions() as $obj) {
$values[] = $obj->getEnergyactionId();
}
$this->setDefault('room_has_energyaction_list', $values);
}
if (isset($this->widgetSchema['room_has_activity_list'])) {
$values = array();
foreach ($this->object->getRoomHasActivitys() as $obj) {
$values[] = $obj->getActivityId();
}
$this->setDefault('room_has_activity_list', $values);
}
if (isset($this->widgetSchema['zone_has_room_list'])) {
$values = array();
foreach ($this->object->getZoneHasRooms() as $obj) {
$values[] = $obj->getZoneId();
}
$this->setDefault('zone_has_room_list', $values);
}
}
示例8: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['projectes_has_agendaactivitats_list'])) {
$values = array();
foreach ($this->object->getProjectesHasAgendaactivitatss() as $obj) {
$values[] = $obj->getAgendaactivitatsAgendaactivitatsactivitatsid();
}
$this->setDefault('projectes_has_agendaactivitats_list', $values);
}
if (isset($this->widgetSchema['projectes_has_blogarticles_list'])) {
$values = array();
foreach ($this->object->getProjectesHasBlogarticless() as $obj) {
$values[] = $obj->getBlogarticlesArticlesid();
}
$this->setDefault('projectes_has_blogarticles_list', $values);
}
if (isset($this->widgetSchema['subcategories_has_projectes_list'])) {
$values = array();
foreach ($this->object->getSubcategoriesHasProjectess() as $obj) {
$values[] = $obj->getSubcategoriesIdsubcategories();
}
$this->setDefault('subcategories_has_projectes_list', $values);
}
}
示例9: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['role_permission_backup_list'])) {
$values = array();
foreach ($this->object->getRolePermissionBackups() as $obj) {
$values[] = $obj->getPermissionId();
}
$this->setDefault('role_permission_backup_list', $values);
}
if (isset($this->widgetSchema['email_list_role_list'])) {
$values = array();
foreach ($this->object->getEmailListRoles() as $obj) {
$values[] = $obj->getListId();
}
$this->setDefault('email_list_role_list', $values);
}
if (isset($this->widgetSchema['person_role_list'])) {
$values = array();
foreach ($this->object->getPersonRoles() as $obj) {
$values[] = $obj->getPersonId();
}
$this->setDefault('person_role_list', $values);
}
}
示例10: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['usergroup_has_chief_list'])) {
$values = array();
foreach ($this->object->getUsergroupHasChiefs() as $obj) {
$values[] = $obj->getUserId();
}
$this->setDefault('usergroup_has_chief_list', $values);
}
if (isset($this->widgetSchema['usergroup_has_user_list'])) {
$values = array();
foreach ($this->object->getUsergroupHasUsers() as $obj) {
$values[] = $obj->getUserId();
}
$this->setDefault('usergroup_has_user_list', $values);
}
if (isset($this->widgetSchema['usergroup_has_activity_list'])) {
$values = array();
foreach ($this->object->getUsergroupHasActivitys() as $obj) {
$values[] = $obj->getActivityId();
}
$this->setDefault('usergroup_has_activity_list', $values);
}
}
示例11: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['subcategories_has_entitats_list'])) {
$values = array();
foreach ($this->object->getSubcategoriesHasEntitatss() as $obj) {
$values[] = $obj->getEntitatsEntitatid();
}
$this->setDefault('subcategories_has_entitats_list', $values);
}
if (isset($this->widgetSchema['subcategories_has_fitxers_list'])) {
$values = array();
foreach ($this->object->getSubcategoriesHasFitxerss() as $obj) {
$values[] = $obj->getFitxersFitxersid();
}
$this->setDefault('subcategories_has_fitxers_list', $values);
}
if (isset($this->widgetSchema['subcategories_has_projectes_list'])) {
$values = array();
foreach ($this->object->getSubcategoriesHasProjectess() as $obj) {
$values[] = $obj->getProjectesIdprojectes();
}
$this->setDefault('subcategories_has_projectes_list', $values);
}
}
示例12: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['user_has_role_list'])) {
$values = array();
foreach ($this->object->getUserHasRoles() as $obj) {
$values[] = $obj->getUserId();
}
$this->setDefault('user_has_role_list', $values);
}
}
示例13: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['activity_has_feature_list'])) {
$values = array();
foreach ($this->object->getActivityHasFeatures() as $obj) {
$values[] = $obj->getActivityId();
}
$this->setDefault('activity_has_feature_list', $values);
}
}
示例14: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['app_blog_multimedia_entries_list'])) {
$values = array();
foreach ($this->object->getAppBlogMultimediaEntriess() as $obj) {
$values[] = $obj->getMultimediaId();
}
$this->setDefault('app_blog_multimedia_entries_list', $values);
}
}
示例15: updateDefaultsFromObject
public function updateDefaultsFromObject()
{
parent::updateDefaultsFromObject();
if (isset($this->widgetSchema['app_documents_permisos_dir_list'])) {
$values = array();
foreach ($this->object->getAppDocumentsPermisosDirs() as $obj) {
$values[] = $obj->getIdusuari();
}
$this->setDefault('app_documents_permisos_dir_list', $values);
}
}