xplo.re Medusa Core Framework 3.1
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Authentication
  • Authentication_Token
  • Autoloader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Iterator
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • String
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • UseVersion
  • Version

Functions

  • ns_expand
  • ns_file_exists
  • ns_get_version
  • ns_resolve

Class Locale_Iterator

Iterator for locales. Use Locale::iterator() to retrieve a locale iterator instance.

Core\Object implements Core\Chainable
Extended by Core\Locale_Iterator implements Iterator
Namespace: Core
Package: Core\Locale
See: Locale::iterator()
Since: 3.0
Since: PHP 5.3
Version: 1.0
Located at Locale.inc.php

Methods summary

public
# __construct( array $locales )

Initialises a locale iterator.

Initialises a locale iterator.

Parameters

$locales
Array of locale names to iterate over.

Since

3.0
public Core\Locale
# current( )

Returns the current Core\Locale instance (used by iterators).

Returns the current Core\Locale instance (used by iterators).

Returns

Core\Locale

Reference to locale instance or null, if the currently iterated locale names entry is an invalid locale name.

Since

3.0

Implementation of

Iterator::current()
public integer
# key( )

Returns the current iteration index (used by iterators).

Returns the current iteration index (used by iterators).

Returns

integer
Current zero-based iteration index.

Since

3.0

Implementation of

Iterator::key()
public
# next( )

Increases the internal iteration index by one (used by iterators).

Increases the internal iteration index by one (used by iterators).

Since

3.0

Implementation of

Iterator::next()
public
# rewind( )

Resets the internal iteration index to 0 (used by iterators).

Resets the internal iteration index to 0 (used by iterators).

Since

3.0

Implementation of

Iterator::rewind()
public boolean
# valid( )

Tests, whether the current iteration index is valid (used by iterators).

Tests, whether the current iteration index is valid (used by iterators).

Returns

boolean
true, if the current index is within range, otherwise false.

Since

3.0

Implementation of

Iterator::valid()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected string[] $_locales

Array of locales to iterate over.

Array of locales to iterate over.

Since

3.0
#
protected integer $_position

Current iteration position.

Current iteration position.

Since

3.0
#

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.1 API documentation generated by ApiGen