PHP 클래스 WellCommerce\Bundle\AdminBundle\Importer\XmlImporter

저자: Adam Piotrowski ([email protected])
상속: implements WellCommerce\Bundle\AdminBundle\Importer\AdminMenuImporterInterface
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$adminMenuFactory WellCommerce\Bundle\AdminBundle\Factory\AdminMenuFactory
$adminMenuRepository WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface

공개 메소드들

메소드 설명
__construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, AdminMenuFactory $adminMenuFactory, WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface $adminMenuRepository ) Constructor
import ( $file, Symfony\Component\Config\FileLocatorInterface $locator )

보호된 메소드들

메소드 설명
addMenuItem ( SimpleXMLElement $item ) Creates new admin menu item
importItems ( DOMDocument $xml ) Parses DOM element and adds it as an admin menu item
parseFile ( string $file ) : DOMDocument Parses a XML file

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface $doctrineHelper, AdminMenuFactory $adminMenuFactory, WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface $adminMenuRepository )
$doctrineHelper WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface
$adminMenuFactory WellCommerce\Bundle\AdminBundle\Factory\AdminMenuFactory
$adminMenuRepository WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface

addMenuItem() 보호된 메소드

Creates new admin menu item
protected addMenuItem ( SimpleXMLElement $item )
$item SimpleXMLElement

import() 공개 메소드

public import ( $file, Symfony\Component\Config\FileLocatorInterface $locator )
$locator Symfony\Component\Config\FileLocatorInterface

importItems() 보호된 메소드

Parses DOM element and adds it as an admin menu item
protected importItems ( DOMDocument $xml )
$xml DOMDocument

parseFile() 보호된 메소드

Parses a XML file
protected parseFile ( string $file ) : DOMDocument
$file string
리턴 DOMDocument

프로퍼티 상세

$adminMenuFactory 보호되어 있는 프로퍼티

protected AdminMenuFactory,WellCommerce\Bundle\AdminBundle\Factory $adminMenuFactory
리턴 WellCommerce\Bundle\AdminBundle\Factory\AdminMenuFactory

$adminMenuRepository 보호되어 있는 프로퍼티

protected AdminMenuRepositoryInterface,WellCommerce\Bundle\AdminBundle\Repository $adminMenuRepository
리턴 WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface

$doctrineHelper 보호되어 있는 프로퍼티

protected DoctrineHelperInterface,WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine $doctrineHelper
리턴 WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface