return $value;
} /**
* Internal method that will return a list of IDs of a given foreign entity which is connected to a given $detailIds
*
* @param string $foreignPrefix
* @param int[] $detailIds
*/
public function getIdForForeignEntityInternal($foreignPrefix,
$detailIds) { $quoted = '(' .
$this->
getDb()->
quote($detailIds, PDO::PARAM_INT
) . ');';
switch ($foreignPrefix) { case 'attribute':
return $this->
getDb()->
fetchCol( 'SELECT id FROM s_articles_attributes WHERE articledetailsID IN ' .
$quoted );
case 'article':
return $this->
getDb()->
fetchCol('SELECT articleID FROM s_articles_details WHERE id IN ' .
$quoted);
case 'detail':