Restraining orders and injunctions may be granted by the superior court, or by any judge thereof.