Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux server1.cbinetwhm.bi 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User : fenacobu (1017)
PHP Version : 8.1.34
Disable Functions : NONE
Current Directory : /home/fenacobu/www/libraries/smartslider3/src/Framework/Pattern/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: /home/fenacobu/www/libraries/smartslider3/src/Framework/Pattern/OrderableTrait.php

<?php

namespace Nextend\Framework\Pattern;

trait OrderableTrait {

    public function getOrdering() {

        return isset($this->ordering) ? $this->ordering : 1000000;
    }

    /**
     * @param OrderableTrait[] $items
     */
    public static function uasort(&$items) {
        uasort($items, array(
            OrderableTrait::class,
            'compare'
        ));
    }

    /**
     * @param OrderableTrait $a
     * @param OrderableTrait $b
     *
     * @return int
     */
    public static function compare($a, $b) {
        return $a->getOrdering() - $b->getOrdering();
    }
}

Cyb3r Drag0nz Team • Google Edition