コード例 #1
0
ファイル: ModeloGeneral.php プロジェクト: hipogea/zega
 private function getPrefijo()
 {
     $prefix = "";
     if ($this->documento === null or empty($this->documento)) {
         throw new CHttpException(500, __CLASS__ . '   ' . __FUNCTION__ . '   ' . __LINE__ . ' NO ha definido la propiedad documento ');
     }
     $prefix = Documentos::Prefijo($this->documento);
     if ($prefix === null or empty($prefix)) {
         throw new CHttpException(500, __CLASS__ . '   ' . __FUNCTION__ . '   ' . __LINE__ . ' NO se encontro ningun prefijo para el documento ' . $this->documento . '  Revise la tabla documentos');
     }
     return trim($prefix);
 }