public function automaticPublishUp($data)
	{
		if (!isset($data['publish_up']))
		{
			$data['publish_up'] = null;
		}

		$publish_up = $data['publish_up'];

		if (!$publish_up || $publish_up == '0000-00-00 00:00:00')
		{
			$publish_up = ($data['id'] ? $this->created : Date::of('now')->toSql());
		}

		return $publish_up;
	}
public function automaticPublishUp($data)
	{
		if (!isset($data['publish_up']))
		{
			$data['publish_up'] = null;
		}

		$publish_up = $data['publish_up'];

		if (!$publish_up || $publish_up == '0000-00-00 00:00:00')
		{
			$publish_up = ($data['id'] ? $this->created : Date::of('now')->toSql());
		}

		return $publish_up;
	}
public function automaticPublishUp ( $ data ) { if ( ! isset ( $ data [ 'publish_up' ] ) ) { $ data [ 'publish_up' ] = null ; } $ publish_up = $ data [ 'publish_up' ] ; if ( ! $ publish_up || $ publish_up == '0000-00-00 00:00:00' ) { $ publish_up = ( $ data [ 'id' ] ? $ this -> created : Date :: of ( 'now' ) -> toSql ( ) ) ; } return $ publish_up ; }
Generates automatic owned by field value

@param   array   $data  the data being saved
@return  string
Generates automatic owned by field value