Commit c15cb78c7fcbfc79f190021128e9d2b3b8d05721

Authored by nbm
1 parent c99ab53b

Authentication Providers are now dispatchers - they need to handle

do_editSourceProvider and do_performEditSourceProvider.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4172 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/authentication/authenticationprovider.inc.php
1 <?php 1 <?php
2 2
3 -class KTAuthenticationProvider { 3 +class KTAuthenticationProvider extends KTStandardDispatcher {
4 var $sName; 4 var $sName;
5 var $sNamespace; 5 var $sNamespace;
6 var $bHasSource = false; 6 var $bHasSource = false;
7 7
8 function KTAuthenticationProvider() { 8 function KTAuthenticationProvider() {
  9 + return parent::KTStandardDispatcher();
9 } 10 }
10 11
11 function configure($aInfo) { 12 function configure($aInfo) {
@@ -22,4 +23,23 @@ class KTAuthenticationProvider { @@ -22,4 +23,23 @@ class KTAuthenticationProvider {
22 } 23 }
23 return $this; 24 return $this;
24 } 25 }
  26 +
  27 + function showSource() {
  28 + return null;
  29 + }
  30 +
  31 + function getName() {
  32 + return $this->sName;
  33 + }
  34 + function getNamespace() {
  35 + return $this->sNamespace;
  36 + }
  37 +
  38 + function do_editSourceProvider() {
  39 + return $this->errorRedirectTo('viewsource', "Provider does not support editing", 'source_id=' . $_REQUEST['source_id']);
  40 + }
  41 +
  42 + function do_performEditSourceProvider() {
  43 + return $this->errorRedirectTo('viewsource', "Provider does not support editing", 'source_id=' . $_REQUEST['source_id']);
  44 + }
25 } 45 }