Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActiveRecord
  • Cache
  • Configs
  • Core
  • DateTime
  • Debug
  • DeleteOperation
  • Errors
  • Event
  • EventHook
  • Events
  • FileCache
  • FormattedString
  • Helpers
  • I18n
  • Image
  • Inflections
  • Inflector
  • Models
  • Module
  • Modules
  • Object
  • Operation
  • PingOperation
  • Prototype
  • Route
  • Routes
  • SaveOperation
  • Session
  • TimeZone
  • TimeZoneLocation
  • Uploaded
  • Vars
  • VarsIterator

Interfaces

  • StorageInterface
  • ToArray
  • ToArrayRecursive

Traits

  • PrototypeTrait
  • ToArrayRecursiveTrait

Exceptions

  • AlreadyAuthenticated
  • AuthenticationRequired
  • Exception
  • ModuleConstructorMissing
  • ModuleIsDisabled
  • ModuleNotDefined
  • OffsetError
  • OffsetNotDefined
  • OffsetNotReadable
  • OffsetNotWritable
  • PermissionRequired
  • PropertyError
  • PropertyIsReserved
  • PropertyNotDefined
  • PropertyNotReadable
  • PropertyNotWritable
  • RouteNotDefined
  • SecurityException

Constants

  • TOKEN_ALPHA
  • TOKEN_ALPHA_UPCASE
  • TOKEN_NUMERIC
  • TOKEN_SYMBOL
  • TOKEN_SYMBOL_WIDE

Functions

  • array_flatten
  • array_insert
  • array_merge_recursive
  • camelize
  • capitalize
  • downcase
  • dump
  • escape
  • escape_all
  • exact_array_merge_recursive
  • excerpt
  • format
  • generate_token
  • generate_token_wide
  • generate_v4_uuid
  • get_autoconfig
  • humanize
  • hyphenate
  • log
  • log_error
  • log_info
  • log_success
  • log_time
  • normalize
  • normalize_namespace_part
  • normalize_url_path
  • pbkdf2
  • pluralize
  • remove_accents
  • shorten
  • singularize
  • sort_by_weight
  • stable_sort
  • strip_root
  • titleize
  • unaccent_compare
  • unaccent_compare_ci
  • underscore
  • upcase

Class TimeZoneLocation

Representation of a time zone location.

<?php

use ICanBoogie\TimeZoneLocation;

$zone = new \DateTimeZone('Europe/Paris');
$location = new TimeZoneLocation($zone->getLocation());

echo $location;               // FR,48.86667,2.33333
echo $location->country_code; // FR
echo $location->latitude;     // 48.86667
echo $location->longitude;    // 2.33333

$location->latitude = true;   // throws ICanBoogie\PropertyNotWritable
Namespace: ICanBoogie
Located at vendor/icanboogie/datetime/lib/timezonelocation.php

Methods summary

public static ICanBoogie\TimeZoneLocation
# from( DateTimeZone $zone )

Creates an instance from a DateTimeZone instance.

Creates an instance from a DateTimeZone instance.

Parameters

$zone
DateTimeZone
$zone

Returns

ICanBoogie\TimeZoneLocation
public
# __construct( array $location )

Initializes the $location property.

Initializes the $location property.

Parameters

$location
array
$location Location information provided by DateTimeZone::getLocation().
public
# __get( string $property )

Returns the $country_code, $latitude, $longitude and $comments properties.

Returns the $country_code, $latitude, $longitude and $comments properties.

Parameters

$property
string
$property

Throws

ICanBoogie\PropertyNotDefined
in attempt to get an unsupported property.
public
# __set( mixed $property, mixed $value )

Throws

ICanBoogie\PropertyNotWritable
in attempt to set an unsupported property.
public string
# __toString( )

Returns the instance formatted as "{$country_code},{$latitude},{$longitude}".

Returns the instance formatted as "{$country_code},{$latitude},{$longitude}".

Returns

string

Magic methods summary

Properties summary

Magic properties

public read-only string $country_code
#

The country code of the location.

The country code of the location.

public read-only float $latitude
#

The latitude of the location.

The latitude of the location.

public read-only float $longitude
#

The longitude of the location.

The longitude of the location.

public read-only string $comments
#

Comments on the location.

Comments on the location.

Autodoc API documentation generated by ApiGen 2.8.0