blob: 6d0b19523f8352509e4410ee5de19f1e5320ca02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
class sfIsisImporterWrapper {
/**
* Constructor.
*/
public function __construct($isis)
{
$this->isis = $isis;
}
/**
* Make an association with a given model.
*
* @param object $model Model for the association
*/
public function useModel($model)
{
$this->model = $model;
}
/**
* Get the current subfield from the current field and row.
*
* @param boolean $explode Whether to explode the result
* @return string Subfield value
*/
public function currentSubfield($explode = false)
{
if ($explode)
{
return $this->isis->explodeSubfield($this->field, $this->subfield, $this->row);
}
else
{
return $this->isis->getSubfield($this->field, $this->subfield, $this->row);
}
}
}
|