forked from pi-module/article
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pi-module#4 from linzongshu/master
Reconstructed current files
- Loading branch information
Showing
25 changed files
with
272 additions
and
189 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Zongshu Lin <[email protected]> | ||
* @since 1.0 | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Zongshu Lin <[email protected]> | ||
* @since 1.0 | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Zongshu Lin <[email protected]> | ||
* @since 1.0 | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,14 @@ | |
use Pi; | ||
use Zend\InputFilter\InputFilter; | ||
|
||
/** | ||
* Class for verfying and filter form | ||
*/ | ||
class CategoryEditFilter extends InputFilter | ||
{ | ||
/** | ||
* Initializing validator and filter | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->add(array( | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,14 @@ | |
use Pi; | ||
use Pi\Form\Form as BaseForm; | ||
|
||
/** | ||
* Initializing category form | ||
*/ | ||
class CategoryEditForm extends BaseForm | ||
{ | ||
/** | ||
* Initializing form | ||
*/ | ||
public function init() | ||
{ | ||
$this->add(array( | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,14 @@ | |
use Pi; | ||
use Zend\InputFilter\InputFilter; | ||
|
||
/** | ||
* Class for verifying and filtering form | ||
*/ | ||
class CategoryMergeFilter extends InputFilter | ||
{ | ||
/** | ||
* Initializing validator and filter | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->add(array( | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,14 @@ | |
use Pi; | ||
use Pi\Form\Form as BaseForm; | ||
|
||
/** | ||
* Class for initializing form | ||
*/ | ||
class CategoryMergeForm extends BaseForm | ||
{ | ||
/** | ||
* Initializing form | ||
*/ | ||
public function init() | ||
{ | ||
$this->add(array( | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,14 @@ | |
use Pi; | ||
use Zend\InputFilter\InputFilter; | ||
|
||
/** | ||
* Class for verfying and filtering form | ||
*/ | ||
class CategoryMoveFilter extends InputFilter | ||
{ | ||
/** | ||
* Initializing validator and filter | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->add(array( | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,16 @@ | |
use Pi; | ||
use Zend\Form\Element\Select; | ||
|
||
/** | ||
* Class for creating select of all category | ||
*/ | ||
class Category extends Select | ||
{ | ||
/** | ||
* Reading added category from database | ||
* | ||
* @return array | ||
*/ | ||
public function getValueOptions() | ||
{ | ||
if (empty($this->valueOptions)) { | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
* @copyright Copyright (c) http://www.eefocus.com | ||
* @copyright Copyright (c) Pi Engine http://www.xoopsengine.org | ||
* @license http://www.xoopsengine.org/license New BSD License | ||
* @author Lijun Dong <[email protected]> | ||
* @author Zongshu Lin <[email protected]> | ||
|
@@ -22,8 +22,16 @@ | |
use Pi; | ||
use Zend\Form\Element\Select; | ||
|
||
/** | ||
* Class for creating category select with root | ||
*/ | ||
class CategoryWithRoot extends Select | ||
{ | ||
/** | ||
* Reading category from database | ||
* | ||
* @return array | ||
*/ | ||
public function getValueOptions() | ||
{ | ||
if (empty($this->valueOptions)) { | ||
|
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
Oops, something went wrong.