| Server IP : 162.214.74.102 / Your IP : 216.73.217.114 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/imobles/application/plugins/module_imobles/helpers/ |
Upload File : |
<?php
include_once __DIR__ . "/ConstructionCompanyTable.php";
class BambuiUnits extends ConstructionCompanyTable{
public function voxHome($csv, $enterprise_id) {
$csv = explode("\n", $csv);
$result_data = array();
foreach($csv as $line) {
$data = array();
$line = str_getcsv($line);
if ($this->isUnitNum($line[0])) {
$data['unit_number'] = $line[0];
$data['parking_spaces'] = trim($line[1] . ' ' . $line[3] . ' ' . $line[5]);
$data['parking_spaces_count'] = $this->countParkingSpaces($data['parking_spaces']);
$data['availability'] = 1;
$data['crawler_type_id'] = 4;
$data['verified'] = 1;
$data['area'] = $line[9];
$data['price'] = $line[10];
$data['entry'] = $line[11];
$data['installment'] = $line[12];
$data['financing'] = $line[15];
$data['enterprise_id'] = $enterprise_id;
}else{
continue;
}
array_push($result_data, $data);
}
$this->units_helper->batchOfUnits($result_data);
}
public function aresMarista($csv, $enterprise_id) {
$csv = explode("\n", $csv);
$result_data = array();
foreach($csv as $line) {
$data = array();
$line = str_getcsv($line);
if ($this->isUnitNum($line[0])) {
if (!$line[4]) {
continue;
}
$data['unit_number'] = $line[0];
$data['parking_spaces'] = trim($line[1] . ' ' . $line[3] . ' ' . $line[5]);
$data['parking_spaces_count'] = $this->countParkingSpaces($data['parking_spaces']);
$data['availability'] = 1;
$data['crawler_type_id'] = 4;
$data['verified'] = 1;
$data['area'] = $line[9];
$data['price'] = $line[10];
$data['entry'] = $line[13];
$data['installment'] = $line[14];
$data['financing'] = $line[18];
$data['enterprise_id'] = $enterprise_id;
}else{
continue;
}
array_push($result_data, $data);
}
$this->units_helper->batchOfUnits($result_data);
}
public function hLParkVacaBrava($csv, $enterprise_id) {
$csv = explode("\n", $csv);
$result_data = array();
foreach($csv as $line) {
$data = array();
$line = str_getcsv($line);
if ($this->isUnitNum($line[0])) {
if (!$line[1]) {
continue;
}
$data['unit_number'] = $line[0];
$data['parking_spaces'] = trim($line[1] . ' ' . $line[2] . ' ' . $line[3]);
$data['parking_spaces_count'] = $this->countParkingSpaces($data['parking_spaces']);
$data['availability'] = 1;
$data['crawler_type_id'] = 4;
$data['verified'] = 1;
$data['area'] = $line[6];
$data['price'] = $line[7];
$data['entry'] = $line[8];
$data['installment'] = $line[9];
$data['financing'] = $line[11];
$data['enterprise_id'] = $enterprise_id;
}else{
continue;
}
array_push($result_data, $data);
}
$this->units_helper->batchOfUnits($result_data);
}
}