PageRenderTime 25ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/latex/classdb_backup.tex

https://gitlab.com/karl3/gs_libs
LaTeX | 234 lines | 185 code | 49 blank | 0 comment | 0 complexity | 0ace9df7ea26f9b5b8254b1b3f5d4815 MD5 | raw file
  1. \hypertarget{classdb_backup}{\section{db\-Backup Class Reference}
  2. \label{classdb_backup}\index{db\-Backup@{db\-Backup}}
  3. }
  4. Inherits \hyperlink{classdb_p_d_o}{db\-P\-D\-O}.
  5. \subsection*{Public Member Functions}
  6. \begin{DoxyCompactItemize}
  7. \item
  8. \hyperlink{classdb_backup_a7f93adf2a111686240ea50fdd8bd8ebf}{\-\_\-\-\_\-construct} (\$db\-Name, \$user, \$pass, \$opts=null, \$db\-Type= 'mysql', \$host\-O\-Rpath= 'localhost', \$port= '')
  9. \item
  10. \hyperlink{classdb_backup_a421831a265621325e1fdd19aace0c758}{\-\_\-\-\_\-destruct} ()
  11. \item
  12. \hyperlink{classdb_backup_a5d101758b135bd36ba8992cc3bb67a24}{set\-Path} (\$path)
  13. \item
  14. \hyperlink{classdb_backup_af9ff1acb357a6c171c60643144717694}{set\-Pre\-String} (\$str= '')
  15. \item
  16. \hyperlink{classdb_backup_afe408bb74f4a63a1be4f8db787b59453}{set\-Post\-String} (\$str= '')
  17. \item
  18. \hyperlink{classdb_backup_a75da871b294ce5ac4e4e1ab1ae0bc5d4}{backup\-Table} (\$table, \$name=null)
  19. \item
  20. \hyperlink{classdb_backup_a18a10140bf184faeb780ce8493446c55}{dump\-Multiple\-Tables} (\$array=null)
  21. \item
  22. \hyperlink{classdb_backup_a0aa0472caa524c75db0b2f9cddc594c5}{table\-Columns} (\$table)
  23. \item
  24. \hyperlink{classdb_backup_ac05be54f45477b0eeb08b0693dfa48ac}{get\-Data} (\$table)
  25. \item
  26. \hyperlink{classdb_backup_aaa28a36632ff9f6df04cc3bbc13a8118}{write\-File} (\$file, \$data)
  27. \end{DoxyCompactItemize}
  28. \subsection*{Additional Inherited Members}
  29. \subsection{Detailed Description}
  30. Class \hyperlink{classdb_backup}{db\-Backup}
  31. Definition at line 6 of file db\-Backup.\-class.\-php.
  32. \subsection{Constructor \& Destructor Documentation}
  33. \hypertarget{classdb_backup_a7f93adf2a111686240ea50fdd8bd8ebf}{\index{db\-Backup@{db\-Backup}!\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}}
  34. \index{\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}!dbBackup@{db\-Backup}}
  35. \subsubsection[{\-\_\-\-\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}\-\_\-\-\_\-construct (
  36. \begin{DoxyParamCaption}
  37. \item[{}]{\$db\-Name, }
  38. \item[{}]{\$user, }
  39. \item[{}]{\$pass, }
  40. \item[{}]{\$opts = {\ttfamily null}, }
  41. \item[{}]{\$db\-Type = {\ttfamily 'mysql'}, }
  42. \item[{}]{\$host\-O\-Rpath = {\ttfamily 'localhost'}, }
  43. \item[{}]{\$port = {\ttfamily ''}}
  44. \end{DoxyParamCaption}
  45. )}}\label{classdb_backup_a7f93adf2a111686240ea50fdd8bd8ebf}
  46. \begin{DoxyParams}[1]{Parameters}
  47. & {\em \$db\-Name} & \\
  48. \hline
  49. & {\em \$user} & \\
  50. \hline
  51. & {\em \$pass} & \\
  52. \hline
  53. null & {\em \$opts} & \\
  54. \hline
  55. string & {\em \$db\-Type} & \\
  56. \hline
  57. string & {\em \$host\-O\-Rpath} & \\
  58. \hline
  59. string & {\em \$port} & \\
  60. \hline
  61. \end{DoxyParams}
  62. Definition at line 18 of file db\-Backup.\-class.\-php.
  63. \hypertarget{classdb_backup_a421831a265621325e1fdd19aace0c758}{\index{db\-Backup@{db\-Backup}!\-\_\-\-\_\-destruct@{\-\_\-\-\_\-destruct}}
  64. \index{\-\_\-\-\_\-destruct@{\-\_\-\-\_\-destruct}!dbBackup@{db\-Backup}}
  65. \subsubsection[{\-\_\-\-\_\-destruct}]{\setlength{\rightskip}{0pt plus 5cm}\-\_\-\-\_\-destruct (
  66. \begin{DoxyParamCaption}
  67. {}
  68. \end{DoxyParamCaption}
  69. )}}\label{classdb_backup_a421831a265621325e1fdd19aace0c758}
  70. Destructor. Unsets all object variables
  71. Definition at line 26 of file db\-Backup.\-class.\-php.
  72. \subsection{Member Function Documentation}
  73. \hypertarget{classdb_backup_a75da871b294ce5ac4e4e1ab1ae0bc5d4}{\index{db\-Backup@{db\-Backup}!backup\-Table@{backup\-Table}}
  74. \index{backup\-Table@{backup\-Table}!dbBackup@{db\-Backup}}
  75. \subsubsection[{backup\-Table}]{\setlength{\rightskip}{0pt plus 5cm}backup\-Table (
  76. \begin{DoxyParamCaption}
  77. \item[{}]{\$table, }
  78. \item[{}]{\$name = {\ttfamily null}}
  79. \end{DoxyParamCaption}
  80. )}}\label{classdb_backup_a75da871b294ce5ac4e4e1ab1ae0bc5d4}
  81. \begin{DoxyParams}[1]{Parameters}
  82. & {\em \$table} & \\
  83. \hline
  84. null & {\em \$name} & \\
  85. \hline
  86. \end{DoxyParams}
  87. Definition at line 68 of file db\-Backup.\-class.\-php.
  88. \hypertarget{classdb_backup_a18a10140bf184faeb780ce8493446c55}{\index{db\-Backup@{db\-Backup}!dump\-Multiple\-Tables@{dump\-Multiple\-Tables}}
  89. \index{dump\-Multiple\-Tables@{dump\-Multiple\-Tables}!dbBackup@{db\-Backup}}
  90. \subsubsection[{dump\-Multiple\-Tables}]{\setlength{\rightskip}{0pt plus 5cm}dump\-Multiple\-Tables (
  91. \begin{DoxyParamCaption}
  92. \item[{}]{\$array = {\ttfamily null}}
  93. \end{DoxyParamCaption}
  94. )}}\label{classdb_backup_a18a10140bf184faeb780ce8493446c55}
  95. \begin{DoxyParams}[1]{Parameters}
  96. null & {\em \$array} & \\
  97. \hline
  98. \end{DoxyParams}
  99. \begin{DoxyReturn}{Returns}
  100. bool
  101. \end{DoxyReturn}
  102. Definition at line 122 of file db\-Backup.\-class.\-php.
  103. \hypertarget{classdb_backup_ac05be54f45477b0eeb08b0693dfa48ac}{\index{db\-Backup@{db\-Backup}!get\-Data@{get\-Data}}
  104. \index{get\-Data@{get\-Data}!dbBackup@{db\-Backup}}
  105. \subsubsection[{get\-Data}]{\setlength{\rightskip}{0pt plus 5cm}get\-Data (
  106. \begin{DoxyParamCaption}
  107. \item[{}]{\$table}
  108. \end{DoxyParamCaption}
  109. )}}\label{classdb_backup_ac05be54f45477b0eeb08b0693dfa48ac}
  110. \begin{DoxyParams}{Parameters}
  111. {\em \$table} & \\
  112. \hline
  113. \end{DoxyParams}
  114. \begin{DoxyReturn}{Returns}
  115. bool$|$array
  116. \end{DoxyReturn}
  117. Definition at line 168 of file db\-Backup.\-class.\-php.
  118. \hypertarget{classdb_backup_a5d101758b135bd36ba8992cc3bb67a24}{\index{db\-Backup@{db\-Backup}!set\-Path@{set\-Path}}
  119. \index{set\-Path@{set\-Path}!dbBackup@{db\-Backup}}
  120. \subsubsection[{set\-Path}]{\setlength{\rightskip}{0pt plus 5cm}set\-Path (
  121. \begin{DoxyParamCaption}
  122. \item[{}]{\$path}
  123. \end{DoxyParamCaption}
  124. )}}\label{classdb_backup_a5d101758b135bd36ba8992cc3bb67a24}
  125. Sets a path into which the backup files will be placed
  126. \begin{DoxyParams}[1]{Parameters}
  127. string & {\em \$path} & filesystem path \\
  128. \hline
  129. \end{DoxyParams}
  130. Definition at line 42 of file db\-Backup.\-class.\-php.
  131. \hypertarget{classdb_backup_afe408bb74f4a63a1be4f8db787b59453}{\index{db\-Backup@{db\-Backup}!set\-Post\-String@{set\-Post\-String}}
  132. \index{set\-Post\-String@{set\-Post\-String}!dbBackup@{db\-Backup}}
  133. \subsubsection[{set\-Post\-String}]{\setlength{\rightskip}{0pt plus 5cm}set\-Post\-String (
  134. \begin{DoxyParamCaption}
  135. \item[{}]{\$str = {\ttfamily ''}}
  136. \end{DoxyParamCaption}
  137. )}}\label{classdb_backup_afe408bb74f4a63a1be4f8db787b59453}
  138. Sets a string that will be prepended onto the file string
  139. Definition at line 58 of file db\-Backup.\-class.\-php.
  140. \hypertarget{classdb_backup_af9ff1acb357a6c171c60643144717694}{\index{db\-Backup@{db\-Backup}!set\-Pre\-String@{set\-Pre\-String}}
  141. \index{set\-Pre\-String@{set\-Pre\-String}!dbBackup@{db\-Backup}}
  142. \subsubsection[{set\-Pre\-String}]{\setlength{\rightskip}{0pt plus 5cm}set\-Pre\-String (
  143. \begin{DoxyParamCaption}
  144. \item[{}]{\$str = {\ttfamily ''}}
  145. \end{DoxyParamCaption}
  146. )}}\label{classdb_backup_af9ff1acb357a6c171c60643144717694}
  147. Sets a string that will be prepended onto the file string
  148. Definition at line 50 of file db\-Backup.\-class.\-php.
  149. \hypertarget{classdb_backup_a0aa0472caa524c75db0b2f9cddc594c5}{\index{db\-Backup@{db\-Backup}!table\-Columns@{table\-Columns}}
  150. \index{table\-Columns@{table\-Columns}!dbBackup@{db\-Backup}}
  151. \subsubsection[{table\-Columns}]{\setlength{\rightskip}{0pt plus 5cm}table\-Columns (
  152. \begin{DoxyParamCaption}
  153. \item[{}]{\$table}
  154. \end{DoxyParamCaption}
  155. )}}\label{classdb_backup_a0aa0472caa524c75db0b2f9cddc594c5}
  156. Gets an array of table columns
  157. \begin{DoxyParams}{Parameters}
  158. {\em \$table} & \\
  159. \hline
  160. \end{DoxyParams}
  161. \begin{DoxyReturn}{Returns}
  162. array$|$bool
  163. \end{DoxyReturn}
  164. Definition at line 152 of file db\-Backup.\-class.\-php.
  165. \hypertarget{classdb_backup_aaa28a36632ff9f6df04cc3bbc13a8118}{\index{db\-Backup@{db\-Backup}!write\-File@{write\-File}}
  166. \index{write\-File@{write\-File}!dbBackup@{db\-Backup}}
  167. \subsubsection[{write\-File}]{\setlength{\rightskip}{0pt plus 5cm}write\-File (
  168. \begin{DoxyParamCaption}
  169. \item[{}]{\$file, }
  170. \item[{}]{\$data}
  171. \end{DoxyParamCaption}
  172. )}}\label{classdb_backup_aaa28a36632ff9f6df04cc3bbc13a8118}
  173. \begin{DoxyParams}{Parameters}
  174. {\em \$file} & \\
  175. \hline
  176. {\em \$data} & \\
  177. \hline
  178. \end{DoxyParams}
  179. \begin{DoxyReturn}{Returns}
  180. bool
  181. \end{DoxyReturn}
  182. Definition at line 184 of file db\-Backup.\-class.\-php.
  183. The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
  184. \item
  185. /\-Users/karlgroves/\-Documents/sites/gs\-\_\-libs/db\-Backup.\-class.\-php\end{DoxyCompactItemize}