Page MenuHomePhabricator

TYPProfileService.php
No OneTemporary

TYPProfileService.php

<?php
namespace Drupal\typ_profile\Service;
use Drupal\typ_legacy\Service\TYPUtilsService;
use Drupal\typ_legacy\Service\TYPMongoDB;
/**
* Promotion Service
*/
class TYPProfileService
{
public static function getCollection($collection = 'yp_promotion'){
return TYPMongoDB::getCollection($collection);
}
public static function _getpromotion($bid = NULL){
$data = self::getCollection('yp_promotion')->find(array('businessid'=>$bid));
if(count($data) == 1){
return $data;
}else{
#break;
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Dec 24, 3:15 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
193603

Event Timeline