ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing in PHP
  • Overview
  • Principle for generating a PHP site with WEBDEV
  • The properties available in PHP
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview

Principle for generating a PHP site with WEBDEV

WEBDEV allows you to create PHP sites without prior knowledge. The site is developed in WLanguage like any other WEBDEV site.
You can also enter your PHP code directly.
A syntax and lexical analysis is now available for PHP and JavaScript code.
When generating the pages, the WEBDEV pages and the WLanguage properties are automatically converted into PHP pages.
Remark: Prerequisite:
  • PHP 5 servers: Minimum recommended version: version 5.6.
  • PHP 7 servers: Minimum recommended version: version 7.0.22.
  • PHP 8 servers: Minimum recommended version: version 8.0.10.
The properties available in PHP
The following properties are available in PHP:
AliasThe Alias property is used to:
  • get or change the alias of a window (WINDEV and WINDEV Mobile).
  • get or change the alias of a dynamic tab (WINDEV).
  • get the internal HTML/JavaScript name of a control (WEBDEV).
AlternativeTextThe AlternativeTextproperty is used to get and edit the alternative text of controls in a page.
AnimationDurationThe AnimationDuration property is used to know and define the length of time an animation takes to complete one cycle:
  • in a Chart control. This duration is set to 30 hundredths of a second by default.
  • in an infinite Progress Bar control. This duration is set to 200 hundredths of a second by default.
  • in an Image Gallery Looper control.
BackgroundColorThe BackgroundColor property is used to set the background color of a control, window, page or block of a report.
BackgroundImageThe BackgroundImage property is used to identify and modify the background color of an element: window, page, control or report.
BrowsedItemThe BrowsedItem property is used to:
  • Get the item used to automatically loop through Table, Looper, List Box, ListView and Combo Box controls, supercontrols and reports based on data files.
  • Change the item used to automatically loop through Table, Looper, List Box, ListView and Combo Box controls, supercontrols and reports based on data files. Then, the iteration is reinitialized.
CalendarButtonThe CalendarButton property is used to determine and specify whether a Date Edit control has a button to display a popup calendar.
CaptionIn a database, the Caption property is used to:
  • Find out the caption associated with a file item.
  • Find out the caption associated with a data file.
  • Find out and modify the connection caption.
In a report, the Caption property is used to:
  • Find out the text displayed in a Static or Link control.
  • Modify the text displayed in a Static or Link control.
In a window or page, the Caption property is also used to:
  • Find out and modify the caption of a control in a window or in a page.
  • Find out and modify the caption of a menu option.
  • Find out and modify the title of a window or page.
  • Find out the content of a Breadcrumb control.
CaptionHTMLThe CaptionHTML property is used to handle the text of a control as HTML code.
CodeCSSThe CodeCSS property is used to read and change the CSS code associated with a Web Component control.
CodeHTMLThe CodeHTML property is used to read and change the HTML code associated with a Web Component control.
CodeJSThe CodeJS property is used to read and change the JavaScript code associated with a Web Component control.
CollapsedThe Collapsed property is used to:
  • get or define the state (collapsed or expanded) that will be used when rows are added to a TreeView Table control.
  • find out or modify the collapsed/expanded status for:
    • the breaks of a Table control,
    • the breaks of a Looper control,
    • the break headers and footers of Table and Looper controls,
    • a Drawer control,
    • a Ribbon control,
    • a Navigation Bar control.
    • a Pivot Table control in a report.
CollapsedImageThe CollapsedImage property is used to:
  • find out and/or modify the default image associated with a collapsed row in a TreeView Table control.
  • find out and/or modify the default image associated with a collapsed row in a TreeView control.
  • find out and/or modify the image associated with a specific collapsed row in a TreeView Table control.
  • find out and modify the image in a collapsed row of a TreeView item in a "TreeView table" type report.
ColorThe Color property is used to get or change the font color for:
  • a Font variable.
  • a text displayed in a Static control or in a calculated control of a report.
  • a text displayed in a window control.
  • a text displayed in a page control.
ContentThe Content property is used to read or write the whole content of a control:
  • List Box populated programmatically,
  • Combo Box populated programmatically,
  • Spreadsheet.
CountThe Count property returns the number of elements in a given set.
CrosshairColorThe CrosshairColor property gets and sets the color of the crosshair in a Chart control.
CrosshairOpacityThe CrosshairOpacity property is used to determine and change the opacity of the crosshair in a Chart control.
CrosshairThicknessThe CrosshairThickness property is used to determine and change the thickness of the crosshair in a Chart control.
DescriptionThe Description property is used to get and change the page description.
DirectInputAPTThe DirectInputAPT property is used to determine and specify if the user can directly change the title of an appointment in a Scheduler or Organizer control.
DisplayedValueThe DisplayedValue property returns the value currently displayed in the control of a window or page.
DndSourceThe DndSource property is used to determine and change a control's drag-and-drop behavior.
DndTargetThe DndTarget property determines and changes how a control behaves in a drag-and-drop operation.
EmptyThe Empty property is used to determine if:
  • a Looper, Table, List Box or Combo Box control is empty. The control can be a browsing control or a memory control.
  • a Chart control contains no series.
  • a report control is empty (control linked to an item).
  • an array (or an associative array) contains no element.
  • an element of an associative array exists or not.
  • a queue, a list or a stack contains no element.
ExpandedImageThe ExpandedImage property is used to:
  • find out and modify the default image associated with an expanded row in a TreeView Table control.
  • find out and/or modify the default image associated with an expanded row in a TreeView control.
  • find out and modify the image associated with a specific expanded row in a TreeView Table control.
  • find out and modify the image associated with an expanded row in a treeview item of a "TreeView table" report.
FontBoldThe FontBold property is used to:
  • Determine if the text is bold.
  • Change the weight of the text.
FontItalicThe FontItalic property is used to:
  • Determine if the text is italicized.
  • Apply or remove italic formatting from the text.
FontNameThe FontName property is used to:
  • Identify the font used in a control.
  • Change the font used in a control.
FontSizeThe FontSize property is used to:
  • Identify the size of the font used in a control.
  • Change the size of the font used in a control.
FontUnderlinedThe FontUnderlined property is used to:
  • Determine if the text is underlined.
  • Underline (or not) a text.
GranularityAppointmentThe GranularityAppointment gets and changes the precision of the grid used to define appointments in Organizer or Scheduler controls. Property kept for backward compatibility.
GranularityDurationThe GranularityDuration property is used to get and change the size of the grid to resize:
  • appointments in an Organizer control.
  • appointments in a Scheduler control.
  • events in a TimeLine control.
  • tasks in a Gantt Chart column.
GranularityMovementThe GranularityMovement property is used to get and change the size of the grid to move:
  • appointments in an Organizer control.
  • appointments in a Scheduler control.
  • events in a TimeLine control.
  • tasks in a Gantt Chart column.
GrayedThe Grayed property is used to:
  • Determine if a control (or a group of controls) is grayed out.
  • Gray out or ungray a control, a group of controls or a window.
HeightThe Height property is used to get and change the height:
  • of a control or block in a report.
  • of a control (in a window), window, row of a Table, List Box or ListView control, option of a Radio Button or Check Box control, break header or footer of a Table or Looper control.
  • of a control (in a page), break header or footer in a Table or Looper control. The control can be overlayable or not.
  • of a break cell in a Table or Looper control.
HintThe Hint property gets and sets the hint text displayed when the Edit control is empty.
HorizontalAlignmentThe HorizontalAlignment property gets and changes the horizontal alignment of a control.
HTMLAfterThe HTMLAfter property is used to get and change the HTML code inserted after the control.
HTMLBeforeThe HTMLBefore property gets and changes the HTML code added before the control.
HTMLClassThe HTMLClass property reads and sets the value of the "class" HTML attribute of the control.
HTMLEndPageThe HTMLEndPage property is used to get and change the HTML code inserted at the end of the page.
HTMLHeaderThe HTMLHeader property is used to get and change the HTML code inserted in the page header.
ImageThe Image property gets and sets the background image of a control or block.
ImageStateThe ImageState property is used to get and change the number of drawings in:
  • The image associated with a button.
  • The image of the cursor in a slider.
  • The image associated with the button of a sidebar pane.
  • The image associated with the button of a tab pane.
  • The image associated with the Rating control.
  • The image associated with a group in a Ribbon control.
  • The image associated with a menu option.
InitialContentThe InitialContent property gets the initial content:
  • of a List Box control populated programmatically.
  • of a Combo Box control populated programmatically.
  • of a "List of values" column in a Table control.
  • in a Spreadsheet control.
InitialStateThe InitialState property gets the initial state of a control.
InitialValueThe InitialValue property is used to get the initial value of a control in a window or page.
InitialVisibleThe InitialVisible property is used to determine if:
  • a control was visible during the first display of the associated window or page.
  • a window was visible during its first display.
InputEnabledThe InputEnabled property is used to:
  • Determine if a control or a group of controls is editable or read-only.
  • Change the input options for a control or group of controls.
KeywordsThe Keywords property is used to get and modify the keywords associated with a page.
LayoutThe Layout property is used to get the layout of the cells in a Layout control.
LowerValueThe LowerValue property is used to:
  • Get the lower bound of the interval currently selected in a Range Slider control.
  • Change the lower bound of the interval currently selected in a Range Slider control.
MagnifierModeThe MagnifierMode property determines and changes how the magnifier is displayed in the column headings of a Table or TreeView Table control.
MapModeThe MapMode property determines and changes how the map is displayed in the Map control.
MaskTitleDateThe MaskTitleDate property is used to identify and change the input mask used for the title of day columns in Organizer or Scheduler controls
MaxValueThe MaxValue property is used to:
  • get and set the top value of a report based on a data file.
  • get the maximum value of the current filter.
  • get the maximum value of a data series in a chart.
  • get and set the maximum value for some types of controls.
MemoryFormatThe MemoryFormat property is used to get and change the format of the value returned for:
  • Date or Time edit controls.
  • Date or Time table columns.
  • Calendar controls.
  • Static controls.
  • editable combo boxes.
  • table columns displayed by combo boxes.
MinValueThe MinValue property is used to:
  • get and set the bottom value of a report based on a data file.
  • get the minimum value of the current filter.
  • get the minimum value of a data series in a chart.
  • get and set the minimum value for some types of controls.
ModificationDurationAPTThe ModificationDurationAPT property is used to determine and specify if the user can modify the duration of an appointment in a Scheduler or Organizer control.
MovementAPTThe MovementAPT property allows you to know and specify whether users can move appointments in a Scheduler or Organizer control.
MultiselectionThe Multiselection property gets and sets the selection mode:
  • in a Table and TreeView Table control.
  • in a Pivot Table control.
  • in a List Box and ListView control.
  • in a Looper control.
  • in a Calendar control.
  • of files in an Upload control.
NameThe Name property is used to get:
  • the name of the font associated with a Font variable.
  • the name of a control, report or report block.
  • the name of a control, group of controls or window.
  • the name of a control, group of controls or page.
NbLinesPerPageThe NbLinesPerPage property is used to:
  • Get and set the maximum number of Table rows per page.
  • Get and set the maximum number of Looper rows per page.
NewLineThe NewLine property is used to determine:
  • in a Table control, whether the current row was created with TableAddXXX or TableInsertXXX.
  • in a Looper control, whether the current row was created with LooperAddXXX or LooperInsertXXX.
  • in an Organizer control, whether an appointment was created via the popup menu.
  • in a Scheduler control, whether an appointment was created via the popup menu.
NoteThe Note property is used to:
  • Find out the notes associated with a control, a window, a page or a report.
  • Modify the notes associated with a control, a window a page or a report.
NoteTitleThe NoteTitle property is used to:
  • Get the title of the notes used in the technical documentation of a control, window, page or report.
  • Change the title of the notes used in the technical documentation of a control, window, page or report.
Num1stDayOfTheWeekThe Num1stDayOfTheWeek property gets and sets the 1st day of the week displayed in:
  • a Calendar control.
  • an Organizer control.
  • a Scheduler control.
  • an Edit control in Date format with Calendar.
NumberColumnThe NumberColumn property is used to:
  • Get the number of columns in Table, Check Box, Radio Button controls, etc..
  • Set the number of columns in a multi-column List Box control.
OpacityThe Opacity property is used to get and define the opacity percentage for a window, or for controls in a window or page.
PeriodSelectionThe PeriodSelection property is used to determine and specify if the user can select a time period in an Scheduler or Organizer control.
PlaneThe Plane property is used to:
  • Get:
    • the active plane of a window (or report) or the plane to which a control belongs.
    • the active plane of a WEBDEV element.
  • Change:
    • the active plane of a window (or report) or associate a control with another plane.
    • the active plane of a WEBDEV element.
ProgressBarColorThe ProgressBarColor property gets and sets the progress color in the following controls and elements:
  • Progress Bar control,
  • Progress Bar column,
  • Progress Bar cell,
  • infinite Progress Bar control.
ResourceThe Resource property is used to:
  • find out the resources visible in a Scheduler control.
  • find out the resource of the Scheduler control that corresponds to the specified index.
ReturnedValueThe ReturnedValue property is used to:
  • Get and change the value returned by a window, page or report.
  • Get and change the value returned by an option in a Radio Button control.
SelectedThe Selected property is used to:
  • Select, or determine if a row is selected in a List, ListView or Table control.
  • Select, or determine if a column or cell is selected in a Table control with row or column selection.
  • Select, or determine if a WEBDEV menu option is selected.
SizeThe Size property is used to determine and change the size of an element.
SortOptionThe SortOption property gets and sets the sort options used in:
  • text columns in Table controls,
  • text columns in Treeview Table controls,
  • List Box and ListView controls,
  • Combo Box controls,
  • attributes of Looper controls,
  • images, clickable images and thumbnails with automatic sequence.
StateThe State property is used to get and change the state of an element.
StoredValueThe StoredValue property is used to get the value currently stored by:
  • a row in a List Box, ListView or Combo Box control.
  • a "Text token" Edit control.
  • a row of a Table control.
  • an input suggestion in an Edit control (if the suggestion is selected).
TextWithoutFormatThe TextWithoutFormat property is used to get the text contained in a rich edit control without the formatting tags.
ThumbnailThe Thumbnail property is used to:
  • get the value of an item thumbnail. This item was defined in the data model editor or through programming.
  • get and change the image associated with a Thumbnail control.
TitleThe Title property is used to:
  • Get the title of a Table control column, a Chart control, a window or a page
  • Change the title of a Table control column, a Chart control, a window or a page.
TokenThe Token property is used to manage the different tokens associated with a "Text token" Edit control.
TokenAllowDuplicateThe TokenAllowDuplicate property is used to:
  • Allow or prevent the user from entering duplicates in a "Text token" Edit control.
  • Determine if duplicates are allowed in a "Text token" Edit control.
TokenDeletableThe TokenDeletable property is used to:
  • Determine if the end user is allowed to delete tokens in a "Text token" Edit control.
  • Allow or prevent the end user from deleting tokens in a "Text token" Edit control.
TokenEnabledThe TokenEnabled property determines if an Edit control is a "Text token" Edit control.
TokenListSeparatorThe TokenListSeparator property retrieves or modifies the separators that trigger the creation of new tokens when entering information in a "Text token" Edit control.
ToolTipThe ToolTip property is used to get and change the text displayed in the tooltip associated with a window or page control.
ToolTipTitleThe ToolTipTitle property gets and sets the text displayed in the tooltip associated with the column title of a Table control. This tooltip only appears when the Table control column title is hovered over.
TransparencyModeThe TransparencyMode property gets and sets the transparency mode of an image.
TypeThe Type property is used to get:
  • the type of element (data file or item) defined programmatically or in the data model editor, view or query.
  • the type of object.
  • the type of data held in a Variant.
TypeFilesThe TypeFiles property is used to get and change the filter available in the file picker of the Upload control.
UpperValueThe UpperValue property is used to:
  • Get the upper bound of the currently selected interval in a Range Slider control.
  • Change the upper bound of the currently selected interval in a Range Slider control.
URLThe URL property is used to:
  • Get the address associated with a control.
  • Change the address associated with a control.
ValueThe Value property is used to:
  • Find out and modify the value of a report control.
  • Find out and modify the value of a control or the title of a window.
  • Find out the identifier of a stream.
  • Find out and modify the value of a control or the title of a page.
VerticalThe Vertical property is used to:
  • determine if a control is oriented horizontally or vertically.
  • change the orientation of Table and Looper controls (switch from vertical to horizontal and conversely).
VerticalAlignmentThe VerticalAlignment property gets and changes the vertical alignment of a control.
VisibleThe Visible property is used to:
  • Find out whether an element is visible.
  • Make an element visible or invisible.
WidthThe Width property gets and changes the width:
  • of a control or block in a report.
  • of a control (found in a window), window, column found in a table or column found in a list box (including listview).
  • of a control (found in a page), column found in a table or column found in a list box. The control can be overlayable or not.
WorkingHourEndThe WorkingHourEnd property is used to identify and change the end time of working hours used:
  • by an Organizer control.
  • by a Scheduler control.
  • by a Gantt Chart column (in a Table or TreeView Table control).
WorkingHourStartThe WorkingHourStart property is used to get and change the start time of working hours used:
  • by an Organizer control.
  • by a Scheduler control.
  • by a Gantt Chart column (in a Table or TreeView Table control).
XThe X property is used to:
  • Get the X-coordinate of a control, Table control column or window (position on the X-axis).
  • Get the X-coordinate of a control or window (position on the X-axis).
XInitialThe XInitial property is used to:
  • Get the X-coordinate:
    • of a control (position on the X-axis) when opening the window or the page.
    • of a window (position on X-axis) when opening the window.
  • Change the X-coordinate of a control anchored "to the right" (position on the X-axis) when opening the window.
  • Get the X-coordinate of a control in relation to its block (position in millimeters on the X-axis) when opening the report.
YThe Y property is used to:
  • Find out the Y-coordinate of a control or window (position on Y-axis).
  • Modify the Y-coordinate of a control or window.
YInitialThe YInitial property is used to:
  • Find out the Y-coordinate:
    • of a control (position on Y-axis) when opening the window or the page.
    • of a window (position on Y-axis) when opening the window.
  • Modify the Y-coordinate of a control anchored "to bottom" (position on the vertical axis) when opening the window.
  • Find out the Y-coordinate of a control in relation to its block (position in millimeters on the vertical axis) when opening the report.
ZoomThe Zoom property gets or sets the zoom value:
  • in an Image control.
  • in a Map control.
  • in an Organization Chart control.
  • in a Table, TreeView Table, Pivot Table, Spreadsheet or List Box control.
  • in a Word Processing control.
  • in a PDF Reader control.
  • in a Camera control.
  • in a Diagram Editor control;
  • in a window.
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment

Last update: 05/30/2023

Send a report | Local help