SproutCMS

This is the code documentation for the SproutCMS project

class LinkSpec

Base class for the backend of the extensible link system: Lnk

Source code (13 results)

/modules/Welcome/Controllers/WelcomeController.php   Highlighted file source

Line 788: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '3']);
Line 799: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '4']);
Line 809: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '9']);
Line 820: $data['link'] = json_encode(['class' => '\Sprout\Helpers\LinkSpecPage', 'data' => '10']);

/sprout/Controllers/Admin/FileAdminController.php   Highlighted file source

Line 969: 'class' => '\\Sprout\\Helpers\\LinkSpecInternal',

/sprout/Controllers/AdminAjaxController.php   Highlighted file source

Line 30: use Sprout\Helpers\LinkSpec;
Line 374: $specs = Register::getLinkspecs();
Line 376: throw new Exception('Invalid LinkSpec class');
Line 382: if (!($inst instanceof LinkSpec)) {

/sprout/Helpers/File.php   Highlighted file source

Line 1100: * @throws InvalidArgumentException If linkspec in DB invalid
Line 1109: if ($dest_spec['class'] != '\\Sprout\\Helpers\\LinkSpecInternal') {
Line 1124: * @throws InvalidArgumentException If linkspec in DB invalid

/sprout/Helpers/LinkSpec.php   Highlighted file source

Line 20: abstract class LinkSpec {
Line 42: * Get the HTML to use for editing a given linkspec

/sprout/Helpers/LinkSpecDocument.php   Highlighted file source

Line 21: class LinkSpecDocument extends LinkSpec
Line 52: * Get the HTML to use for editing a given linkspec

/sprout/Helpers/LinkSpecExternal.php   Highlighted file source

Line 16: class LinkSpecExternal extends LinkSpec
Line 41: * Get the HTML to use for editing a given linkspec

/sprout/Helpers/LinkSpecInternal.php   Highlighted file source

Line 20: class LinkSpecInternal extends LinkSpec
Line 43: * Get the HTML to use for editing a given linkspec

/sprout/Helpers/LinkSpecPage.php   Highlighted file source

Line 20: class LinkSpecPage extends LinkSpec
Line 49: * Get the HTML to use for editing a given linkspec

/sprout/Helpers/Lnk.php   Highlighted file source

Line 26: * These specs relate to classes which extend {@see LinkSpec}.
Line 27: * The class name needs to start with "LinkSpec" too.
Line 34: * Load in all of these requirements for all LinkSpec classes
Line 38: $specs = Register::getLinkspecs();
Line 90: $specs = Register::getLinkspecs();
Line 170: * Output the name of the type of the linkspec.

/sprout/Helpers/Register.php   Highlighted file source

Line 32: private static $linkspecs = array();
Line 135: * Register a LinkSpec
Line 137: public static function linkspec($name, $label)
Line 139: self::$linkspecs[$name] = $label;
Line 143: * Get all `LinkSpec`s
Line 145: public static function getLinkspecs()
Line 147: return self::$linkspecs;

/sprout/sprout_load.php   Highlighted file source

Line 34: Register::linkspec('\\Sprout\\Helpers\\LinkSpecExternal', 'External URL');
Line 35: Register::linkspec('\\Sprout\\Helpers\\LinkSpecInternal', 'Internal URL');
Line 36: Register::linkspec('\\Sprout\\Helpers\\LinkSpecPage', 'Internal Page');
Line 37: Register::linkspec('\\Sprout\\Helpers\\LinkSpecDocument', 'Document');

/sprout/tests/lnkTest.php   Highlighted file source

Line 23: Register::linkspec('\\Sprout\\Helpers\\LinkSpecExternal', 'External URL');
Line 28: $spec = '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }';
Line 38: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 43: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 48: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 53: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 58: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 63: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 68: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',
Line 73: '{ "class":"\\\\Sprout\\\\Helpers\\\\LinkSpecExternal", "data":"http://www.chaoticrage.com" }',

A total of 49 lines in 13 files were found