public function automaticRules($data)
	{
		if (!isset($data['rules']))
		{
			$data['rules'] = '{}';
		}

		if (!is_string($data['rules']))
		{
			$data['rules'] = (string)$data['rules'];
		}

		return $data['rules'];
	}
public function automaticRules($data)
	{
		if (!isset($data['rules']))
		{
			$data['rules'] = '{}';
		}

		if (!is_string($data['rules']))
		{
			$data['rules'] = (string)$data['rules'];
		}

		return $data['rules'];
	}
public function automaticRules ( $ data ) { if ( ! isset ( $ data [ 'rules' ] ) ) { $ data [ 'rules' ] = '{}' ; } if ( ! is_string ( $ data [ 'rules' ] ) ) { $ data [ 'rules' ] = ( string ) $ data [ 'rules' ] ; } return $ data [ 'rules' ] ; }
Generates automatic rules field value

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