svn: web/doc-editor/trunk/ TODO install/firstRun.php js/main_min.js js/ui/component/CommitLogPrompt.js js/ui/component/RepositoryTree.js js/ui/task/CheckFileTask.js js/ui/task/MarkDeleteTask.js php/AccountManager.php php/CvsClient.php php/DBConnection.php php/ExtJsController.php php/File.php php/JsonResponseBuilder.php php/LogManager.php php/RepositoryFetcher.php php/RepositoryManager.php php/ToolsCheckDoc.php php/ToolsError.php php/TranslationStatistic.php php/TranslatorStatistic.php php/controller.php php/utility.php

[email protected] (Chan Ka Shing)
Newsgroups php.doc.web
Message-ID <[email protected]>
mrkschan                                 Thu, 23 Jul 2009 13:45:59 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=284647

Log:
Note:
    This patch restructure the doc-editor php's architecture.
    But, cvs2svn is not yet covered and thus some functions related to repository log, update, commit are not functioning.
    class.php is no longer in use but kept for reference

modification/fix:
  * Update ToolsError to use DBConnection singleton
  * Update ToolsCheckDoc to use DBConnection singleton
  * Bug fix in Repository Tree for detecting Language of File
  * ErrorFileGrid is now updated right after a file was check for error
  * added lang in front of file path under MarkDeleteTask.js
  * fixed CommitLogPrompt failed to delete commit log

php re-factoring:
  * JsonResponseBuilder (utility class) created for constructing json responses
    - success (ExtJsController.getSuccess)
    - failure (ExtJsController.getFailure)
    - response (ExtJsController.getResponse)
  * DBConnection created for manipulating database connection
    - singleton
    - query (mysqli::query)
    - insert_id (mysqli::insert_id)
    - real_escape_string (mysqli::real_escape_string)
  * AccountManager created for manipulating user account
    - singleton
    - updateLastConnect
    - isLogged
    - login
    - register
    - updateConf
    - eraseData
    - email
  * CvsClient created for cvs i/o
    - singleton
    - passwdEncode
    - authenticate
    - checkout
    - update
    - log
    - diff
    - commit
  * RepositoryFetcher created for fetching phpdoc-all repository
    - singleton
    - getLastUpdate
    - getModifies      (get all modified files in pending commit)
    - getModifiesById  (get modified files in pending commit queue by id)
    - getPendingUpdate
    - getPendingReview
    - getNotInEn
    - getPendingPatch
    - getPendingCommit
    - getFilesByExtension
    - getFileByXmlID
    - getFileByKeyword (perform searching on file-path)
    - getFilesByDirectory
  * RepositoryManager created for managing phpdoc-all repository
    - singleton
    - checkoutRepository (exec cvs checkout, called in install/firstRun.php)
    - cleanUp
    - updateRepository (exec cvs update)
    - checkbuild (exec php configure.php)
    - addPendingCommit
    - delPendingCommit
    - addPendingPatch
    - addPendingDelete
    - commitChanges
    - clearLocalChange
    - setLastUpdate
    - postPatchAccept
    - postPatchReject
    - updateFileInfo
    - updateTranslatorInfo
    - updateNotInEN
    - applyRevCheck
  * File created for modeling php-doc files
    - isModified
    - read (read original/modified file content, depends on passed param & file state)
    - save
    - parseAttribute (class.php - revParseAttrString)
    - getEncoding
    - getInfo
    - rawDiff  (exec 'diff -uN file file.ext' with stdout output)
    - htmlDiff (exec php-file-diff with html output)
    - cvsDiff  (exec cvs diff with html output)
  * TranslatorStatistic created for computing statistic about translator
    - singleton
    - getTranslators       (get info about all translators for lang)
    - getUptodateFileCount (count up-to-date file contributed by every translator)
    - getOldFileCount      (count out-dated file contributed by every translator)
    - getCriticalFileCount (count critical file contributed by every translator)
    - getSummary           (summary of the statistic about translators)
  * TranslationStatistic created for computing statistic about translation
    - singleton
    - getFileCount         (count all file)
    - getTransFileCount    (count translated files for lang)
    - getOldFileCount      (count out-dated files for lang)
    - getCriticalFileCount (count critical files for lang)
    - getNoTransFileCount  (count not translated files for lang)
    - getMissedFileCount   (count not translated files for lang TODO... merge with getNoTransFileCount)
    - getNoTagFileCount    (count files with no revcheck tag for lang)
    - getSummary           (summary of the statistic about translation)
  * LogManager created for handling all logging activities
    - singleton
    - getCommitLog
    - addCommitLog
    - saveOutputLog
    - readOutputLog
    - saveBuildLogStatus
    - getBuildLogStatus
  * Utility (a namespace) created for different utility task
    - debug (*NOTE: under global namespace)

Changed paths:
    U   web/doc-editor/trunk/TODO
    U   web/doc-editor/trunk/install/firstRun.php
    U   web/doc-editor/trunk/js/main_min.js
    U   web/doc-editor/trunk/js/ui/component/CommitLogPrompt.js
    U   web/doc-editor/trunk/js/ui/component/RepositoryTree.js
    U   web/doc-editor/trunk/js/ui/task/CheckFileTask.js
    U   web/doc-editor/trunk/js/ui/task/MarkDeleteTask.js
    A   web/doc-editor/trunk/php/AccountManager.php
    A   web/doc-editor/trunk/php/CvsClient.php
    A   web/doc-editor/trunk/php/DBConnection.php
    U   web/doc-editor/trunk/php/ExtJsController.php
    A   web/doc-editor/trunk/php/File.php
    A   web/doc-editor/trunk/php/JsonResponseBuilder.php
    A   web/doc-editor/trunk/php/LogManager.php
    A   web/doc-editor/trunk/php/RepositoryFetcher.php
    A   web/doc-editor/trunk/php/RepositoryManager.php
    U   web/doc-editor/trunk/php/ToolsCheckDoc.php
    U   web/doc-editor/trunk/php/ToolsError.php
    A   web/doc-editor/trunk/php/TranslationStatistic.php
    A   web/doc-editor/trunk/php/TranslatorStatistic.php
    U   web/doc-editor/trunk/php/controller.php
    A   web/doc-editor/trunk/php/utility.php

<diffs exceeded maximum size>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.