https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/snelapotheeks.com/wp-content/plugins/loco-translate/src/data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/snelapotheeks.com/wp-content/plugins/loco-translate/src/data/Option.php
<?php
/**
 * Data object persisted as a WordPress "option"
 */
abstract class Loco_data_Option extends Loco_data_Serializable {

    
    /**
     * Get short suffix for use as end of option_name field.
     * DB allows 191 characters including "loco_" prefix, leaving 185 bytes
     * @return string
     */
    abstract public function getKey();

    /**
     * Persist object in WordPress options database
     * @return bool
     */
    public function persist(){
        $key = 'loco_'.$this->getKey();
        return update_option( $key, $this->getSerializable(), false );
    }


    /**
     * Retrieve and unserialize this object from WordPress options table
     * @return bool whether object existed in cache
     */
    public function fetch(){
        $key = 'loco_'.$this->getKey();
        if( $data = get_option($key) ){
            try {
                $this->setUnserialized($data);
                return true;
            }
            catch( InvalidArgumentException $e ){
                // suppress validation error
                // @codeCoverageIgnore
            }
        }
        return false;
    }
    
    
    /**
     * Delete option from WordPress
     */
    public function remove(){
        $key = 'loco_'.$this->getKey();
        return delete_option( $key );
    }
    
}

https://t.me/ARX49 - 2025