PHP 클래스 Newscoop\Entity\Repository\ArticleDatetimeRepository

상속: extends Doctrine\ORM\EntityRepository
파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$lastQParams
$lastQb

공개 메소드들

메소드 설명
add ( array | ArticleDatetime $timeSet, integer | Article $articleId, string $fieldName = null, string $recurring = null, boolean $overwrite = false, $otherInfo = null ) Adds time intervals
deleteByArticle ( $article )
deleteById ( $id )
deleteField ( $p_articleType, $p_fieldNames )
findDates ( object $search, $dontExecute = false ) Find dates
getEmpty ( )
getFindDatesSQL ( array | string $cols = null ) Get the sql used for find method
renameField ( $p_articleType, $p_fieldNames )
update ( integer $id, array $timeSet, integer $articleId = null, string $fieldName = null, string $recurring = null, $otherInfo = null ) Update entry by id

비공개 메소드들

메소드 설명
buildInsertValues ( $timeSet, $recurring ) : array

메소드 상세

add() 공개 메소드

Adds time intervals
public add ( array | ArticleDatetime $timeSet, integer | Article $articleId, string $fieldName = null, string $recurring = null, boolean $overwrite = false, $otherInfo = null )
$timeSet array | Newscoop\Entity\ArticleDatetime Complex set of intervals { "2011-11-02" = { "12:00" => "18:00", "20:00" => "22:00", [ "recurring" => true|false ] } - between these hours on 11-02 "2011-11-03" = "11:00 - recurring:weekly" - at 11:00 this day, and recurring weekly "2011-11-03 14:00" = "18:00" - from 3rd nov 14:00 until 18:00 "2011-11-04" = "2011-11-07" - from 4th till 7th nov "2011-11-08" = "2011-11-09 12:00" - from 8th till 12:00 9th "2011-11-10 10:30" = "2011-11-11" - from 10th 10:40 until the end of the day "2011-11-12 12:30" = "2011-11-13 13:00" - self explanatory "2011-11-14 14:30" = "2011-11-15 15:00" - self explanatory "2011-11-15 15:30" = "2011-11-17" - self explanatory "2011-11-30" = true - on the 30th full day }
$articleId integer | Newscoop\Entity\Article
$fieldName string
$recurring string
$overwrite boolean

deleteByArticle() 공개 메소드

public deleteByArticle ( $article )

deleteById() 공개 메소드

public deleteById ( $id )

deleteField() 공개 메소드

public deleteField ( $p_articleType, $p_fieldNames )

findDates() 공개 메소드

Find dates
public findDates ( object $search, $dontExecute = false )
$search object { startDate : dateFormat, - passing only startDate will compare to entries with exactly (=) this value endDate : dateFormat, startTime : dateFormat, endTime : dateFormat, daily : bool|dateFormat, weekly : dateFormat, monthly : dateFormat, yearly : dateFormat }
$dontExecute if true, store query builder object and params in $this->lastQb and $this->lastQParams for later use

getEmpty() 공개 메소드

public getEmpty ( )

getFindDatesSQL() 공개 메소드

Get the sql used for find method
public getFindDatesSQL ( array | string $cols = null )
$cols array | string columns to select

renameField() 공개 메소드

public renameField ( $p_articleType, $p_fieldNames )

update() 공개 메소드

Update entry by id
public update ( integer $id, array $timeSet, integer $articleId = null, string $fieldName = null, string $recurring = null, $otherInfo = null )
$id integer
$timeSet array
$articleId integer
$fieldName string
$recurring string

프로퍼티 상세

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

protected $lastQParams

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

protected $lastQb