pristupy_id; } public function getIdEbanka() { return $this->id_ebanka; } public function getStatus() { return $this->status; } public function getDatumCas($format = 'Y-m-d H:i:s') { if ($this->datum_cas === null || $this->datum_cas === '') { return null; } elseif (!is_int($this->datum_cas)) { $ts = strtotime($this->datum_cas); if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse value of [datum_cas] as date/time value: " . var_export($this->datum_cas, true)); } } else { $ts = $this->datum_cas; } if ($format === null) { return $ts; } elseif (strpos($format, '%') !== false) { return strftime($format, $ts); } else { return date($format, $ts); } } public function getCastkaMena() { return $this->castka_mena; } public function getMena() { return $this->mena; } public function getZakBuNazev() { return $this->zak_bu_nazev; } public function getZakBuCislo() { return $this->zak_bu_cislo; } public function getZakBuKodb() { return $this->zak_bu_kodb; } public function getZakVs() { return $this->zak_vs; } public function getZakKs() { return $this->zak_ks; } public function getZakSs() { return $this->zak_ss; } public function getZakPoznamka() { return $this->zak_poznamka; } public function getPlatnostOd($format = 'Y-m-d') { if ($this->platnost_od === null || $this->platnost_od === '') { return null; } elseif (!is_int($this->platnost_od)) { $ts = strtotime($this->platnost_od); if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse value of [platnost_od] as date/time value: " . var_export($this->platnost_od, true)); } } else { $ts = $this->platnost_od; } if ($format === null) { return $ts; } elseif (strpos($format, '%') !== false) { return strftime($format, $ts); } else { return date($format, $ts); } } public function getPlatnostDo($format = 'Y-m-d') { if ($this->platnost_do === null || $this->platnost_do === '') { return null; } elseif (!is_int($this->platnost_do)) { $ts = strtotime($this->platnost_do); if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse value of [platnost_do] as date/time value: " . var_export($this->platnost_do, true)); } } else { $ts = $this->platnost_do; } if ($format === null) { return $ts; } elseif (strpos($format, '%') !== false) { return strftime($format, $ts); } else { return date($format, $ts); } } public function getZadanoMena() { return $this->zadano_mena; } public function getMyUcet() { return $this->my_ucet; } public function getMyKodb() { return $this->my_kodb; } public function getZpracovano() { return $this->zpracovano; } public function setPristupyId($v) { if ($v !== null && !is_int($v) && is_numeric($v)) { $v = (int) $v; } if ($this->pristupy_id !== $v || $v === 0) { $this->pristupy_id = $v; $this->modifiedColumns[] = EbankaPeer::PRISTUPY_ID; } } public function setIdEbanka($v) { if ($v !== null && !is_int($v) && is_numeric($v)) { $v = (int) $v; } if ($this->id_ebanka !== $v || $v === 0) { $this->id_ebanka = $v; $this->modifiedColumns[] = EbankaPeer::ID_EBANKA; } } public function setStatus($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->status !== $v) { $this->status = $v; $this->modifiedColumns[] = EbankaPeer::STATUS; } } public function setDatumCas($v) { if ($v !== null && !is_int($v)) { $ts = strtotime($v); if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse date/time value for [datum_cas] from input: " . var_export($v, true)); } } else { $ts = $v; } if ($this->datum_cas !== $ts) { $this->datum_cas = $ts; $this->modifiedColumns[] = EbankaPeer::DATUM_CAS; } } public function setCastkaMena($v) { if ($this->castka_mena !== $v) { $this->castka_mena = $v; $this->modifiedColumns[] = EbankaPeer::CASTKA_MENA; } } public function setMena($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->mena !== $v) { $this->mena = $v; $this->modifiedColumns[] = EbankaPeer::MENA; } } public function setZakBuNazev($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->zak_bu_nazev !== $v) { $this->zak_bu_nazev = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_BU_NAZEV; } } public function setZakBuCislo($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->zak_bu_cislo !== $v) { $this->zak_bu_cislo = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_BU_CISLO; } } public function setZakBuKodb($v) { if ($v !== null && !is_int($v) && is_numeric($v)) { $v = (int) $v; } if ($this->zak_bu_kodb !== $v) { $this->zak_bu_kodb = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_BU_KODB; } } public function setZakVs($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->zak_vs !== $v) { $this->zak_vs = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_VS; } } public function setZakKs($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->zak_ks !== $v) { $this->zak_ks = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_KS; } } public function setZakSs($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->zak_ss !== $v) { $this->zak_ss = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_SS; } } public function setZakPoznamka($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->zak_poznamka !== $v) { $this->zak_poznamka = $v; $this->modifiedColumns[] = EbankaPeer::ZAK_POZNAMKA; } } public function setPlatnostOd($v) { if ($v !== null && !is_int($v)) { $ts = strtotime($v); if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse date/time value for [platnost_od] from input: " . var_export($v, true)); } } else { $ts = $v; } if ($this->platnost_od !== $ts) { $this->platnost_od = $ts; $this->modifiedColumns[] = EbankaPeer::PLATNOST_OD; } } public function setPlatnostDo($v) { if ($v !== null && !is_int($v)) { $ts = strtotime($v); if ($ts === -1 || $ts === false) { throw new PropelException("Unable to parse date/time value for [platnost_do] from input: " . var_export($v, true)); } } else { $ts = $v; } if ($this->platnost_do !== $ts) { $this->platnost_do = $ts; $this->modifiedColumns[] = EbankaPeer::PLATNOST_DO; } } public function setZadanoMena($v) { if ($this->zadano_mena !== $v) { $this->zadano_mena = $v; $this->modifiedColumns[] = EbankaPeer::ZADANO_MENA; } } public function setMyUcet($v) { if ($v !== null && !is_string($v)) { $v = (string) $v; } if ($this->my_ucet !== $v) { $this->my_ucet = $v; $this->modifiedColumns[] = EbankaPeer::MY_UCET; } } public function setMyKodb($v) { if ($v !== null && !is_int($v) && is_numeric($v)) { $v = (int) $v; } if ($this->my_kodb !== $v) { $this->my_kodb = $v; $this->modifiedColumns[] = EbankaPeer::MY_KODB; } } public function setZpracovano($v) { if ($v !== null && !is_int($v) && is_numeric($v)) { $v = (int) $v; } if ($this->zpracovano !== $v || $v === 0) { $this->zpracovano = $v; $this->modifiedColumns[] = EbankaPeer::ZPRACOVANO; } } public function hydrate(ResultSet $rs, $startcol = 1) { try { $this->pristupy_id = $rs->getInt($startcol + 0); $this->id_ebanka = $rs->getInt($startcol + 1); $this->status = $rs->getString($startcol + 2); $this->datum_cas = $rs->getTimestamp($startcol + 3, null); $this->castka_mena = $rs->getFloat($startcol + 4); $this->mena = $rs->getString($startcol + 5); $this->zak_bu_nazev = $rs->getString($startcol + 6); $this->zak_bu_cislo = $rs->getString($startcol + 7); $this->zak_bu_kodb = $rs->getInt($startcol + 8); $this->zak_vs = $rs->getString($startcol + 9); $this->zak_ks = $rs->getString($startcol + 10); $this->zak_ss = $rs->getString($startcol + 11); $this->zak_poznamka = $rs->getString($startcol + 12); $this->platnost_od = $rs->getDate($startcol + 13, null); $this->platnost_do = $rs->getDate($startcol + 14, null); $this->zadano_mena = $rs->getFloat($startcol + 15); $this->my_ucet = $rs->getString($startcol + 16); $this->my_kodb = $rs->getInt($startcol + 17); $this->zpracovano = $rs->getInt($startcol + 18); $this->resetModified(); $this->setNew(false); return $startcol + 19; } catch (Exception $e) { throw new PropelException("Error populating Ebanka object", $e); } } public function delete($con = null) { if ($this->isDeleted()) { throw new PropelException("This object has already been deleted."); } if ($con === null) { $con = Propel::getConnection(EbankaPeer::DATABASE_NAME); } try { $con->begin(); EbankaPeer::doDelete($this, $con); $this->setDeleted(true); $con->commit(); } catch (PropelException $e) { $con->rollback(); throw $e; } } public function save($con = null) { if ($this->isDeleted()) { throw new PropelException("You cannot save an object that has been deleted."); } if ($con === null) { $con = Propel::getConnection(EbankaPeer::DATABASE_NAME); } try { $con->begin(); $affectedRows = $this->doSave($con); $con->commit(); return $affectedRows; } catch (PropelException $e) { $con->rollback(); throw $e; } } protected function doSave($con) { $affectedRows = 0; if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->isModified()) { if ($this->isNew()) { $pk = EbankaPeer::doInsert($this, $con); $affectedRows += 1; $this->setNew(false); } else { $affectedRows += EbankaPeer::doUpdate($this, $con); } $this->resetModified(); } $this->alreadyInSave = false; } return $affectedRows; } protected $validationFailures = array(); public function getValidationFailures() { return $this->validationFailures; } public function validate($columns = null) { $res = $this->doValidate($columns); if ($res === true) { $this->validationFailures = array(); return true; } else { $this->validationFailures = $res; return false; } } protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if (($retval = EbankaPeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return (!empty($failureMap) ? $failureMap : true); } public function getByName($name, $type = BasePeer::TYPE_PHPNAME) { $pos = EbankaPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); return $this->getByPosition($pos); } public function getByPosition($pos) { switch($pos) { case 0: return $this->getPristupyId(); break; case 1: return $this->getIdEbanka(); break; case 2: return $this->getStatus(); break; case 3: return $this->getDatumCas(); break; case 4: return $this->getCastkaMena(); break; case 5: return $this->getMena(); break; case 6: return $this->getZakBuNazev(); break; case 7: return $this->getZakBuCislo(); break; case 8: return $this->getZakBuKodb(); break; case 9: return $this->getZakVs(); break; case 10: return $this->getZakKs(); break; case 11: return $this->getZakSs(); break; case 12: return $this->getZakPoznamka(); break; case 13: return $this->getPlatnostOd(); break; case 14: return $this->getPlatnostDo(); break; case 15: return $this->getZadanoMena(); break; case 16: return $this->getMyUcet(); break; case 17: return $this->getMyKodb(); break; case 18: return $this->getZpracovano(); break; default: return null; break; } } public function toArray($keyType = BasePeer::TYPE_PHPNAME) { $keys = EbankaPeer::getFieldNames($keyType); $result = array( $keys[0] => $this->getPristupyId(), $keys[1] => $this->getIdEbanka(), $keys[2] => $this->getStatus(), $keys[3] => $this->getDatumCas(), $keys[4] => $this->getCastkaMena(), $keys[5] => $this->getMena(), $keys[6] => $this->getZakBuNazev(), $keys[7] => $this->getZakBuCislo(), $keys[8] => $this->getZakBuKodb(), $keys[9] => $this->getZakVs(), $keys[10] => $this->getZakKs(), $keys[11] => $this->getZakSs(), $keys[12] => $this->getZakPoznamka(), $keys[13] => $this->getPlatnostOd(), $keys[14] => $this->getPlatnostDo(), $keys[15] => $this->getZadanoMena(), $keys[16] => $this->getMyUcet(), $keys[17] => $this->getMyKodb(), $keys[18] => $this->getZpracovano(), ); return $result; } public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) { $pos = EbankaPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM); return $this->setByPosition($pos, $value); } public function setByPosition($pos, $value) { switch($pos) { case 0: $this->setPristupyId($value); break; case 1: $this->setIdEbanka($value); break; case 2: $this->setStatus($value); break; case 3: $this->setDatumCas($value); break; case 4: $this->setCastkaMena($value); break; case 5: $this->setMena($value); break; case 6: $this->setZakBuNazev($value); break; case 7: $this->setZakBuCislo($value); break; case 8: $this->setZakBuKodb($value); break; case 9: $this->setZakVs($value); break; case 10: $this->setZakKs($value); break; case 11: $this->setZakSs($value); break; case 12: $this->setZakPoznamka($value); break; case 13: $this->setPlatnostOd($value); break; case 14: $this->setPlatnostDo($value); break; case 15: $this->setZadanoMena($value); break; case 16: $this->setMyUcet($value); break; case 17: $this->setMyKodb($value); break; case 18: $this->setZpracovano($value); break; } } public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) { $keys = EbankaPeer::getFieldNames($keyType); if (array_key_exists($keys[0], $arr)) $this->setPristupyId($arr[$keys[0]]); if (array_key_exists($keys[1], $arr)) $this->setIdEbanka($arr[$keys[1]]); if (array_key_exists($keys[2], $arr)) $this->setStatus($arr[$keys[2]]); if (array_key_exists($keys[3], $arr)) $this->setDatumCas($arr[$keys[3]]); if (array_key_exists($keys[4], $arr)) $this->setCastkaMena($arr[$keys[4]]); if (array_key_exists($keys[5], $arr)) $this->setMena($arr[$keys[5]]); if (array_key_exists($keys[6], $arr)) $this->setZakBuNazev($arr[$keys[6]]); if (array_key_exists($keys[7], $arr)) $this->setZakBuCislo($arr[$keys[7]]); if (array_key_exists($keys[8], $arr)) $this->setZakBuKodb($arr[$keys[8]]); if (array_key_exists($keys[9], $arr)) $this->setZakVs($arr[$keys[9]]); if (array_key_exists($keys[10], $arr)) $this->setZakKs($arr[$keys[10]]); if (array_key_exists($keys[11], $arr)) $this->setZakSs($arr[$keys[11]]); if (array_key_exists($keys[12], $arr)) $this->setZakPoznamka($arr[$keys[12]]); if (array_key_exists($keys[13], $arr)) $this->setPlatnostOd($arr[$keys[13]]); if (array_key_exists($keys[14], $arr)) $this->setPlatnostDo($arr[$keys[14]]); if (array_key_exists($keys[15], $arr)) $this->setZadanoMena($arr[$keys[15]]); if (array_key_exists($keys[16], $arr)) $this->setMyUcet($arr[$keys[16]]); if (array_key_exists($keys[17], $arr)) $this->setMyKodb($arr[$keys[17]]); if (array_key_exists($keys[18], $arr)) $this->setZpracovano($arr[$keys[18]]); } public function buildCriteria() { $criteria = new Criteria(EbankaPeer::DATABASE_NAME); if ($this->isColumnModified(EbankaPeer::PRISTUPY_ID)) $criteria->add(EbankaPeer::PRISTUPY_ID, $this->pristupy_id); if ($this->isColumnModified(EbankaPeer::ID_EBANKA)) $criteria->add(EbankaPeer::ID_EBANKA, $this->id_ebanka); if ($this->isColumnModified(EbankaPeer::STATUS)) $criteria->add(EbankaPeer::STATUS, $this->status); if ($this->isColumnModified(EbankaPeer::DATUM_CAS)) $criteria->add(EbankaPeer::DATUM_CAS, $this->datum_cas); if ($this->isColumnModified(EbankaPeer::CASTKA_MENA)) $criteria->add(EbankaPeer::CASTKA_MENA, $this->castka_mena); if ($this->isColumnModified(EbankaPeer::MENA)) $criteria->add(EbankaPeer::MENA, $this->mena); if ($this->isColumnModified(EbankaPeer::ZAK_BU_NAZEV)) $criteria->add(EbankaPeer::ZAK_BU_NAZEV, $this->zak_bu_nazev); if ($this->isColumnModified(EbankaPeer::ZAK_BU_CISLO)) $criteria->add(EbankaPeer::ZAK_BU_CISLO, $this->zak_bu_cislo); if ($this->isColumnModified(EbankaPeer::ZAK_BU_KODB)) $criteria->add(EbankaPeer::ZAK_BU_KODB, $this->zak_bu_kodb); if ($this->isColumnModified(EbankaPeer::ZAK_VS)) $criteria->add(EbankaPeer::ZAK_VS, $this->zak_vs); if ($this->isColumnModified(EbankaPeer::ZAK_KS)) $criteria->add(EbankaPeer::ZAK_KS, $this->zak_ks); if ($this->isColumnModified(EbankaPeer::ZAK_SS)) $criteria->add(EbankaPeer::ZAK_SS, $this->zak_ss); if ($this->isColumnModified(EbankaPeer::ZAK_POZNAMKA)) $criteria->add(EbankaPeer::ZAK_POZNAMKA, $this->zak_poznamka); if ($this->isColumnModified(EbankaPeer::PLATNOST_OD)) $criteria->add(EbankaPeer::PLATNOST_OD, $this->platnost_od); if ($this->isColumnModified(EbankaPeer::PLATNOST_DO)) $criteria->add(EbankaPeer::PLATNOST_DO, $this->platnost_do); if ($this->isColumnModified(EbankaPeer::ZADANO_MENA)) $criteria->add(EbankaPeer::ZADANO_MENA, $this->zadano_mena); if ($this->isColumnModified(EbankaPeer::MY_UCET)) $criteria->add(EbankaPeer::MY_UCET, $this->my_ucet); if ($this->isColumnModified(EbankaPeer::MY_KODB)) $criteria->add(EbankaPeer::MY_KODB, $this->my_kodb); if ($this->isColumnModified(EbankaPeer::ZPRACOVANO)) $criteria->add(EbankaPeer::ZPRACOVANO, $this->zpracovano); return $criteria; } public function buildPkeyCriteria() { $criteria = new Criteria(EbankaPeer::DATABASE_NAME); $criteria->add(EbankaPeer::ID_EBANKA, $this->id_ebanka); return $criteria; } public function getPrimaryKey() { return $this->getIdEbanka(); } public function setPrimaryKey($key) { $this->setIdEbanka($key); } public function copyInto($copyObj, $deepCopy = false) { $copyObj->setPristupyId($this->pristupy_id); $copyObj->setStatus($this->status); $copyObj->setDatumCas($this->datum_cas); $copyObj->setCastkaMena($this->castka_mena); $copyObj->setMena($this->mena); $copyObj->setZakBuNazev($this->zak_bu_nazev); $copyObj->setZakBuCislo($this->zak_bu_cislo); $copyObj->setZakBuKodb($this->zak_bu_kodb); $copyObj->setZakVs($this->zak_vs); $copyObj->setZakKs($this->zak_ks); $copyObj->setZakSs($this->zak_ss); $copyObj->setZakPoznamka($this->zak_poznamka); $copyObj->setPlatnostOd($this->platnost_od); $copyObj->setPlatnostDo($this->platnost_do); $copyObj->setZadanoMena($this->zadano_mena); $copyObj->setMyUcet($this->my_ucet); $copyObj->setMyKodb($this->my_kodb); $copyObj->setZpracovano($this->zpracovano); $copyObj->setNew(true); $copyObj->setIdEbanka('null'); } public function copy($deepCopy = false) { $clazz = get_class($this); $copyObj = new $clazz(); $this->copyInto($copyObj, $deepCopy); return $copyObj; } public function getPeer() { if (self::$peer === null) { self::$peer = new EbankaPeer(); } return self::$peer; } }