public static function isWatching($item_id, $item_type, $created_by)
	{
		if ($item_id && $item_type && $created_by)
		{
			$total = self::all()
				->whereEquals('state', 1)
				->whereEquals('created_by', (int)$created_by)
				->whereEquals('item_id', (int)$item_id)
				->whereEquals('item_type', (string)$item_type)
				->total();

			if ($total)
			{
				return true;
			}
		}

		return false;
	}
public static function isWatching($item_id, $item_type, $created_by)
	{
		if ($item_id && $item_type && $created_by)
		{
			$total = self::all()
				->whereEquals('state', 1)
				->whereEquals('created_by', (int)$created_by)
				->whereEquals('item_id', (int)$item_id)
				->whereEquals('item_type', (string)$item_type)
				->total();

			if ($total)
			{
				return true;
			}
		}

		return false;
	}
public static function isWatching ( $ item_id , $ item_type , $ created_by ) { if ( $ item_id && $ item_type && $ created_by ) { $ total = self :: all ( ) -> whereEquals ( 'state' , 1 ) -> whereEquals ( 'created_by' , ( int ) $ created_by ) -> whereEquals ( 'item_id' , ( int ) $ item_id ) -> whereEquals ( 'item_type' , ( string ) $ item_type ) -> total ( ) ; if ( $ total ) { return true ; } } return false ; }
Is user watching item?

@param   integer  $item_id
@param   string   $item_type
@param   integer  $created_by
@return  boolean
Is user watching item?