1 | <?php |
||
9 | class Addon extends DataObject { |
||
10 | |||
11 | public static $db = array( |
||
12 | 'Name' => 'Varchar(255)', |
||
13 | 'Description' => 'Text', |
||
14 | 'Type' => 'Varchar(100)', |
||
15 | 'Readme' => 'HTMLText', |
||
16 | 'Released' => 'SS_Datetime', |
||
17 | 'Repository' => 'Varchar(255)', |
||
18 | 'Downloads' => 'Int', |
||
19 | 'DownloadsMonthly' => 'Int', |
||
20 | 'Favers' => 'Int', |
||
21 | 'LastUpdated' => 'SS_Datetime', |
||
22 | 'LastBuilt' => 'SS_Datetime', |
||
23 | 'BuildQueued' => 'Boolean', |
||
24 | 'HelpfulRobotData' => 'Text', |
||
25 | 'HelpfulRobotScore' => 'Int', |
||
26 | ); |
||
27 | |||
28 | public static $has_one = array( |
||
29 | 'Vendor' => 'AddonVendor' |
||
30 | ); |
||
31 | |||
32 | public static $has_many = array( |
||
33 | 'Versions' => 'AddonVersion' |
||
34 | ); |
||
35 | |||
36 | public static $many_many = array( |
||
37 | 'Keywords' => 'AddonKeyword', |
||
38 | 'Screenshots' => 'Image', |
||
39 | 'CompatibleVersions' => 'SilverStripeVersion' |
||
40 | ); |
||
41 | |||
42 | public static $default_sort = 'Name'; |
||
43 | |||
44 | public static $extensions = array( |
||
45 | 'SilverStripe\\Elastica\\Searchable' |
||
46 | ); |
||
47 | |||
48 | /** |
||
49 | * Gets the addon's versions sorted from newest to oldest. |
||
50 | * |
||
51 | * @return ArrayList |
||
52 | */ |
||
53 | public function SortedVersions() { |
||
62 | |||
63 | public function MasterVersion() { |
||
66 | |||
67 | public function Authors() { |
||
70 | |||
71 | public function VendorName() { |
||
74 | |||
75 | public function VendorLink() { |
||
80 | |||
81 | public function PackageName() { |
||
84 | |||
85 | public function Link() { |
||
90 | |||
91 | public function DescriptionText() { |
||
94 | |||
95 | public function RSSTitle() { |
||
98 | |||
99 | public function PackagistUrl() |
||
103 | |||
104 | /** |
||
105 | * Remove the effect of code of conduct Helpful Robot measure that we currently don't include in the Supported module definition |
||
106 | * |
||
107 | * @return integer Adjusted Helpful Robot score |
||
108 | */ |
||
109 | public function getAdjustedHelpfulRobotScore(){ |
||
118 | |||
119 | public function getElasticaMapping() { |
||
132 | |||
133 | public function getElasticaDocument() { |
||
147 | |||
148 | public function onBeforeDelete() { |
||
165 | |||
166 | public function getDateCreated() { |
||
169 | |||
170 | /** |
||
171 | * @return array |
||
172 | */ |
||
173 | public function HelpfulRobotData() |
||
179 | } |
||
180 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.