From 6d28e3f62535bb637b08287585bf9c13dfd756d2 Mon Sep 17 00:00:00 2001 From: jrags <> Date: Wed, 1 Nov 2006 04:47:01 +0000 Subject: Update of new Security code, currently working on making TLogin functional so we can test the providers soon. --- framework/Web/UI/WebControls/TLoginUtil.php | 173 ++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 framework/Web/UI/WebControls/TLoginUtil.php (limited to 'framework/Web/UI/WebControls/TLoginUtil.php') diff --git a/framework/Web/UI/WebControls/TLoginUtil.php b/framework/Web/UI/WebControls/TLoginUtil.php new file mode 100644 index 00000000..073f580d --- /dev/null +++ b/framework/Web/UI/WebControls/TLoginUtil.php @@ -0,0 +1,173 @@ +'; + const _userNameReplacementKey='<%\s*UserName\s*%>'; + + // public function onSendingMailDelegate($param) + // { + // + // } + // public function onSendMailErrorDelegate($param) + // { + // + // } + public static function applyStyleToLiteral(TLiteral $literal,$text,$setTableCellVisible) + { + + } + public static function copyBorderStyles(TControl $control,$style) + { + if (($style!==null) && strlen($providerName)!==0) + { + $control->BorderStyle = $style->BorderStyle; + $control->BorderColor = $style->BorderColor; + $control->BorderWidth = $style->BorderWidth; + $control->BackColor = $style->BackColor; + $control->CssClass = $style->CssClass; + } + } + public static function copyStyleToInnerControl(TControl $control,$style) + { + if (($style!==null) && strlen($providerName)!==0) + { + $control->ForeColor = $style->ForeColor; + $control->Font = $style->Font; + } + } + private static function createMailMessage($email,$userName,$password,$mailDefinition,$defaultSubject,$defaultBody,$owner) + { + + } + public static function getProvider($providerName) + { + if (strlen($providerName)===0) + { + return TMembership::getProvider(); + } + $provider1 = TMembership::getProviders($providerName); + if ($provider1===null) + { + throw new TException('WebControl_CantFindProvider'); + } + return $provider1; + } + public static function getUser(TControl $c) + { + + } + public static function getUserName(TControl $c) + { + + } + public static function sendPasswordMail($email,$userName,$password,$mailDefinition,$defaultSubject,$defaultBody,$onSendmailDelegate,$onSendMailErrorDelegate,$owner) + { + + } + public static function setTableCellStyle(TControl $control,$style) + { + // $control1 = $control->Parent; + // if ($control1!==null) + // { + // $control1->ApplyStyle=$style; + // } + } + public static function setTableCellVisible(TControl $control,$visible) + { + $control1 = $control->Parent; + if ($control1!==null) + { + $control1->Visible=$visible; + } + } +} +class TDisappearingTableRow extends TTableRow +{ + public function render($writer) + { + // bool flag1 = false; + // foreach (TableCell cell1 in this.Cells) + // { + // if (cell1.Visible) + // { + // flag1=true; + // break; + // } + // } + // if (flag1) + // { + // base.Render(writer); + // } + } +} +class TGenericContainer extends TWebControl +{ + private $_borderTable; + private $_convertingToTemplate=false; + private $_layoutTable; + private $_owner; + private $_usingDefaultTemplate=false; + + public function getBorderTable() + { + return $this->_borderTable; + } + public function setBorderTable($value) + { + $this->_borderTable = $value; + } + public function getConvertingToTemplate() + { + return $this->_convertingToTemplate; + } + public function getLayoutTable() + { + return $this->_layoutTable; + } + public function setLayoutTable($value) + { + $this->_layoutTable = $value; + } + public function getOwner() + { + return $this->_owner; + } + public function getUsingDefaultTemplate() + { + return $this->_usingDefaultTemplate; + } + + public function __construct($owner) + { + $this->_owner=$owner; + } + public function findControl($id,$required,$errorResourceKey) + { + + } + protected function findOptionalControl($id) + { + + } + protected function findRequiredControl($id,$errorResourceKey) + { + + } + public function focus() + { + + } + public function render($writer) + { + + } + private function renderContentsInUnitTable($writer) + { + + } + protected function verifyControlNotPresent($id,$errorResourceKey) + { + + } +} +?> \ No newline at end of file -- cgit v1.2.3