Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1083205
TYPProfileService.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
532 B
Subscribers
None
TYPProfileService.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Wed, Dec 25, 2:19 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
193603
Attached To
rPF typ_profile
Event Timeline
Log In to Comment