first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author OnTheGo Systems
|
||||
*/
|
||||
abstract class WPML_WP_Option {
|
||||
|
||||
abstract public function get_key();
|
||||
abstract public function get_default();
|
||||
|
||||
public function get() {
|
||||
return get_option( $this->get_key(), $this->get_default() );
|
||||
}
|
||||
|
||||
public function set( $value, $autoload = true ) {
|
||||
update_option( $this->get_key(), $value, $autoload );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user