__get() 공개 메소드

Magic __get function to dispatch a call to retrieve a private property
부터: 1.0
public __get ( string $key ) : mixed
$key string
리턴 mixed
예제 #1
0
/**
 * Returns the minimum price amount of a form, only enforced for the custom amount input.
 *
 * @since 1.3.6
 *
 * @param int $form_id ID number of the form to retrieve the minimum price for
 *
 * @return mixed string|int Minimum price of the form
 */
function give_get_form_minimum_price($form_id = 0)
{
    if (empty($form_id)) {
        return false;
    }
    $form = new Give_Donate_Form($form_id);
    return $form->__get('minimum_price');
}