!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/mercadopago/dx-php/src/MercadoPago/Generic/   drwxrwxr-x
Free 13.13 GB of 57.97 GB (22.66%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SearchResultsArray.php (2.95 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
namespace MercadoPago;

    use 
ArrayObject;

    class 
SearchResultsArray extends ArrayObject {

        public 
$_filters;
        public 
$limit;
        public 
$total;
        public 
$offset;
        public 
$errors;
        public 
$_class;
        

        public function 
setEntityTypes($class){
            
$this->_class $class;
        }

        public function 
setPaginateParams($params){ 
            
$this->limit  $params["limit"];
            
$this->total  $params["total"];
            
$this->offset $params["offset"]; 
        }

        public function 
next() {
            
$new_offset $this->limit $this->offset;
            
$this->_filters['offset'] = $new_offset;
            
$result $this->_class::search($this->_filters);
 
            
$this->limit $result->limit;
            
$this->offset $result->offset;
            
$this->total $result->total;

            
$this->exchangeArray($result->getArrayCopy()); 
        }

        public function 
fetch($filters$body) {
            
$this->_filters $filters;

            if (
$body) {
                
$results = [];
                if (
array_key_exists("results"$body)) {
                    
$results $body["results"];
                } else if (
array_key_exists("elements"$body)) {
                    
$results $body["elements"];
                }

                foreach (
$results as $result) {
                    
$entity = new $this->_class();
                    
$entity->fillFromArray($entity$result);
                    
$this->append($entity);
                }

                
$this->fetchPaging($filters$body);
            }
        }

        public function 
process_error_body($message){ 

            
$recuperable_error = new RecuperableError(
                
$message['message'],
                
$message['error'],
                
$message['status']
            );
            
            foreach (
$message['cause'] as $causes) { 
                if(
is_array($causes)) {
                    foreach (
$causes as $cause) {
                        
$recuperable_error->add_cause($cause['code'], $cause['description']);
                    }
                } else {
                    
$recuperable_error->add_cause($cause['code'], $cause['description']);
                }
            }
          
            
$this->errors $recuperable_error;
        }

        private function 
fetchPaging($filters$body) {
            if (
array_key_exists("paging"$body)) {
                
$paging $body["paging"];
                
$this->limit  $paging["limit"];
                
$this->total  $paging["total"];
                
$this->offset $paging["offset"];
            } else {
                
$this->offset array_key_exists("offset"$filters) ? $filters["offset"] : 0;
                
$this->limit array_key_exists("limit"$filters) ? $filters["limit"] : 20;
                
$this->total  array_key_exists("total"$body) ? $body["total"] : 0;
            }
        }

    }

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0054 ]--