PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Framework
/
Helpers
<?php namespace WilokeListingTools\Framework\Helpers; class VideoHelper { public static function parseVideoToUpload($aRawVideos) { if (empty($aRawVideos)) { return []; } $aVideos = []; foreach ($aRawVideos as $aVideo) { $aVideos[] = ['value' => $aVideo['src']]; } return $aVideos; } public static function parseVideoToDB($aRawVideos) { if (empty($aRawVideos)) { return []; } $aVideos = []; foreach ($aRawVideos as $order => $aValue) { if (strpos($aValue['value'], 'youtube') !== -1) { $aValue['value'] = preg_replace_callback( '/&.*/', function () { return ''; }, $aValue['value'] ); } $aVideos[$order]['src'] = Validation::deepValidation($aValue['value']); $aVideos[$order]['thumbnail'] = ''; }; return $aVideos; } public static function sureVideoDoesNotExceedPlan($aPlanSettings, $aItems) { return PlanHelper::sureItemsDoNotExceededPlan($aPlanSettings, 'maximumVideos', $aItems); } }
[+]
..
[-] 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]