| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www2024/wp-content/plugins/gravityforms/includes/assets/ |
Upload File : |
<?php
namespace Gravity_Forms\Gravity_Forms\Assets;
abstract class GF_Dependencies {
/**
* Items to enqueue
*
* @since 2.6
*
* @var array
*/
protected $items = array();
/**
* The method for actually enqueueing the items.
*
* @since 2.6
*
* @param $handle
*
* @return mixed
*/
abstract protected function do_enqueue( $handle );
/**
* Get the dependency items.
*
* @since 2.6
*
* @return array
*/
public function get_items() {
return $this->items;
}
/**
* Enqueue the items.
*
* @since 2.6
*
* @param $items
*/
public function enqueue() {
if ( ! $this->should_enqueue() ) {
return;
}
foreach ( $this->items as $handle ) {
$this->do_enqueue( $handle );
}
}
/**
* Override to determine whether the assets outlined should be enqueued.
*
* @since 2.6
*
* @return bool
*/
protected function should_enqueue() {
return true;
}
}