Where immovable property of one person by act of parties or operation of law made security for the payment of money to another, and the transaction does not amount to a mortgage, the latter person is said to have a charge on the property; and all the provisions hereinbefore contained [which apply to a simple mortgage shall, so far as may be, app...