PHP Class Swiftriver\Core\StateTransition\StateController

Author: mg[at]swiftly[dot]org
Datei anzeigen Open project: ushahidi/Swiftriver-2011 Class Usage Examples

Public Properties

Property Type Description
$defaultState integer the default state of a content item

Public Methods

Method Description
IsValidInacurateReason ( string $reason ) : boolean Given a string, this function checks if it is a valid reason for marking a content item as inaccurate.
MarkContentAcurate ( Content $content ) Given a content item, this function marks it as ACCURATE
MarkContentAsSentToUshahidi ( Content $content ) Given a content item, this function marks it as SENT TO USHAHIDI
MarkContentChatter ( Content $content ) Given a content item, this function marks it as CHATTER
MarkContentInaccurate ( Content $content ) Given a content item, this function marks it as INACCURATE
MarkContentIrrelevant ( Content $content ) Given a content item, this function marks it as IRRELEVANT

Method Details

IsValidInacurateReason() public static method

Given a string, this function checks if it is a valid reason for marking a content item as inaccurate.
public static IsValidInacurateReason ( string $reason ) : boolean
$reason string
return boolean

MarkContentAcurate() public static method

Given a content item, this function marks it as ACCURATE
public static MarkContentAcurate ( Content $content )
$content Swiftriver\Core\ObjectModel\Content

MarkContentAsSentToUshahidi() public static method

Given a content item, this function marks it as SENT TO USHAHIDI
public static MarkContentAsSentToUshahidi ( Content $content )
$content Swiftriver\Core\ObjectModel\Content

MarkContentChatter() public static method

Given a content item, this function marks it as CHATTER
public static MarkContentChatter ( Content $content )
$content Swiftriver\Core\ObjectModel\Content

MarkContentInaccurate() public static method

Given a content item, this function marks it as INACCURATE
public static MarkContentInaccurate ( Content $content )
$content Swiftriver\Core\ObjectModel\Content

MarkContentIrrelevant() public static method

Given a content item, this function marks it as IRRELEVANT
public static MarkContentIrrelevant ( Content $content )
$content Swiftriver\Core\ObjectModel\Content

Property Details

$defaultState public_oe static_oe property

the default state of a content item
public static int $defaultState
return integer