Aller au contenu

Référence

phil/listings
TypeNatureRôle
Phil\Listings\ListingIdfinal readonly classL'identifiant d'une annonce : of(), equals(), MAX_LENGTH
Phil\Listings\MemberIdfinal readonly classL'identifiant d'un membre : of(), equals(), MAX_LENGTH
Phil\Listings\ResponseIdfinal readonly classL'identifiant d'une réponse : of(), equals(), MAX_LENGTH
Phil\Listings\ListingKindfinal readonly classUn genre d'annonce : of(), equals(), MAX_LENGTH
Phil\Listings\ModerationReasonfinal readonly classPourquoi une annonce a été rejetée ou retirée : of(), equals(), MAX_LENGTH
Phil\Listings\Titlefinal readonly classUn titre replié et borné : of(), MAX_LENGTH, MAX_INPUT_BYTES
Phil\Listings\Locationfinal readonly classEn ligne, ou une zone avec un lieu exact : online(), area(), isOnline(), approximate()
Phil\Listings\CriterionTypeenumchoice, range, flag
Phil\Listings\Criterionfinal readonly classUn critère : choice(), range(), flag(), meets()
Phil\Listings\Criteriafinal readonly classLes critères par nom : of(), meets(), get(), all(), MAX_COUNT
Phil\Listings\Moderationenumbefore_publication, after_publication
Phil\Listings\KindPolicyfinal readonly classLes règles bornées d'un genre : of(), expiryFrom(), extendedFrom(), reminderFrom()
Phil\Listings\KindPoliciesfinal readonly classLes politiques par genre : get(), has(), kinds()
Phil\Listings\ListingStatusenumdraft, pending_review, published, rejected, hidden, expired, closed, removed
Phil\Listings\Listingfinal readonly classUne annonce et ses transitions pures : draft(), restore(), submit(), approve(), reject(), remove(), report(), edit(), extend(), close(), at(), markReminded(), isVisibleAt(), needsReminderAt(), admitsAge(), locationFor()
Phil\Listings\ResponseStatusenumpending, accepted, declined, withdrawn
Phil\Listings\Responsefinal readonly classUne réponse et ses transitions pures : pending(), restore(), accept(), decline(), withdraw(), isOpen(), permitsContact()
Phil\Listings\RefusalenumPourquoi une réponse est refusée : not_open, responses_closed, own_listing, blocked, age_unknown, too_young, already_responded, full, other_listing
Phil\Listings\Responderfinal readonly classLes règles qui touchent une annonce et ses réponses : refusal(), respond(), accept(), decline(), withdraw()
Phil\Listings\Contract\BlockListinterfaceSi l'un de deux membres a bloqué l'autre : isBlocked()
Phil\Listings\Contract\MemberAgesinterfaceL'âge d'un membre à un instant donné : ageOf()
Phil\Listings\Contract\ResponseStoreinterfaceL'endroit où vivent les réponses : countOpen(), hasOpen(), save()
Phil\Listings\Exception\ListingsExceptioninterfaceToutes les exceptions de la bibliothèque
Phil\Listings\Exception\InvalidListingfinal classUne valeur que la bibliothèque ne peut pas utiliser
Phil\Listings\Exception\ForbiddenTransitionfinal classUn changement que le statut ne permet pas
Phil\Listings\Exception\UnknownKindfinal classUn genre pour lequel aucune politique n'est déclarée
Phil\Listings\Exception\ResponseRefusedfinal classUne réponse ou une acceptation refusée, avec son refusal