API Documentation

Translate/Plural.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Locale
version
$Id: Plural.php 22519 2010-07-04 11:05:52Z thomas $
Classes
Zend_Translate_Plural

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Translate_Plural

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Locale
Properties
$_plural
Methods
getPlural
setPlural

Description

Utility class for returning the plural rules according to the given locale

Properties

$_plural

string $_plural = 'array'

Manual rule to use

Details

$_plural
string
visibility
protected
default
array
final
false
static
true

Methods

getPlural

getPlural( integer $number, string $locale ) : integer

Returns the plural definition to use

Arguments
$number
integer
Number for plural selection
$locale
string
Locale to use
Output
integer
Plural number to use
Details
visibility
public
final
false
static
true

setPlural

setPlural( string $rule, string $locale ) : null

Set's a new plural rule

Arguments
$rule
string
Callback which acts as rule
$locale
string
Locale which is used for this callback
Output
null
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.