-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace TickTackk\Seeder\Cli\Command\Seed; | ||
|
||
use Symfony\Component\Console\Input\InputInterface; | ||
|
||
/** | ||
* @since 1.1.0 Release Candidate 1 | ||
*/ | ||
class SeedResourceManagerItemPrefix extends AbstractSeedCommand | ||
{ | ||
protected function getSeedName() : string | ||
{ | ||
return 'resource-manager-item-prefix'; | ||
} | ||
|
||
protected function getContentTypePlural(InputInterface $input = null) : string | ||
{ | ||
return 'Resource manager item prefixes'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace TickTackk\Seeder\Seed; | ||
|
||
use Faker\Provider\Lorem; | ||
use XF\Entity\AbstractPrefix as AbstractPrefixEntity; | ||
use XF\Mvc\FormAction; | ||
use XF\Repository\ThreadWatch as ThreadWatchRepo; | ||
use XF\Service\Thread\Creator as ThreadCreatorSvc; | ||
use XF\Repository\Thread as ThreadRepo; | ||
|
||
/** | ||
* @since 1.1.0 Release Candidate 1 | ||
*/ | ||
class ResourceManagerItemPrefix extends AbstractContentPrefix | ||
{ | ||
protected function getClassIdentifier(): string | ||
{ | ||
return 'XFRM:ResourcePrefix'; | ||
} | ||
|
||
protected function getGroupClassIdentifier(): string | ||
{ | ||
return 'XFRM:ResourcePrefixGroup'; | ||
} | ||
|
||
protected function getMapIdentifier(): string | ||
{ | ||
return 'XFRM:CategoryPrefix'; | ||
} | ||
|
||
protected function getContainerIdentifier(): string | ||
{ | ||
return 'XFRM:Category'; | ||
} | ||
} |