PHP 클래스 PartKeepr\PartBundle\Services\PartService

파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( EntityManager $entityManager, $partLimit = false, $checkInternalPartNumberUniqueness = false )
checkPartLimit ( ) : boolean Checks if the amount of parts is exceeded.
getPartCount ( ) : mixed Returns the number of parts present in the system.
isInternalPartNumberUnique ( string $internalPartNumber, Part $part = null ) : boolean Checks if the given internal part number is unique

메소드 상세

__construct() 공개 메소드

public __construct ( EntityManager $entityManager, $partLimit = false, $checkInternalPartNumberUniqueness = false )
$entityManager Doctrine\ORM\EntityManager

checkPartLimit() 공개 메소드

Checks if the amount of parts is exceeded.
public checkPartLimit ( ) : boolean
리턴 boolean

getPartCount() 공개 메소드

Returns the number of parts present in the system.
public getPartCount ( ) : mixed
리턴 mixed

isInternalPartNumberUnique() 공개 메소드

Checks if the given internal part number is unique
public isInternalPartNumberUnique ( string $internalPartNumber, Part $part = null ) : boolean
$internalPartNumber string The internal part number to checkl
$part PartKeepr\PartBundle\Entity\Part An optional part to exclude within the check
리턴 boolean