function try_set_action_attribute(moojon_base_model $model, $attributes) { $action = moojon_routes::has_rest_route(moojon_inflect::pluralize(get_class($model))) ? get_collection_uri($model) : '#'; return try_set_attribute($attributes, 'action', $action); }
function get_new_member_uri(moojon_base_model $model) { return get_collection_uri($model) . 'new/'; }