public static function getRules($update, $id)
	{
		if (is_null($update))
		{
			return static::$registerRules;
		}
		static::$updateRules['name'] .= ','.$id.',user_id';
		static::$updateRules['email'] .= ','.$id.',user_id';
		return static::$updateRules;
	}
public static function getRules($update, $id)
	{
		if (is_null($update))
		{
			return static::$registerRules;
		}
		static::$updateRules['name'] .= ','.$id.',user_id';
		static::$updateRules['email'] .= ','.$id.',user_id';
		return static::$updateRules;
	}
public static function getRules ( $ update , $ id ) { if ( is_null ( $ update ) ) { return static :: $ registerRules ; } static :: $ updateRules [ 'name' ] .= ',' . $ id . ',user_id' ; static :: $ updateRules [ 'email' ] .= ',' . $ id . ',user_id' ; return static :: $ updateRules ; }
Get rules for new or update
@param $update string|null
@param $id string|null
@return array
Get rules for new or update