public function ended()
	{
		// If it doesn't exist or isn't published
		if ($this->isNew())
		{
			return true;
		}

		if ($this->get('publish_down')
		 && $this->get('publish_down') != '0000-00-00 00:00:00'
		 && $this->get('publish_down') <= Date::toSql())
		{
			return true;
		}

		return false;
	}
public function ended()
	{
		// If it doesn't exist or isn't published
		if ($this->isNew())
		{
			return true;
		}

		if ($this->get('publish_down')
		 && $this->get('publish_down') != '0000-00-00 00:00:00'
		 && $this->get('publish_down') <= Date::toSql())
		{
			return true;
		}

		return false;
	}
public function ended ( ) { // If it doesn't exist or isn't published if ( $ this -> isNew ( ) ) { return true ; } if ( $ this -> get ( 'publish_down' ) && $ this -> get ( 'publish_down' ) != '0000-00-00 00:00:00' && $ this -> get ( 'publish_down' ) <= Date :: toSql ( ) ) { return true ; } return false ; }
Has the publish window ended?

@return  boolean
Has the publish window ended?