CMS  Version 3.9
Section

Classes

class  Section
 Section DataItem, defining the data model for sections within a site. More...
 
class  SectionContent
 
class  SectionModuleXref
 
class  SectionContentModuleXref
 
class  SectionImportFile
 DataItem pseudo-object to handle section XML imports. More...
 
class  SectionManifest
 
interface  ISectionContentManager
 Defines the interface required by a SectionContentManager. More...
 
class  SectionContentManager
 
class  AbstractSectionContentAdminView
 
class  SectionContentAdminView
 
class  SectionContentPropertiesFieldRenderer
 
class  SectionSerializationHandler
 Handles serialization of the section map for import/export. More...
 
class  SectionContentManagerMap
 Maintains the map of SectionContentManagers for different Section types. More...
 
class  SectionManager
 SectionManager provides simple programmatic interface for managing registration of pages to sections. More...
 
class  SectionUpgradeManager
 

Functions

 postProcess ($field="")
 

Detailed Description

Function Documentation

◆ postProcess()

postProcess (   $field = "")

Definition at line 105 of file section_content_properties_field_renderer.inc.

106  {
107 
108  $id = $this->parent->id."_".$field;
109  $json = $_POST[$id];
110 
111  trace("JSON: $json", 3);
112  $items = fromJSON('SectionContent', $json);
113 
114  $tx = new DataTransaction();
115  try
116  {
117  foreach($items as $item)
118  {
119  if ($item->section_id && $item->identifier)
120  {
121  $item->joinTransaction($tx);
122  $item->save();
123  }
124  }
125 
126  $tx->commit();
127  }
128  catch (Exception $e)
129  {
130  $tx->rollback();
131  throw $e;
132  }
133  }
$_POST["owner_id"]
Definition: blog_form.inc:54