Make WordPress Core


Ignore:
Timestamp:
09/10/2015 01:20:58 AM (10 years ago)
Author:
wonderboymusic
Message:

Add @access docs to class-wp-filesystem-* files.

Props wenthemes.
Fixes #33725.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php

    r33648 r33984  
    1919
    2020    /**
     21     * @access public
    2122     *
    2223     * @param array $opt
     
    6465
    6566    /**
     67     * @access public
    6668     *
    6769     * @return bool
     
    9294
    9395    /**
     96     * @access public
     97     *
    9498     * @param string $file
    9599     * @return false|string
     
    117121
    118122    /**
     123     * @access public
     124     *
    119125     * @param string $file
    120126     * @return array
     
    125131
    126132    /**
     133     * @access public
     134     *
    127135     * @param string $file
    128136     * @param string $contents
     
    162170
    163171    /**
     172     * @access public
     173     *
    164174     * @return string
    165175     */
     
    172182
    173183    /**
     184     * @access public
     185     *
    174186     * @param string $dir
    175187     * @return bool
     
    180192
    181193    /**
     194     * @access public
     195     *
    182196     * @param string $file
    183197     * @param int $mode
     
    209223
    210224    /**
     225     * @access public
     226     *
    211227     * @param string $file
    212228     * @return string
     
    217233    }
    218234    /**
     235     * @access public
     236     *
    219237     * @param string $file
    220238     * @return string
     
    224242        return $dir[$file]['permsn'];
    225243    }
    226     /**
     244
     245    /**
     246     * @access public
     247     *
    227248     * @param string $file
    228249     * @return string
     
    234255
    235256    /**
     257     * @access public
    236258     *
    237259     * @param string $source
     
    249271        return $this->put_contents($destination, $content, $mode);
    250272    }
    251     /**
     273
     274    /**
     275     * @access public
     276     *
    252277     * @param string $source
    253278     * @param string $destination
     
    258283        return ftp_rename($this->link, $source, $destination);
    259284    }
    260     /**
     285
     286    /**
     287     * @access public
     288     *
    261289     * @param string $file
    262290     * @param bool $recursive
     
    278306        return @ftp_rmdir($this->link, $file);
    279307    }
    280     /**
     308
     309    /**
     310     * @access public
     311     *
    281312     * @param string $file
    282313     * @return bool
     
    291322        return !empty($list); //empty list = no file, so invert.
    292323    }
    293     /**
     324
     325    /**
     326     * @access public
     327     *
    294328     * @param string $file
    295329     * @return bool
     
    298332        return $this->exists($file) && !$this->is_dir($file);
    299333    }
    300     /**
     334
     335    /**
     336     * @access public
     337     *
    301338     * @param string $path
    302339     * @return bool
     
    313350
    314351    /**
     352     * @access public
     353     *
    315354     * @param string $file
    316355     * @return bool
     
    319358        return true;
    320359    }
    321     /**
     360
     361    /**
     362     * @access public
     363     *
    322364     * @param string $file
    323365     * @return bool
     
    326368        return true;
    327369    }
    328     /**
     370
     371    /**
     372     * @access public
     373     *
    329374     * @param string $file
    330375     * @return bool
     
    333378        return false;
    334379    }
    335     /**
     380
     381    /**
     382     * @access public
     383     *
    336384     * @param string $file
    337385     * @return int
     
    340388        return ftp_mdtm($this->link, $file);
    341389    }
    342     /**
     390
     391    /**
     392     * @access public
     393     *
    343394     * @param string $file
    344395     * @return int
     
    347398        return ftp_size($this->link, $file);
    348399    }
    349     /**
     400
     401    /**
     402     * @access public
     403     *
    350404     * @param string $file
    351405     * @return bool
     
    356410
    357411    /**
     412     * @access public
     413     *
    358414     * @param string $path
    359415     * @param mixed $chmod
     
    374430
    375431    /**
     432     * @access public
     433     *
    376434     * @param string $path
    377435     * @param bool $recursive
     
    383441
    384442    /**
     443     * @access public
     444     *
    385445     * @staticvar bool $is_windows
    386446     * @param string $line
     
    462522
    463523    /**
     524     * @access public
     525     *
    464526     * @param string $path
    465527     * @param bool $include_hidden
Note: See TracChangeset for help on using the changeset viewer.