application/models/Reminderrecipient_model.php
/**
     * Creates or modifies a Reminder recipient object.
     */
Creates or modifies a Reminder recipient object.
Creates or modifies a Reminder recipient object .
public function store($post) {
        $now = date('Y-m-d h:i:s');
        R::wipe('reminderrecipient');
        foreach($post['reminder_recipient'] as $ctr => $reminder_recipient_user_id) {
            $reminderrecipient = R::dispense('reminderrecipient');
            $reminderrecipient->user_id = $reminder_recipient_user_id;
            $reminderrecipient->created = $now;
            $reminderrecipient->created_by = $_SESSION['user_id'];
            R::store($reminderrecipient);
        }
    }
public function store ( $ post ) { $ now = date ( 'Y-m-d h:i:s' ) ; R :: wipe ( 'reminderrecipient' ) ; foreach ( $ post [ 'reminder_recipient' ] as $ ctr => $ reminder_recipient_user_id ) { $ reminderrecipient = R :: dispense ( 'reminderrecipient' ) ; $ reminderrecipient -> user_id = $ reminder_recipient_user_id ; $ reminderrecipient -> created = $ now ; $ reminderrecipient -> created_by = $ _SESSION [ 'user_id' ] ; R :: store ( $ reminderrecipient ) ; } }
Creates or modifies a Reminder recipient object.
Creates or modifies a Reminder recipient object .