A law enforcement officer may detain a person when:
(a) He or she has a warrant commanding that such person be arrested; or(b) he or she has reason to believe that a warrant for the person's arrest has been issued by any municipal court; or(c) he or she has probable cause to believe that the person is committing or has committed a violation of an ordinance, and the law enforcement officer has probable cause to believe that such person will not be apprehended or evidence of the violation of the ordinance will be irretrievably lost unless such person is immediately detained, or such person may cause injury to himself, herself or others or damage to property unless immediately detained; or(d) any violation of an ordinance has been or is being committed by such person in his or her view.A law enforcement officer having detained a person pursuant to the preceding paragraph, except subsection (a) or (b) thereof, may release the person or may prepare and serve upon such person a complaint and notice to appear, as provided by K.S.A. 12-4204 or 12-4205 and shall then release such accused person from such detention, except in such instances where the law enforcement officer has power and authority to arrest such accused person as hereinafter set forth.
L. 1973, ch. 61, § 12-4211; 4/1/1974.