public static function getActionItems($type, $component, $element, $uid)
	{
		$entries = self::all();

		$a = $entries->getTableName();
		$m = Message::blank()->getTableName();
		$r = Recipient::blank()->getTableName();

		return $entries
			->select($m . '.id')
			->join($r, $r . '.actionid', $a . '.id', 'inner')
			->join($m, $m . '.id', $r . '.mid', 'inner')
			->whereEquals($m . '.type', $type)
			->whereEquals($r . '.uid', $uid)
			->whereEquals($a . '.class', $component)
			->whereEquals($a . '.element', $element)
			->rows();
	}
public static function getActionItems($type, $component, $element, $uid)
	{
		$entries = self::all();

		$a = $entries->getTableName();
		$m = Message::blank()->getTableName();
		$r = Recipient::blank()->getTableName();

		return $entries
			->select($m . '.id')
			->join($r, $r . '.actionid', $a . '.id', 'inner')
			->join($m, $m . '.id', $r . '.mid', 'inner')
			->whereEquals($m . '.type', $type)
			->whereEquals($r . '.uid', $uid)
			->whereEquals($a . '.class', $component)
			->whereEquals($a . '.element', $element)
			->rows();
	}
public static function getActionItems ( $ type , $ component , $ element , $ uid ) { $ entries = self :: all ( ) ; $ a = $ entries -> getTableName ( ) ; $ m = Message :: blank ( ) -> getTableName ( ) ; $ r = Recipient :: blank ( ) -> getTableName ( ) ; return $ entries -> select ( $ m . '.id' ) -> join ( $ r , $ r . '.actionid' , $ a . '.id' , 'inner' ) -> join ( $ m , $ m . '.id' , $ r . '.mid' , 'inner' ) -> whereEquals ( $ m . '.type' , $ type ) -> whereEquals ( $ r . '.uid' , $ uid ) -> whereEquals ( $ a . '.class' , $ component ) -> whereEquals ( $ a . '.element' , $ element ) -> rows ( ) ; }
Get records for specific type, element, component, and user

@param   string   $type       Action type
@param   string   $component  Component name
@param   integer  $element    ID of element that needs action
@param   integer  $uid        User ID
@return  object
Get records for specific type element component and user