mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Bump version to 3.0.146
This commit is contained in:
@@ -161,7 +161,7 @@ class Fields extends WireSaveableItems {
|
|||||||
* @param array $a Associative array of data to populate
|
* @param array $a Associative array of data to populate
|
||||||
* @return Saveable|Wire
|
* @return Saveable|Wire
|
||||||
* @throws WireException
|
* @throws WireException
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function makeItem(array $a = array()) {
|
public function makeItem(array $a = array()) {
|
||||||
|
@@ -820,7 +820,7 @@ abstract class Fieldtype extends WireData implements Module {
|
|||||||
*
|
*
|
||||||
* @param array $a Field data from DB (if needed)
|
* @param array $a Field data from DB (if needed)
|
||||||
* @return string Return class name or blank to use default Field class
|
* @return string Return class name or blank to use default Field class
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function getFieldClass(array $a = array()) {
|
public function getFieldClass(array $a = array()) {
|
||||||
|
@@ -1221,7 +1221,7 @@ function wireRegion($key, $value = null) {
|
|||||||
*
|
*
|
||||||
* @param string $message Optional message to send to Exception message argument (not used in output by default)
|
* @param string $message Optional message to send to Exception message argument (not used in output by default)
|
||||||
* @throws Wire404Exception
|
* @throws Wire404Exception
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function wire404($message = '') {
|
function wire404($message = '') {
|
||||||
|
@@ -1592,7 +1592,7 @@ class Modules extends WireArray {
|
|||||||
* - Boolean false to return array of module names (default).
|
* - Boolean false to return array of module names (default).
|
||||||
* - Integer 1 to return array of module info for each matching module.
|
* - Integer 1 to return array of module info for each matching module.
|
||||||
* - Integer 2 to return array of verbose module info for each matching module.
|
* - Integer 2 to return array of verbose module info for each matching module.
|
||||||
* - Integer 3 to return array of Module or ModulePlaceholder objects (whatever current state is). Added 3.0.147.
|
* - Integer 3 to return array of Module or ModulePlaceholder objects (whatever current state is). Added 3.0.146.
|
||||||
* @return array Returns array of module class names or Module objects. In either case, array indexes are class names.
|
* @return array Returns array of module class names or Module objects. In either case, array indexes are class names.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@@ -77,7 +77,7 @@ abstract class Notice extends WireData {
|
|||||||
/**
|
/**
|
||||||
* Indicate notice should not group/collapse with others of the same type (when supported by admin theme)
|
* Indicate notice should not group/collapse with others of the same type (when supported by admin theme)
|
||||||
*
|
*
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const noGroup = 131072;
|
const noGroup = 131072;
|
||||||
|
@@ -848,7 +848,7 @@ class Pages extends Wire {
|
|||||||
*
|
*
|
||||||
* @param Page|PageArray|array $pages May be Page, PageArray or array of page IDs (integers).
|
* @param Page|PageArray|array $pages May be Page, PageArray or array of page IDs (integers).
|
||||||
* @param null|int|string $time Omit (null) to update to now, or specify unix timestamp or strtotime() recognized time string
|
* @param null|int|string $time Omit (null) to update to now, or specify unix timestamp or strtotime() recognized time string
|
||||||
* @param string $type Date type to update, one of 'modified', 'created' or 'published' (default='modified') Added 3.0.147
|
* @param string $type Date type to update, one of 'modified', 'created' or 'published' (default='modified') Added 3.0.146
|
||||||
* @throws WireException|\PDOException if given invalid format for $modified argument or failed database query
|
* @throws WireException|\PDOException if given invalid format for $modified argument or failed database query
|
||||||
* @return bool True on success, false on fail
|
* @return bool True on success, false on fail
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
|
@@ -924,7 +924,7 @@ class PagesEditor extends Wire {
|
|||||||
* @param Page $page
|
* @param Page $page
|
||||||
* @param int $status Use Page::status* constants
|
* @param int $status Use Page::status* constants
|
||||||
* @return bool
|
* @return bool
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
* @see PagesEditor::setStatus(), PagesEditor::removeStatus()
|
* @see PagesEditor::setStatus(), PagesEditor::removeStatus()
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -942,7 +942,7 @@ class PagesEditor extends Wire {
|
|||||||
* @param Page $page
|
* @param Page $page
|
||||||
* @param int $status Use Page::status* constants
|
* @param int $status Use Page::status* constants
|
||||||
* @return bool
|
* @return bool
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
* @see PagesEditor::setStatus(), PagesEditor::addStatus(), PagesEditor::saveStatus()
|
* @see PagesEditor::setStatus(), PagesEditor::addStatus(), PagesEditor::saveStatus()
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -958,7 +958,7 @@ class PagesEditor extends Wire {
|
|||||||
*
|
*
|
||||||
* @param Page $page
|
* @param Page $page
|
||||||
* @return bool
|
* @return bool
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function saveStatus(Page $page) {
|
public function saveStatus(Page $page) {
|
||||||
|
@@ -276,6 +276,8 @@ class PaginatedArray extends WireArray implements WirePaginatable {
|
|||||||
$limit = $options['limit'] > -1 ? $options['limit'] : $this->getLimit();
|
$limit = $options['limit'] > -1 ? $options['limit'] : $this->getLimit();
|
||||||
$total = $options['total'] > -1 ? $options['total'] : $this->getTotal();
|
$total = $options['total'] > -1 ? $options['total'] : $this->getTotal();
|
||||||
|
|
||||||
|
if($count > $total) $total = $count;
|
||||||
|
|
||||||
if(empty($total) && !empty($options['zeroLabel'])) {
|
if(empty($total) && !empty($options['zeroLabel'])) {
|
||||||
|
|
||||||
$str = $options['zeroLabel'];
|
$str = $options['zeroLabel'];
|
||||||
|
@@ -46,7 +46,7 @@ class ProcessWire extends Wire {
|
|||||||
* Reversion revision number
|
* Reversion revision number
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const versionRevision = 145;
|
const versionRevision = 146;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version suffix string (when applicable)
|
* Version suffix string (when applicable)
|
||||||
|
@@ -48,7 +48,7 @@ abstract class WireSaveableItems extends Wire implements \IteratorAggregate {
|
|||||||
* @param array $a Associative array of data to populate
|
* @param array $a Associative array of data to populate
|
||||||
* @return Saveable|Wire
|
* @return Saveable|Wire
|
||||||
* @throws WireException
|
* @throws WireException
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function makeItem(array $a = array()) {
|
public function makeItem(array $a = array()) {
|
||||||
|
@@ -207,7 +207,7 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
|||||||
*
|
*
|
||||||
* @param array $a Field data from DB (if needed)
|
* @param array $a Field data from DB (if needed)
|
||||||
* @return string Return class name or blank to use default Field class
|
* @return string Return class name or blank to use default Field class
|
||||||
* @since 3.0.147
|
* @since 3.0.146
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function getFieldClass(array $a = array()) {
|
public function getFieldClass(array $a = array()) {
|
||||||
|
Reference in New Issue
Block a user