Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('SYSPATH') OR die('No direct access allowed.');
- /**
- * Configura parâmetros necessários a classe Diigo_Client.
- *
- * @author Álvaro Guimarães <alvaroguimaraes@gmail.com>
- *
- */
- class Diigo_Client_Options implements Diigo_Client_Options_Interface
- {
- private static $instance = null;
- private $user = null;
- private $pass = null;
- private $section = null;
- /**
- * Para garantir o Singleton
- *
- * @return void
- */
- private function __construct()
- {
- }
- /**
- * Para garantir o Singleton
- *
- * @return void
- */
- private function __clone()
- {
- }
- /**
- * Retorna e mantém uma única instância
- *
- * @return object Diigo_Client_Options
- */
- public static function instance()
- {
- if (self::$instance == null)
- {
- self::$instance = new self();
- }
- return self::$instance;
- }
- /**
- * (non-PHPdoc)
- * @see application/libraries/Diigo_Client_Options_Interface#set_user($user)
- */
- public function set_user($user)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * (non-PHPdoc)
- * @see application/libraries/Diigo_Client_Options_Interface#set_pass($pass)
- */
- public function set_pass($pass)
- {
- $this->pass = $pass;
- return $this;
- }
- /**
- * (non-PHPdoc)
- * @see application/libraries/Diigo_Client_Options_Interface#set_section($section)
- */
- public function set_section($section)
- {
- $this->section = $section;
- return $this;
- }
- /**
- * (non-PHPdoc)
- * @see application/libraries/Diigo_Client_Options_Interface#get_user()
- */
- public function get_user()
- {
- return $this->user;
- }
- /**
- * (non-PHPdoc)
- * @see application/libraries/Diigo_Client_Options_Interface#get_pass()
- */
- public function get_pass()
- {
- return $this->pass;
- }
- /**
- * (non-PHPdoc)
- * @see application/libraries/Diigo_Client_Options_Interface#get_section()
- */
- public function get_section()
- {
- return $this->section;
- }
- }
Add Comment
Please, Sign In to add comment