diff options
Diffstat (limited to 'lib/sfIsisImporter.class.php')
-rw-r--r-- | lib/sfIsisImporter.class.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/sfIsisImporter.class.php b/lib/sfIsisImporter.class.php index a112155..7a263df 100644 --- a/lib/sfIsisImporter.class.php +++ b/lib/sfIsisImporter.class.php @@ -44,7 +44,8 @@ class sfIsisImporter extends IsisConnector * @param string $model Relation name * @return string Relation table id */ - static function getRelationId($relation) { + static function getRelationId($relation) + { return sfInflector::underscore($relation) .'_id'; } @@ -173,7 +174,8 @@ class sfIsisImporter extends IsisConnector * @param array $field Field data from ISIS database schema * @param int $row Row number */ - public function addField(&$model, $field, $row = 0) { + public function addField(&$model, $field, $row = 0) + { $value = $this->filterBrackets($this->getMainItem($field, $row)); if ($value != null) @@ -191,7 +193,8 @@ class sfIsisImporter extends IsisConnector * @param string $subfield Subfield name * @param int $row Row number */ - public function addSubfield(&$model, $field, $subfield, $row = 0) { + public function addSubfield(&$model, $field, $subfield, $row = 0) + { $value = $this->filterBrackets($this->getSubfield($field, $subfield, $row)); if ($value != null) @@ -308,7 +311,8 @@ class sfIsisImporter extends IsisConnector * @param array $values Values to be added * @param string $relation Relation name */ - public function addManyToMany(&$model, array $values, $relation) { + public function addManyToMany(&$model, array $values, $relation) + { $method = 'add'. $relation; foreach ($values as $value) |