Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43227

Coding style in methods in lib/xmldb/*

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Policy
    • Labels:
      None

      Description

      Fix coding style for methods in classes under lib/xmldb/*:

      xmldb_field.php:    public function getType() {
      xmldb_field.php:    public function getLength() {
      xmldb_field.php:    public function getDecimals() {
      xmldb_field.php:    public function getNotNull() {
      xmldb_field.php:    public function getUnsigned() {
      xmldb_field.php:    public function getSequence() {
      xmldb_field.php:    public function getDefault() {
      xmldb_field.php:    public function setType($type) {
      xmldb_field.php:    public function setLength($length) {
      xmldb_field.php:    public function setDecimals($decimals) {
      xmldb_field.php:    public function setUnsigned($unsigned=true) {
      xmldb_field.php:    public function setNotNull($notnull=true) {
      xmldb_field.php:    public function setSequence($sequence=true) {
      xmldb_field.php:    public function setDefault($default) {
      xmldb_field.php:    public function getXMLDBFieldType($type) {
      xmldb_field.php:    public function getXMLDBTypeName($type) {
      xmldb_field.php:     public function calculateHash($recursive = false) {
      xmldb_field.php:    public function xmlOutput() {
      xmldb_field.php:    public function setFromADOField($adofield) {
      xmldb_field.php:    public function getPHP($includeprevious=true) {
      xmldb_field.php:    public function readableInfo() {
      xmldb_field.php:    public function validateDefinition(xmldb_table $xmldb_table=null) {
      xmldb_file.php:    public function fileExists() {
      xmldb_file.php:    public function fileWriteable() {
      xmldb_file.php:    public function getStructure() {
      xmldb_file.php:    public function validateXMLStructure() {
      xmldb_file.php:    public function loadXMLStructure() {
      xmldb_file.php:    public function setDTD($path) {
      xmldb_file.php:    public function setSchema($path) {
      xmldb_file.php:    public function saveXMLFile() {
      xmldb_index.php:    public function getUnique() {
      xmldb_index.php:    public function setUnique($unique = true) {
      xmldb_index.php:    public function setFields($fields) {
      xmldb_index.php:    public function getFields() {
      xmldb_index.php:    public function setHints($hints) {
      xmldb_index.php:    public function getHints() {
      xmldb_index.php:     public function calculateHash($recursive = false) {
      xmldb_index.php:    public function xmlOutput() {
      xmldb_index.php:    public function setFromADOIndex($adoindex) {
      xmldb_index.php:    public function getPHP() {
      xmldb_index.php:    public function readableInfo() {
      xmldb_index.php:    public function validateDefinition(xmldb_table $xmldb_table=null) {
      xmldb_key.php:    public function getType() {
      xmldb_key.php:    public function setType($type) {
      xmldb_key.php:    public function setFields($fields) {
      xmldb_key.php:    public function setRefTable($reftable) {
      xmldb_key.php:    public function setRefFields($reffields) {
      xmldb_key.php:    public function getFields() {
      xmldb_key.php:    public function getRefTable() {
      xmldb_key.php:    public function getRefFields() {
      xmldb_key.php:    public function getXMLDBKeyType($type) {
      xmldb_key.php:    public function getXMLDBKeyName($type) {
      xmldb_key.php:     public function calculateHash($recursive = false) {
      xmldb_key.php:    public function xmlOutput() {
      xmldb_key.php:    public function setFromADOKey($adokey) {
      xmldb_key.php:    public function getPHP() {
      xmldb_key.php:    public function readableInfo() {
      xmldb_object.php:    public function isLoaded() {
      xmldb_object.php:    public function hasChanged() {
      xmldb_object.php:    public function getComment() {
      xmldb_object.php:    public function getHash() {
      xmldb_object.php:    public function getPrevious() {
      xmldb_object.php:    public function getNext() {
      xmldb_object.php:    public function getName() {
      xmldb_object.php:    public function getError() {
      xmldb_object.php:    public function setComment($comment) {
      xmldb_object.php:    public function setPrevious($previous) {
      xmldb_object.php:    public function setNext($next) {
      xmldb_object.php:    public function setHash($hash) {
      xmldb_object.php:    public function setLoaded($loaded = true) {
      xmldb_object.php:    public function setChanged($changed = true) {
      xmldb_object.php:    public function setName($name) {
      xmldb_object.php:    public function checkName () {
      xmldb_object.php:    public function checkNameValues($arr) {
      xmldb_object.php:    public function fixPrevNext(&$arr) {
      xmldb_object.php:    public function orderElements($arr) {
      xmldb_object.php:    public function findObjectInArray($objectname, $arr) {
      xmldb_object.php:    public function readableInfo() {
      xmldb_object.php:    public function validateDefinition(xmldb_table $xmldb_table=null) {
      xmldb_structure.php:    public function getPath() {
      xmldb_structure.php:    public function getVersion() {
      xmldb_structure.php:    public function getTable($tablename) {
      xmldb_structure.php:    public function findTableInArray($tablename) {
      xmldb_structure.php:    public function orderTables() {
      xmldb_structure.php:    public function getTables() {
      xmldb_structure.php:    public function setVersion($version) {
      xmldb_structure.php:    public function addTable($table, $after=null) {
      xmldb_structure.php:    public function deleteTable($tablename) {
      xmldb_structure.php:    public function setTables($tables) {
      xmldb_structure.php:     public function calculateHash($recursive = false) {
      xmldb_structure.php:    public function xmlOutput() {
      xmldb_structure.php:    public function getTableUses($tablename) {
      xmldb_structure.php:    public function getFieldUses($tablename, $fieldname) {
      xmldb_structure.php:    public function getKeyUses($tablename, $keyname) {
      xmldb_structure.php:    public function getIndexUses($tablename, $indexname) {
      xmldb_structure.php:    public function getAllErrors() {
      xmldb_table.php:    public function addField($field, $after=null) {
      xmldb_table.php:    public function addKey($key, $after=null) {
      xmldb_table.php:    public function addIndex($index, $after=null) {
      xmldb_table.php:    public function getFields() {
      xmldb_table.php:    public function getKeys() {
      xmldb_table.php:    public function getIndexes() {
      xmldb_table.php:    public function getField($fieldname) {
      xmldb_table.php:    public function findFieldInArray($fieldname) {
      xmldb_table.php:    public function orderFields() {
      xmldb_table.php:    public function getKey($keyname) {
      xmldb_table.php:    public function findKeyInArray($keyname) {
      xmldb_table.php:    public function orderKeys() {
      xmldb_table.php:    public function getIndex($indexname) {
      xmldb_table.php:    public function findIndexInArray($indexname) {
      xmldb_table.php:    public function orderIndexes() {
      xmldb_table.php:    public function setFields($fields) {
      xmldb_table.php:    public function setKeys($keys) {
      xmldb_table.php:    public function setIndexes($indexes) {
      xmldb_table.php:    public function deleteField($fieldname) {
      xmldb_table.php:    public function deleteKey($keyname) {
      xmldb_table.php:    public function deleteIndex($indexname) {
      xmldb_table.php:     public function calculateHash($recursive = false) {
      xmldb_table.php:    public function validateDefinition(xmldb_table $xmldb_table=null) {
      xmldb_table.php:    public function xmlOutput() {
      xmldb_table.php:    public function getAllErrors() {
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tmuras Tomasz Muras
              Participants:
              Component watchers:
              Adrian Greeve, Andrew Nicols, Eloy Lafuente (stronk7), Juan Leyva, Jun Pataleta, Sander Bangma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: