function setPayPeriodSchedule($id) { $id = trim($id); $ppslf = new PayPeriodScheduleListFactory(); if ($id != 0 or $this->Validator->isResultSetWithRows('pay_period_schedule', $ppslf->getByID($id), TTi18n::gettext('Pay Period Schedule is invalid'))) { $this->data['pay_period_schedule_id'] = $id; return TRUE; } return FALSE; }