Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10750799
PhabricatorGroupMapping.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
845 B
Referenced Files
None
Subscribers
None
PhabricatorGroupMapping.php
View Options
<?php
namespace
Nasqueron\Notifications\Analyzers\Phabricator
;
use
Nasqueron\Notifications\Analyzers\ItemGroupMapping
;
use
Nasqueron\Notifications\Phabricator\PhabricatorStory
;
class
PhabricatorGroupMapping
extends
ItemGroupMapping
{
///
/// Extra properties
///
/**
* An array of words, each item a string with a word to find in the story.
*
* @var array
*/
public
$words
=
[];
///
/// Helper methods to process words
///
/**
* Determines if the specified story belong to this mapping
*
* @return bool
*/
public
function
doesStoryBelong
(
PhabricatorStory
$story
)
{
foreach
(
$this
->
words
as
$word
)
{
if
(
stripos
(
$story
->
text
,
$word
)
!==
false
)
{
return
true
;
}
}
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jul 27, 20:36 (15 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2819042
Default Alt Text
PhabricatorGroupMapping.php (845 B)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment