function getPayStubEntryAccountsTypeArray() { if (is_array($this->pay_stub_entry_accounts_type_obj)) { //Debug::text('Returning Cached data...' , __FILE__, __LINE__, __METHOD__,10); return $this->pay_stub_entry_accounts_type_obj; } else { $psealf = new PayStubEntryAccountListFactory(); $this->pay_stub_entry_accounts_type_obj = $psealf->getByTypeArrayByCompanyIdAndStatusId($this->getUserObject()->getCompany(), 10); if (is_array($this->pay_stub_entry_accounts_type_obj)) { return $this->pay_stub_entry_accounts_type_obj; } Debug::text('Returning FALSE...', __FILE__, __LINE__, __METHOD__, 10); return FALSE; } }