public function belongsToObject($scope, $scope_id)
	{
		// Make sure we have an id
		if ($this->isNew())
		{
			return true;
		}

		// Make sure scope and id match
		if ($this->get('scope') == (string)$scope
		 && $this->get('scope_id') == (int)$scope_id)
		{
			return true;
		}

		return false;
	}
public function belongsToObject($scope, $scope_id)
	{
		// Make sure we have an id
		if ($this->isNew())
		{
			return true;
		}

		// Make sure scope and id match
		if ($this->get('scope') == (string)$scope
		 && $this->get('scope_id') == (int)$scope_id)
		{
			return true;
		}

		return false;
	}
public function belongsToObject ( $ scope , $ scope_id ) { // Make sure we have an id if ( $ this -> isNew ( ) ) { return true ; } // Make sure scope and id match if ( $ this -> get ( 'scope' ) == ( string ) $ scope && $ this -> get ( 'scope_id' ) == ( int ) $ scope_id ) { return true ; } return false ; }
Method to check if announcement belongs to entity

@param   string   $scope
@param   integer  $scope_id
@return  boolean
Method to check if announcement belongs to entity