Открытые члены | |
handle (HtmlDocument $document) | |
Открытые члены унаследованные от Parser | |
getValidNumberPattern () | |
parse ($phoneNumber, $defaultCountry='') | |
stripExtension (&$phoneNumber) | |
Открытые атрибуты | |
const | MIN_IMAGE_HEIGHT = 100 |
const | MIN_IMAGE_WIDTH = 100 |
Открытые атрибуты унаследованные от Parser | |
const | MAX_LENGTH_COUNTRY_CODE = 3 |
const | MIN_LENGTH_FOR_NSN = 2 |
const | MAX_LENGTH_FOR_NSN = 17 |
const | MAX_INPUT_STRING_LENGTH = 250 |
const | DEFAULT_COUNTRY_OPTION = 'phone_number_default_country' |
Защищенные члены | |
getTitle (HtmlDocument $document) | |
getImage (HtmlDocument $document) | |
getImageCandidates () | |
getImageDimensions (array $imageAttributes) | |
getVideoInfo ($html='') | |
isValidVideoMimeType ($type='') | |
Защищенные члены унаследованные от Parser | |
__construct () | |
extractFormattedPhoneNumber ($phoneNumber) | |
isViablePhoneNumber ($phoneNumber) | |
parsePhoneNumberAndCountryPhoneCode ($phoneNumber) | |
normalizePhoneNumber ($phoneNumber) | |
getMetadataByCountryCode ($countryCode) | |
findCountry ($countryCode, $localNumber) | |
getNumberType ($localNumber, $country) | |
getCountriesByCode ($countryCode) | |
getCountryMetadata ($country) | |
Защищенные данные | |
$imgElements = array() | |
Защищенные данные унаследованные от Parser | |
$plusChar = '+' | |
$validDigits = '0-9' | |
$dashes = '-' | |
$slashes = '\/' | |
$dot = '.' | |
$whitespace = '\s' | |
$brackets = '()\\[\\]' | |
$tildes = '~' | |
$extensionSeparators = ';#' | |
$extensionSymbols = ',' | |
$phoneNumberStartPattern | |
$afterPhoneNumberEndPattern | |
$minLengthPhoneNumberPattern | |
$validPunctuation | |
$validPhoneNumber | |
$validPhoneNumberPattern | |
Дополнительные унаследованные члены | |
Открытые статические члены унаследованные от Parser | |
static | getInstance () |
static | getDefaultCountry () |
static | getUserDefaultCountry () |
static | detectCountry () |
Защищенные статические члены унаследованные от Parser | |
static | stripNationalPrefix (&$phoneNumber, $countryMetadata) |
static | stripCountryCode (&$phoneNumber, $countryMetadata) |
static | stripLetters ($str) |
Статические защищенные данные унаследованные от Parser | |
static | $instance = null |
См. определение в файле common.php строка 8
|
protected |
|
protected |
Iterates through img elements, and return array of urls of images, which size is greater then 100pxx100px
См. определение в файле common.php строка 116
|
protected |
Returns size of the img element
array | $imageAttributes | Array of the attributes of the img tag. |
См. определение в файле common.php строка 135
|
protected |
HtmlDocument | $document | HTML document to scan for title. |
См. определение в файле common.php строка 76
|
protected |
Parse one <video> tag and try to get valid information off it.
string | $html | - one <video> from the document. |
См. определение в файле common.php строка 162
handle | ( | HtmlDocument | $document | ) |
Parses HTML document's meta tags, and fills document's metadata.
HtmlDocument | $document | HTML document to scan for metadata. |
См. определение в файле common.php строка 22
|
protected |
Returns true if $type is a valid video mime-type.
string | $type |
См. определение в файле common.php строка 215
|
protected |
См. определение в файле common.php строка 14
const MIN_IMAGE_HEIGHT = 100 |
См. определение в файле common.php строка 10
const MIN_IMAGE_WIDTH = 100 |
См. определение в файле common.php строка 11