Webylon 3.1 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • auth
  • Booking
  • cart
    • shipping
    • steppedcheckout
  • Catalog
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • Address
  • AddSubsiteTask
  • Announcement
  • AnnouncementDecorator
  • AnnouncementHolder
  • AssociatedFolderDecorator
  • AttachedFiles
  • AudioPhpCaptcha
  • AutoCompleteField
  • BaseMediawebImportParser
  • BookingOrder_StatusLog
  • CalendarUtil
  • CalendarWidgetExtention
  • CatalogCatalogLinkedDecorator
  • CatalogImportTask
  • CatalogOldFieldsDecorator
  • CatalogProductLinkedDecorator
  • CheckoutStep_ShippingMethod
  • ChequePayment
  • ClearHistoryTask
  • ClientEmailOrderNotification_SiteConfig
  • ClientVKOrderNotification_SiteConfig
  • CommentsSiteConfig
  • ContactsPage
  • CookieExtention
  • CostTableShippingRate
  • CustomMenu
  • CustomMenuAdmin
  • CustomMenuDecorator
  • CustomMenuHolder
  • CustomMenuItem
  • CustomPayment
  • DataObjectLoggerExtension
  • DataObjectSubsites
  • DefaultCMSActionDecorator
  • DeleteOldAssociatedFoldersTask
  • DocPage
  • DocumentDirection
  • DocumentHaving
  • DocumentSearchForm
  • DocumentSiteConfig
  • DocumentsPage
  • DocumentType
  • DOMUtil
  • ExtendPageAnnouncement
  • ExtendPageNews
  • ExtendPagePoll
  • FileOversizeDecorator
  • FindCyrillicSiteConfig
  • FolderRenameTask
  • GDMergeAlpha
  • HomePage
  • ImageAutoResize
  • ImageResizeTask
  • ImportAdmin
  • ImportAutoStartTask
  • ImportCatalogMessage
  • ImportConfig
  • ImportLog
  • ImportSiteConfig
  • ImportTask
  • LoggerAdmin
  • LogItem
  • ManagerEmailOrderNotification_SiteConfig
  • MapObject
  • MapObjectGroup
  • MapPage
  • MediawebForm
  • MediawebImportParser
  • MemberLoggerExtension
  • MultiUploadConfig
  • NearestEventExtention
  • NewDocumentsAdmin
  • News_Controller
  • NewsEntry
  • NewsEntry_Controller
  • NewsHolder
  • NewsHolder_Controller
  • NewsLiveCalendarWidget
  • NewsSiteConfig
  • Order_StatusLog
  • Orders1CExchange
  • PageHideFieldsExtension
  • PageInformerRates
  • PageInformerWeather
  • Payment_Failure
  • Payment_Processing
  • Payment_Result
  • Payment_Success
  • PaymentMethod
  • PaymentSiteConfig
  • PayPalPayment
  • PayPalPayment_Handler
  • PhoneField
  • PhotoAlbumExtentions
  • PhpCaptcha
  • PhpCaptchaColour
  • PhpCaptchaField
  • phpMorphy
  • phpMorphy_AncodesResolver_AsIs
  • phpMorphy_AncodesResolver_Proxy
  • phpMorphy_AncodesResolver_ToDialingAncodes
  • phpMorphy_AncodesResolver_ToText
  • phpMorphy_AnnotDecoder_Base
  • phpMorphy_AnnotDecoder_Common
  • phpMorphy_AnnotDecoder_Factory
  • phpMorphy_AnnotDecoder_Predict
  • phpMorphy_FilesBundle
  • phpMorphy_Fsa
  • phpMorphy_Fsa_Decorator
  • phpMorphy_Fsa_Proxy
  • phpMorphy_Fsa_Sparse_File
  • phpMorphy_Fsa_Sparse_Mem
  • phpMorphy_Fsa_Sparse_Shm
  • phpMorphy_Fsa_Tree_File
  • phpMorphy_Fsa_Tree_Mem
  • phpMorphy_Fsa_Tree_Shm
  • phpMorphy_Fsa_WordsCollector
  • phpMorphy_GramInfo
  • phpMorphy_GramInfo_AncodeCache
  • phpMorphy_GramInfo_Decorator
  • phpMorphy_Graminfo_File
  • phpMorphy_Graminfo_Mem
  • phpMorphy_GramInfo_Proxy
  • phpMorphy_GramInfo_Proxy_WithHeader
  • phpMorphy_GramInfo_RuntimeCaching
  • phpMorphy_Graminfo_Shm
  • phpMorphy_GrammemsProvider_Base
  • phpMorphy_GrammemsProvider_Decorator
  • phpMorphy_GrammemsProvider_Empty
  • phpMorphy_GrammemsProvider_Factory
  • phpMorphy_GrammemsProvider_ForFactory
  • phpMorphy_GrammemsProvider_ru_RU
  • phpMorphy_GramTab
  • phpMorphy_GramTab_Empty
  • phpMorphy_GramTab_Proxy
  • phpMorphy_Link
  • phpMorphy_Link_Annot
  • phpMorphy_Link_Base
  • phpMorphy_Morphier_Base
  • phpMorphy_Morphier_Bulk
  • phpMorphy_Morphier_Common
  • phpMorphy_Morphier_Empty
  • phpMorphy_Morphier_Finder_Base
  • phpMorphy_Morphier_Finder_Common
  • phpMorphy_Morphier_Finder_Predict_Databse
  • phpMorphy_Morphier_Finder_Predict_Suffix
  • phpMorphy_Morphier_Helper
  • phpMorphy_Morphier_Predict_Database
  • phpMorphy_Morphier_Predict_Suffix
  • phpMorphy_Morphier_PredictCollector
  • phpMorphy_Semaphore
  • phpMorphy_Semaphore_Empty
  • phpMorphy_Semaphore_Nix
  • phpMorphy_Semaphore_Win
  • phpMorphy_Shm_Cache
  • phpMorphy_Shm_Cache_FileDescriptor
  • phpMorphy_Shm_Header
  • phpMorphy_Source_Dba
  • phpMorphy_Source_Fsa
  • phpMorphy_State
  • phpMorphy_Storage
  • phpMorphy_Storage_Factory
  • phpMorphy_Storage_File
  • phpMorphy_Storage_Mem
  • phpMorphy_Storage_Proxy
  • phpMorphy_Storage_Shm
  • phpMorphy_UnicodeHelper
  • phpMorphy_UnicodeHelper_Base
  • phpMorphy_UnicodeHelper_MultiByteFixed
  • phpMorphy_UnicodeHelper_singlebyte
  • phpMorphy_UnicodeHelper_ucs_2be
  • phpMorphy_UnicodeHelper_ucs_2le
  • phpMorphy_UnicodeHelper_ucs_4be
  • phpMorphy_UnicodeHelper_ucs_4le
  • phpMorphy_UnicodeHelper_utf_16_Base
  • phpMorphy_UnicodeHelper_utf_16be
  • phpMorphy_UnicodeHelper_utf_16le
  • phpMorphy_UnicodeHelper_utf_32_Base
  • phpMorphy_UnicodeHelper_utf_32be
  • phpMorphy_UnicodeHelper_utf_32le
  • phpMorphy_UnicodeHelper_utf_8
  • phpMorphy_WordDescriptor
  • phpMorphy_WordDescriptor_Collection
  • phpMorphy_WordDescriptor_Collection_Serializer
  • phpMorphy_WordForm
  • ProductImportV1Decorator
  • ProductOldFieldsDecorator
  • ProductProductLinkedDecorator
  • PublHolder
  • Publication
  • PublicationSiteTree
  • RatingDataObject
  • RatingExtension
  • RealtySiteConfigDecorator
  • RecentComments
  • RecentFiles
  • RecentPages
  • RelatedPageLink
  • RepairImportTask
  • RoomRate_PriceField
  • RussianUpLower
  • SberbankPayment
  • SberbankPayment_Handler
  • SetMainSiteHomePageTypeTask
  • ShippingEstimator
  • ShippingPackage
  • ShowUserFromExtension
  • SiteConfigDecorator
  • SiteConfigSubsites
  • SiteTreeSubsites
  • SMSCOrderNotification_SiteConfig
  • SMSOrderNotification_SiteConfig
  • SortCMSActionDecorator
  • SS_Report_FakeQuery
  • SSMorphy
  • SSNController
  • SteppedCheckout_PageMessages
  • SubpageListField
  • SubscribeFormAllPagesExtension
  • SubsiteDropdownField
  • SubsiteReportWrapper
  • TableShippingRate
  • UnitellerPayment
  • UnitellerPayment_Handler
  • UnmoderatedComments
  • VideoManager
  • VideoSiteConfig
  • WatermarkImage
  • WatermarkSiteConfig
  • WebylonImportAdmin
  • WebylonImportCatalog
  • WeightTableShippingRate
  • XMLValidate
  • YaMoneyPayment
  • YaMoneyPayment_Handler
  • YMLExporter
  • YMLSiteConfig

Interfaces

  • ImportInterface
  • PaymentObjectInterface
  • phpMorphy_AncodesResolver_Interface
  • phpMorphy_AnnotDecoder_Interface
  • phpMorphy_Fsa_Interface
  • phpMorphy_GramInfo_Interace
  • phpMorphy_GrammemsProvider_Interface
  • phpMorphy_GramTab_Interface
  • phpMorphy_Morphier_Finder_Interface
  • phpMorphy_Morphier_Interface
  • phpMorphy_Shm_Cache_Interface
  • phpMorphy_Source_Interface

Exceptions

  • phpMorphy_Exception

Functions

  • column_sort
  • column_sort_callback_basic
  • encodeFileForEmail
  • encodeMultipart
  • getMimeType
  • htmlEmail
  • loadMimeTypes
  • phpmorphy_overload_mb_funcs
  • plaintextEmail
  • processHeaders
  • QuotedPrintable_encode
  • supressOutput
  • validateError
  • validEmailAddr
  • wrapImagesInline
  • wrapImagesInline_rewriter

Class CatalogImportTask

Процесс импортирования нашего каталога sake /CatalogImportTask

Object
Extended by ViewableData implements IteratorAggregate
Extended by RequestHandler
Extended by Controller
Extended by CliController
Extended by ScheduledTask
Extended by CatalogImportTask
Author: menedem, dvp
Located at catalog_import/code/CatalogImportTask.php

Methods summary

public static
# set_base_url( string $url )

Установка нестандартного каталога для импорта

Установка нестандартного каталога для импорта

Parameters

$url
string $url - путь к базовому каталогу импорта относительно корня сайта
public static
# get_base_url( )
public static
# set_import_filename( string $val )

Установка нестандартного имени XML файла с данными импорта

Установка нестандартного имени XML файла с данными импорта

Parameters

$val
string $val новое имя файла
public static
# import_filename( )
public static
# import_filepath( )
public static
# set_log_count( integer $count )

Установка количества хранимых логов импорта

Установка количества хранимых логов импорта

Parameters

$count
int $count
public static
# set_version_count( integer $count )

Установка количества хранимых версий страниц (чтоб не плодить версии при импорте)

Установка количества хранимых версий страниц (чтоб не плодить версии при импорте)

Parameters

$count
int $count
public static
# set_xml_validate_file_path( integer $path )

Установка пути к своему файл валидации XML

Установка пути к своему файл валидации XML

Parameters

$path
int $count
public static string
# absolute_import_path( string $filename )

Полный путь к папке импорта (может быть указано имя файла в этой папке)

Полный путь к папке импорта (может быть указано имя файла в этой папке)

Parameters

$filename
string $filename

Returns

string
string
public static Array
# get_possible_start_pages( )

Получение допустимых типов корневых страниц для импорта

Получение допустимых типов корневых страниц для импорта

Returns

Array
Array
public static string
# module_path( string $filename )

Полный путь к корню модуля (может быть указано имя файла в этой папке) - например для получения catalog2.xsd

Полный путь к корню модуля (может быть указано имя файла в этой папке) - например для получения catalog2.xsd

Parameters

$filename
string $filename

Returns

string
string
public static string
# xml_validate_file_path( )

Полный путь к файлу валидации xml (по умолчанию catalog2.xsd)

Полный путь к файлу валидации xml (по умолчанию catalog2.xsd)

Returns

string
string
public static string
# xml2log( SimpleXml $element )

Преобразование XML-строки в текстовую для записи в лог

Преобразование XML-строки в текстовую для записи в лог

Parameters

$element
SimpleXml $element

Returns

string
string
public static array
# xml2array( SimpleXMLElement $xml )

Преобразует xml объект в массив

Преобразует xml объект в массив

Parameters

$xml
SimpleXMLElement $xml

Returns

array
- представление xml в виде массива
public string
# getFilePath( string $path )

Путь к файлу относительно корня сайта

Путь к файлу относительно корня сайта

Parameters

$path
string $path часть пути файла

Returns

string
string
public
# fatalError( string $message )

!!!!!!!!!!!! Не используется (возможно пока)

!!!!!!!!!!!! Не используется (возможно пока)

Parameters

$message
string $message
public string
# TotalMessage( )

Сообщение о результатх импорта

Сообщение о результатх импорта

Returns

string
string
public
# fillImportSettings( SimpleXMLElement $settings, mixed $srcName )

Заполняем настройки импорта

Заполняем настройки импорта

Parameters

$settings
SimpleXMLElement $settings
$srcName
public boolean
# checkImportSettings( mixed $settings )

Проверяем настройки импорта

Проверяем настройки импорта

Returns

boolean
boolean
public integer
# findCatalogID( integer $importID )

Возвращает Catalog ID по ImportID

Возвращает Catalog ID по ImportID

Parameters

$importID
int $importID

Returns

integer
- ID каталога из БД
public
# process( )

Процесс импорта

Процесс импорта

Overrides

CliController::process
public boolean
# importCatalog( mixed $startTime )

Импорт каталога

Импорт каталога

Returns

boolean
- флаг успешного завершения
public boolean
# importCategories( )

Импорт категорий

Импорт категорий

Returns

boolean
- флаг успешного завершения
public boolean
# importProducts( )

Импорт продуктов

Импорт продуктов

Returns

boolean
- флаг успешного завершения
public DataObjectSet
# importListedPhotos( SimpleXMLElement $data )

Импорт списочных фоток

Импорт списочных фоток

Parameters

$data
SimpleXMLElement $data

Returns

DataObjectSet
DataObjectSet
public DataObjectSet
# importListedFiles( SimpleXMLElement $data )

Импорт списочных файлов

Импорт списочных файлов

Parameters

$data
SimpleXMLElement $data

Returns

DataObjectSet
DataObjectSet
public DataObjectSet
# importListedSpecCatalogs( SimpleXMLElement $data )

Импорт списочных Спец.каталогов

Импорт списочных Спец.каталогов

Parameters

$data
SimpleXMLElement $data

Returns

DataObjectSet
DataObjectSet
public boolean
# unpublishNotUpdated( string $importStartTime )

Скрываем элементы, которых не нужно отображать после импорта

Скрываем элементы, которых не нужно отображать после импорта

Parameters

$importStartTime
string $importStartTime

Returns

boolean
boolean
public boolean
# deleteEmptyDBFiles( )

Чистим записи в БД - картинки, которые есть в БД, но нет на диске.

Чистим записи в БД - картинки, которые есть в БД, но нет на диске.

Returns

boolean
boolean
public Image
# importPhoto( DataObject $photoID, string $imagePath )

Импорт изображений

Импорт изображений

Parameters

$photoID
DataObject $object
$imagePath
string $path

Returns

Image
Image
public File
# importFile( string $filePath )

Импорт файлов

Импорт файлов

Parameters

$filePath
string $path

Returns

File
File

Methods inherited from CliController

index(), init()

Methods inherited from Controller

CurrentMember(), Now(), PastMember(), PastVisitor(), can(), curr(), defaultAction(), disableBasicAuth(), getAction(), getFormOwner(), getRequest(), getResponse(), getSession(), getURLParams(), getViewer(), handleAction(), handleRequest(), hasAction(), hasActionTemplate(), has_curr(), isAjax(), join_links(), popCurrent(), pushCurrent(), redirect(), redirectBack(), redirectedTo(), render(), setSession(), setURLParams()

Methods inherited from RequestHandler

__construct(), allowedActions(), checkAccessAction(), httpError()

Methods inherited from ViewableData

ATT_val(), BaseHref(), CSSClasses(), ColumnBreak(), ColumnCalc(), ColumnNumber(), ColumnPad(), ColumnPos(), CurrentPage(), Debug(), Even(), EvenOdd(), First(), FirstLast(), HasPerm(), IsAjax(), JS_val(), Last(), Me(), Middle(), MiddleString(), Modulus(), MultipleOf(), Odd(), Pos(), RAW_val(), SQL_val(), ThemeDir(), ThemeName(), Top(), TotalItems(), XML_val(), __get(), __isset(), __set(), buildCastingCache(), cachedCall(), castingClass(), castingHelper(), castingHelperPair(), castingObjectCreator(), castingObjectCreatorPair(), customise(), defineMethods(), escapeTypeForField(), getField(), getIterator(), getSecurityID(), getXMLValues(), hasField(), hasValue(), i18nLocale(), iteratorProperties(), obj(), renderWith(), setCustomisedObj(), setField()

Methods inherited from Object

__call(), __toString(), __wakeup(), addMethodsFrom(), addStaticVars(), addWrapperMethod(), add_extension(), add_static_var(), allMethodNames(), cacheToFile(), cacheToFileWithArgs(), clearCache(), combined_static(), create(), createMethod(), create_from_string(), exists(), extInstance(), extend(), getCustomClass(), getExtensionInstance(), getExtensionInstances(), get_extensions(), get_static(), hasExtension(), hasMethod(), has_extension(), invokeWithExtensions(), is_a(), loadCache(), parentClass(), parse_class_spec(), remove_extension(), sanitiseCachename(), saveCache(), set_stat(), set_static(), set_uninherited(), stat(), strong_create(), uninherited(), uninherited_static(), useCustomClass()

Magic methods summary

Properties summary

protected mixed $importCategories
#
protected mixed $importProducts
#
protected static array $possibleSettings
#
protected static array $possibleStartPages
#
protected static boolean $option_xml_validate_file_path
#
protected mixed $importLog
#
protected boolean $importSettings
#
protected array $categoryMap
#
protected array $newCategories
#
protected integer $importedCategoriesCount
#
protected integer $importedProductsCount
#
protected integer $updatedCategoriesCount
#
protected integer $updatedProductsCount
#
protected integer $deletedCategoriesCount
#
protected integer $deletedProductsCount
#
protected integer $unpublishCategoriesCount
#
protected integer $unpublishProductsCount
#

Properties inherited from Controller

$action, $allowed_actions, $baseInitCalled, $basicAuthEnabled, $controller_stack, $request, $requestParams, $response, $session, $urlParams, $url_handlers

Properties inherited from RequestHandler

$brokenOnConstruct

Properties inherited from ViewableData

$casting, $customisedObject, $default_cast, $failover, $iteratorPos, $iteratorTotalItems

Properties inherited from Object

$class, $extension_instances, $extensions

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -
Webylon 3.1 API Docs API documentation generated by ApiGen 2.8.0