Get an item out of a WordPress option

@param string $id Session identifier

@return bool|string
356486
protected function _read( $id ) {
		$session_id = $this->sanitize( $id );

		$data    = get_option( "_wp_session_$session_id" );
		$expires = intval( get_option( "_wp_session_expires_$session_id" ) );
		if ( false !== $data ) {
			$item = new Option( $data, $expires );
			if ( ! $item->is_valid() ) {
				$this->_delete( $session_id );

				return false;
			}

			return $item->data;
		}

		return false;
	}
456045
public function get($id)
    {
        $response = $this->getResponse();
        $contentType = 'application/json';
        $adapter = '\Zend\Serializer\Adapter\Json';
        $response->getHeaders()->addHeaderLine('Content-Type', $contentType);
        $adapter = new $adapter();
        
        $appId = $this->getEvent()
            ->getRouteMatch()
            ->getParam('appId');
        
        /*
         * $content = array( 'login' => array( 'urls' => array( 'page' => 'http://ic.adfab.fr/pmagento/index.php/customer/account/login/', 'success' => 'http://ic.adfab.fr/pmagento/index.php/customer/account/', ), 'items' => array( array('selector' => 'id', 'name' => 'email') ), ), 'logout' => array( 'urls' => array( 'page' => 'http://ic.adfab.fr/pmagento/', 'success' => 'http://ic.adfab.fr/pmagento/index.php/customer/account/logoutSuccess/', ), ), 'taxonomy' => array( 'config' => array( 'broadcast' => false, ), 'items' => array( array( 'url' => '/account', 'xpath' => "//div[@class='block-account']", 'id' => 'account' ), array( 'url' => '/checkout', 'id' => 'checkout' ), array( 'xpath' => "//div[@class='my-wishlist']", 'id' => 'wishlist' ), ), ), );
         */
        
        $content = array(
            'library' => array(
                'config' => array(
                    'broadcast' => false
                ),
                'stories' => array(
                    'login_user' => array(
                        'events' => array(
                            'before' => array(
                                'url' => '/customer\\/account\\/login/',
                                'xpath' => "//a[@title='Log In']"
                            ),
                            'after' => array(
                                'url' => '/customer\\/account/',
                                'xpath' => "//a[@title='Log Out']"
                            )
                        ),
                        'conditions' => array(
                            'url' => '/customer\\/account/',
                            'xpath' => "//a[@title='Log Out']"
                        ),
                        'action' => 'login',
                        'objects' => array(
                            'id' => 'login_id',
                            'properties' => array(
                                array(
                                    'name' => 'email',
                                    'xpath' => "//input[@id='email']"
                                )
                            )
                        )
                    ),
                    'logout_user' => array(
                        'events' => array(
                            'before' => array(
                                'url' => '/ic.adfab.fr\/pmagento/',
                                'xpath' => "//a[@title='Log Out']"
                            ),
                            'after' => array(
                                'url' => '/ic.adfab.fr\/pmagento/',
                                'xpath' => "//a[@title='Log In']"
                            )
                        ),
                        'conditions' => array(
                            'url' => '/logoutSuccess/',
                            'xpath' => "//a[@title='Log In']"
                        ),
                        'action' => 'logout'
                    ),
                    'tips1' => array(
                        'conditions' => array(
                            'url' => '/ic.adfab.fr\/pmagento/'
                        ),
                        'action' => 'find',
                        'objects' => array(
                            'id' => 'tip 1'
                        ),
                        'event' => array(
                            'xpath' => '//body',
                            'type' => 'mouseup',
                            'area' => array(
                                'debug' => true,
                                'y' => 200,
                                'x' => 200,
                                'text' => 'null',
                                'width' => 400,
                                'height' => 200,
                                'xpath' => "//p[@class='home-callout'][1]/img/@src"
                            )
                        )
                    ),
                    'tips2' => array(
                        'conditions' => array(
                            'url' => '/ic.adfab.fr\/pmagento/'
                        ),
                        'action' => 'find',
                        'objects' => array(
                            'id' => 'tip 2'
                        ),
                        'event' => array(
                            'xpath' => '//body',
                            'type' => 'mouseup',
                            'area' => array(
                                'debug' => true,
                                'y' => null,
                                'x' => null,
                                'text' => 'Your',
                                'width' => null,
                                'height' => null,
                                'xpath' => "//html/body[@class=' cms-index-index cms-home']/div[@class='wrapper']/div[@class='page']/div[@class='header-container']/div[@class='header']/div[@class='quick-access']/div[@class='form-language']/label"
                            )
                        )
                    ),
                    'tips3' => array(
                        'conditions' => array(
                            'url' => '/ic.adfab.fr\/pmagento/'
                        ),
                        'action' => 'find',
                        'objects' => array(
                            'id' => 'tip 1'
                        ),
                        'event' => array(
                            'xpath' => '//body',
                            'type' => 'mouseup',
                            'area' => array(
                                'debug' => false,
                                'y' => 7,
                                'x' => 8,
                                'text' => 'null',
                                'width' => 63,
                                'height' => 32,
                                'xpath' => "//html[1]/body[1]/div[1]/div[1]/div[1]/div[1]/h1[1]/a[1]/img[1]"
                            )
                        )
                    ),
                    'tips4' => array(
                        'conditions' => array(
                            'url' => '/ic.adfab.fr\/pmagento/'
                        ),
                        'action' => 'find',
                        'objects' => array(
                            'id' => 'tip 2'
                        ),
                        'event' => array(
                            'xpath' => '//body',
                            'type' => 'mouseup',
                            'area' => array(
                                'debug' => false,
                                'y' => null,
                                'x' => null,
                                'text' => 'Your',
                                'width' => null,
                                'height' => null,
                                'xpath' => "//html/body[@class=' cms-index-index cms-home']/div[@class='wrapper']/div[@class='page']/div[@class='header-container']/div[@class='header']/div[@class='quick-access']/div[@class='form-language']/label"
                            )
                        )
                    )
                )
            )
        );
        
        $response->setContent($adapter->serialize($content));
        
        return $response;
    }
1139330
public function getById($id)
    {
        if (!isset($this->pluginInstances[$id])) {
            $class = $this->getPluginClass($id);
            if (!class_exists($class)) {
                $this->pluginInstances[$id] = false;
            } else {
                $this->pluginInstances[$id] = new $class(['wei' => $this->wei]);
            }
        }

        return $this->pluginInstances[$id];
    }
996991
public function getRoute($id)
    {
        return isset($this->routes[$id]) ? $this->routes[$id] : false;
    }
1043576
public function get($id) {
        $this->checkPermissions('get');
        
        return $this->client->retrieveData($this->resourceName . '/' . $id);
    }
823991
public function get($id)
	{
		$success = FALSE;
		$data = apc_fetch($id, $success);

		if ($success === TRUE)
		{
			return is_array($data)
				? unserialize($data[0])
				: $data;
		}

		return FALSE;
	}
1133581
public function getById($id)
    {       
        if (!is_null($this->_table) && !is_null($id)) {
            $this->_sql = "SELECT * FROM $this->_table WHERE id = $id";
            $row = $this->_select($this->_sql);
            return (isset($row[0])) ? $row[0] : null;
        }
    }
601773
public function fetchById($id)
    {
        if ($this->hasCache()) {
            $data = $this->getCacheItem($id);
            return $data;
        }
        return parent::fetchById($id);
    }
777374
public function getItem($id)
    {
        foreach ($this->entity->getItems() as $item) {
            if ($item->getId() === $id) {
                return $item;
            }
        }

        return null;
    }
1157813
public function fetch( $id ) {

		if ( $this->contains( $id ) ) {
			$this->cacheHits++;
			return $this->cache->getItem( $id );
		}

		$this->cacheMisses++;
		return false;
	}
469541
public function get($id)
    {
        if (!is_string($id)) {
            throw new ContainerException('$id must be a string');
        }

        if (!isset($this->definitions[$id])) {
            throw new NotFoundException("Unresolvable ".$id);
        }

        return $this->definitions[$id];
    }
1195051
public function fetchIssue($id)
    {
        $this->connect();

        return $this->soapClient->getIssue($this->token, $id);
    }
327176
public function getOneById($id)
    {
        $id = (string)$id;

        $fields = implode(', ', $this->fields);
        $sql = 'SELECT ' . $fields . ' FROM ' . $this->table . ' WHERE ' . $this->table . '.id = :id';
        $query = $this->pdo->prepare($sql);
        $query->bindParam(':id', $id);
        $query->execute();

        return $query->fetch(PDO::FETCH_ASSOC);
    }
457070
protected function _getById($id) {
		$model = $this->_config['model'];
		return $model::find('first', ['conditions' => [$model::key() => $id]]);
	}
866650
public function getPage($id)
    {
        $found_page = null;

        foreach ($this->pages as $page) {
            if ($page->id == $id) {
                $found_page = $page;
                break;
            }
        }

        return $found_page;
    }
477278
public function getInfo($id)
	{
		$send_snoopy = new Snoopy; 
		$send_snoopy->rawheaders['Cookie']= $this->cookie;
		$t = time().strval(mt_rand(100,999));
		$send_snoopy->referer = "https://mp.weixin.qq.com/cgi-bin/getmessage?t=wxm-message&lang=zh_CN&count=50&token=".$this->_token;
		$submit = "https://mp.weixin.qq.com/cgi-bin/getcontactinfo";
		$post = array('ajax'=>1,'lang'=>'zh_CN','random'=>'0.'.$t,'token'=>$this->_token,'t'=>'ajax-getcontactinfo','fakeid'=>$id);
		$send_snoopy->submit($submit,$post);
		$this->log($send_snoopy->results);
		$result = json_decode($send_snoopy->results,true);
		if(isset($result['contact_info'])){
			return $result['contact_info'];
		}
		return false;
	}
236839
private function get(String $id)
	{
		if (!$id) {
			$id = ConnectionManager::DEFAULT_CONNECTION_ID;
		}

		if (count($this->loadedConnections) < 1) {
			return false;
		}

		if (isset($this->loadedConnections[$id])) {
			$this->configuredConnectionId = $id;
			$this->platformConnector = [$id => $this->loadedConnections[$id]];
			$connector = new PlatformResolver($this);
			return $connector->resolvePlatform(new EventManager());
		}
	}