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
Mon, May 20, 4:23 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
164727

Event Timeline