PHP 클래스 PartKeepr\TipOfTheDayBundle\Services\TipOfTheDayService

파일 보기 프로젝트 열기: partkeepr/PartKeepr

공개 메소드들

메소드 설명
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, EntityManager $entityManager, CronLoggerService $cronLoggerService, PartKeepr\RemoteFileLoader\RemoteFileLoaderFactory $remoteFileLoader )
syncTips ( ) Syncronizes the tip database against the master wiki.

비공개 메소드들

메소드 설명
extractPageNames ( string $response ) : array Extracts the page names from the mediawiki JSON returned.
updateTipDatabase ( array $aPageNames ) Updates the tip database. Expects an array of page names.

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container, EntityManager $entityManager, CronLoggerService $cronLoggerService, PartKeepr\RemoteFileLoader\RemoteFileLoaderFactory $remoteFileLoader )
$container Symfony\Component\DependencyInjection\ContainerInterface
$entityManager Doctrine\ORM\EntityManager
$cronLoggerService PartKeepr\CronLoggerBundle\Services\CronLoggerService
$remoteFileLoader PartKeepr\RemoteFileLoader\RemoteFileLoaderFactory

syncTips() 공개 메소드

Syncronizes the tip database against the master wiki.
public syncTips ( )