PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Framework
/
Helpers
<?php namespace WilokeListingTools\Framework\Helpers; use WilokeListingTools\Frontend\User; class AuthorSkeleton extends AbstractSkeleton { protected $id; public function setID($id): void { $this->id = $id; } /** * @return int|null */ protected function getID(): ?int { return abs($this->id); } protected function getDisplayName(): ?string { return User::getField('display_name', $this->getID()); } /** * @return string|null */ public function getAvatar(): ?string { return User::getAvatar($this->id); } protected function getAuthorLink(): string { return get_author_posts_url($this->getID()); } public function getSkeleton($authorID, $aPluck, $aAtts = []) { if (empty($aPluck)) { $aPluck = [ 'ID', 'avatar', 'displayName', ]; } else { $aPluck = is_array($aPluck) ? $aPluck : explode(',', $aPluck); $aPluck = array_map(function ($key) { return $key; }, $aPluck); } $this->aAtts = $aAtts; $this->setID($authorID); /** * @hooked WilcityRedis\Controllers@removeCachingPluckItems */ $aPluck = apply_filters( 'wilcity/filter/wiloke-listing-tools/app/Framework/Helpers/AuthorSkeleton/pluck', $aPluck, $authorID, $this->aAtts ); $aAuthor = $this->pluck($aPluck); /** * @hooked WilcityRedis\Controllers@getPostSkeleton 5 * @hooked WilcityRedis\Controllers@setPostSkeleton 10 */ $aAuthor = apply_filters( 'wilcity/filter/wiloke-listing-tools/app/Framework/Helpers/AuthorSkeleton/review', $aAuthor, $authorID, $this->aAtts ); return $aAuthor; } }
[+]
..
[-] SearchFieldSkeleton.php
[edit]
[-] FileSystem.php
[edit]
[-] Response.php
[edit]
[-] GetWilokeSubmission.php
[edit]
[-] AbstractSkeleton.php
[edit]
[-] InheritCMB2Styles.php
[edit]
[-] ReviewSkeleton.php
[edit]
[-] RestaurantMenu.php
[edit]
[-] WooCommerce.php
[edit]
[-] MapHelpers.php
[edit]
[-] .DS_Store
[edit]
[-] Message.php
[edit]
[-] GetSettings.php
[edit]
[-] QueryHelper.php
[edit]
[+]
Collection
[-] Inc.php
[edit]
[-] UserSkeleton.php
[edit]
[-] Firebase.php
[edit]
[-] Repository.php
[edit]
[-] DebugStatus.php
[edit]
[-] MapFactory.php
[edit]
[-] SetSettings.php
[edit]
[-] AddListingFieldSkeleton.php
[edit]
[-] VideoHelper.php
[edit]
[-] SearchFormSkeleton.php
[edit]
[-] PostSkeleton.php
[edit]
[-] KCHelpers.php
[edit]
[-] ProductSkeleton.php
[edit]
[-] QRCodeGenerator.php
[edit]
[-] HTML.php
[edit]
[-] Time.php
[edit]
[-] PlanHelper.php
[edit]
[-] SemanticUi.php
[edit]
[-] AjaxMsg.php
[edit]
[-] Logger.php
[edit]
[-] Cookie.php
[edit]
[-] Validation.php
[edit]
[-] GalleryHelper.php
[edit]
[-] AuthorSkeleton.php
[edit]
[-] General.php
[edit]
[-] Submission.php
[edit]
[-] TermSetting.php
[edit]