|
class SearchProgrammer extends Searching
implements searchable
{
public $remote_collection = null;
private function __construct()
{
try {
$coll = PWS::connect()->getData();
if( $coll instanceof Doctrine_Collection ) {
$this->remote_collection = $coll;
}
} catch(ServiceException $e)
{ eManager::render( $e ); } { public function getCollection()
{
return $this->remote_collection;
} public static function getInstance()
{
static $singleton_istance = null;
if ( $singleton_istance == null ) {
$singleton_istance = new SearchProgrammer();
return $singleton_istance;
}
}
} $programmer = array('name' => 'Daniele Centamore');
$coll = SearchProgrammer::getInstance()->getCollection();
$available = $coll->find($programmer,searchable::RENDER);
echo $available->getFirst(); |
Name:
Daniele Centamore Role:
PHP Developer Languages spoken:
Italian , English Project Management Certification:
Prince 2 Development style:
lamp , xamp , OOP , design patterns Email address:
Availability:
20 February 2012 Blog:
do you need a developer for a LAMP/XAMP project? ... contact me
|