Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.7.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14.  
  15. class Pas_Library_Db_Row extends Zend_Db_Table_Row
  16. {
  17. /**
  18. * List of child models to allow lazy loading of its children
  19. *
  20. * @var array
  21. */
  22. public $_children = null;
  23. /**
  24. * List of parent models to allow lazy loading of its parents
  25. *
  26. * @var array
  27. */
  28. public $_parents = null;
  29.  
  30. /**
  31. * @name __construct
  32. *
  33. * @param array $row
  34. * @param string $table
  35. *
  36. * @return Pas_Library_Db_Row
  37. */
  38. public function __construct($row, $table = NULL)
  39. {
  40. parent::__construct( array(
  41. 'data' => $row['data'],
  42. 'table' => $row['table'],
  43. 'stored' => true
  44. ) );
  45. }
  46.  
  47. /**
  48. * @name fetchAll
  49. * @brief convenience function to call Zend_Db_Table->fetchAll() statically
  50. *
  51. * @param mixed $where
  52. * @param mixed $order
  53. * @param mixed $count
  54. * @param mixed $offset
  55. */
  56. public static function fetchAll($where = NULL, $order = NULL, $count = NULL, $offset = NULL)
  57. {
  58. return Pas_Library_Db::getTable( get_called_class( ) )->fetchAll( self::buildWhere( $where ), $order, $count, $offset );
  59. }
  60.  
  61. /**
  62. * @name fetchRow
  63. * @brief convienence function to call Zend_Db_Table->fetchRow() statically
  64. *
  65. * @param mixed $where
  66. * @param mixed $order
  67. * @param mixed $offset
  68. *
  69. * @return Pas_Library_Db_Table_Abstract
  70. */
  71. public static function fetchRow($where = NULL, $order = NULL, $offset = NULL)
  72. {
  73. return Pas_Library_Db::getTable( get_called_class( ) )->fetchRow( self::buildWhere( $where ), $order, $offset );
  74. }
  75.  
  76. /**
  77. * @name insert
  78. * @brief convienence function to call Zend_Db_Table->insert()
  79. *
  80. * @param array $map
  81. *
  82. * @return mixed
  83. */
  84. public static function insert($map)
  85. {
  86. return Pas_Library_Db::getTable( get_called_class( ) )->insert( $map );
  87. ...........................................................................
  88. .......................................
  89. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement