!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/laravel-crm/packages/Webkul/Automation/src/Helpers/   drwxrwxrwx
Free 13.14 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:     Entity.php (2.18 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Webkul\Automation\Helpers;

use 
Webkul\Attribute\Repositories\AttributeRepository;
use 
Webkul\EmailTemplate\Repositories\EmailTemplateRepository;

class 
Entity
{
    
/**
     * Create a new repository instance.
     *
     * @return void
     */
    
public function __construct(
        protected 
AttributeRepository $attributeRepository,
        protected 
EmailTemplateRepository $emailTemplateRepository
    
) {}

    
/**
     * Returns events to match for the entity
     *
     * @return array
     */
    
public function getEvents()
    {
        
$entities config('workflows.trigger_entities');

        
$events = [];

        foreach (
$entities as $key => $entity) {
            
$object app($entity['class']);

            
$events[$key] = [
                
'id'     => $key,
                
'name'   => $entity['name'],
                
'events' => $entity['events'],
            ];
        }

        return 
$events;
    }

    
/**
     * Returns conditions to match for the entity
     *
     * @return array
     */
    
public function getConditions()
    {
        
$entities config('workflows.trigger_entities');

        
$conditions = [];

        foreach (
$entities as $key => $entity) {
            
$object app($entity['class']);

            
$conditions[$key] = $object->getConditions();
        }

        return 
$conditions;
    }

    
/**
     * Returns workflow actions
     *
     * @return array
     */
    
public function getActions()
    {
        
$entities config('workflows.trigger_entities');

        
$conditions = [];

        foreach (
$entities as $key => $entity) {
            
$object app($entity['class']);

            
$conditions[$key] = $object->getActions();
        }

        return 
$conditions;
    }

    
/**
     * Returns placeholders for email templates
     *
     * @return array
     */
    
public function getEmailTemplatePlaceholders()
    {
        
$entities config('workflows.trigger_entities');

        
$placeholders = [];

        foreach (
$entities as $key => $entity) {
            
$object app($entity['class']);

            
$placeholders[] = $object->getEmailTemplatePlaceholders($entity);
        }

        return 
$placeholders;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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