1<?php 2 3 4namespace ComboStrap; 5 6/** 7 * Class DisqusIdentifier 8 * @package ComboStrap 9 * @deprecated for the page id 10 */ 11class DisqusIdentifier extends MetadataText 12{ 13 14 15 16 public const PROPERTY_NAME = "disqus_identifier"; 17 18 public static function createForResource($page): DisqusIdentifier 19 { 20 return (new DisqusIdentifier()) 21 ->setResource($page); 22 } 23 24 public function getTab(): ?string 25 { 26 // Page id should be taken 27 return null; 28 } 29 30 public function getDescription(): string 31 { 32 return "The identifier of the disqus forum"; 33 } 34 35 public function getLabel(): string 36 { 37 return "Disqus Identifier"; 38 } 39 40 public static function getName(): string 41 { 42 return self::PROPERTY_NAME; 43 } 44 45 public function getPersistenceType(): string 46 { 47 return MetadataDokuWikiStore::PERSISTENT_METADATA; 48 } 49 50 public function getMutable(): bool 51 { 52 return true; 53 } 54 55 public function getDefaultValue(): ?string 56 { 57 58 return $this->getResource()->getUid()->getValueOrDefault(); 59 60 } 61 62 public function getCanonical(): string 63 { 64 return "disqus"; 65 } 66 67 68} 69