<?php
/**
* @version 1.0.0
* @category Anahita Social Engineâ¢
* @copyright Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
class AnModelPersonRepository extends AnModelActorRepository
{
/**
*
* @return
* @param $id Object
*/
public function getPerson($id)
{
$query = $this->getMapper()->getQuery()->where('id','=',$id);
return $this->fetch($query);
}
/**
*
* @return
* @param $ids Object
*/
public function getPeople(array $ids)
{
settype($ids, 'int');
$query = $this->getMapper()->getQuery()->where('id','IN',$ids);
$this->fetchAll($ids);
}
}