You are here

class PERSIANTOOLS_CONST in PersianTools 7

Canstants Definition

Hierarchy

Expanded class hierarchy of PERSIANTOOLS_CONST

File

./persiantools.module, line 12
Adds common features and fixes for persian pages.

View source
class PERSIANTOOLS_CONST {

  // Statment direction
  const RTL = 0;
  const LTR = 1;

  // Persian digits
  public static $FA_DIGITS = array(
    '۰',
    '۱',
    '۲',
    '۳',
    '۴',
    '۵',
    '۶',
    '۷',
    '۸',
    '۹',
  );

  // Characters type
  const UN = 0;

  // UNknow
  const FA = 1;
  const EN = 2;
  const OPENING = 3;
  const CLOSING = 4;
  const DIGIT = 5;
  const EOS = 6;

  // End Of Statment
  const SLASH = 7;
  const WS = 8;

  // White Space
  public static $OPENING_SYMS = array(
    '(',
    '{',
    '[',
    '"',
    '\'',
  );
  public static $STATMENT_END = array(
    '.',
    '!',
    ';',
    '?',
  );

}

Members