The document discusses modules, components, and extensions in Yii framework. It defines modules as reusable software units that resemble applications and can be developed separately. Components are reusable objects that define properties and events. Extensions extend the framework by providing additional reusable classes and functionality. The document provides examples of creating modules, components and using extensions in Yii applications.
13th Sep, Drupal 7 advanced training by TCS DrupalMumbai
This document provides an overview and introduction to Drupal module development. It discusses Drupal hooks like hook_menu(), hook_permission(), hook_form(), and the Entity API. It also covers creating modules, forms, variables, blocks, and interacting with the database. The event is for a Drupal Global Training Day in Mumbai, India hosted by Drupal Mumbai and Tata Consultancy Services.
The document provides information about migrating content from Drupal 6 and 7 websites to Drupal 8. It includes:
- Statistics on the number of websites on each source platform
- An overview of the migration process using the Migrate Upgrade module to generate templates, export them, edit them, reimport and execute migrations.
- Tips for common migration challenges like mapping fields and handling chicken-and-egg dependencies.
A simple Drupal 7 to Drupal 8 Migration.
With its new prominent features, Drupal 8 will set the standards in terms of offering numerous ways to customise website content, display data on mobile devices and build API’s.
Due to the modern OOP (Object Oriented Programming) approach, it gives us a simpler migration process from its predecessor, with in-place content editing tools, along with a broad array of new themes.
04 programmation mobile - android - (db, receivers, services...)TECOS
The document discusses content providers, databases, broadcast receivers, services, and notifications in Android mobile app development. Content providers manage access to structured app data and allow sharing data between processes. SQLite is used for databases, with methods like query, insert, update. Broadcast receivers listen for system/app events, services run background tasks, and notifications display messages outside the app UI.
03 programmation mobile - android - (stockage, multithreads, web services)TECOS
1) Android provides internal and external storage for files. Internal storage is private to each app while external storage can be accessed by other apps and is not wiped when uninstalling an app.
2) There are three main ways to store data: preferences files, regular files, and databases. Preferences files store key-value pairs and persist after reboot.
3) To access the web, an app needs the INTERNET permission and can use HttpURLConnection to make GET/POST requests and read the response stream.
Android App Development - 04 Views and layoutsDiego Grancini
The document discusses views and layouts in Android. It covers the View and ViewGroup classes used to create graphical interfaces. Layouts can be defined in XML files and include common layouts like LinearLayout, RelativeLayout, and ScrollView. It also discusses how to create custom views by extending the View class and implementing common callback methods like onDraw(), onMeasure(), and event handlers. Optimizing custom views to minimize calls to methods like invalidate() and requestLayout() is also covered.
This document provides an overview of different methods for persisting data in Android applications, including state information, preferences, files, SQLite databases, and content providers. It describes how to store and retrieve activity state information temporarily using bundles. It also explains how to use shared preferences, files, SQLite databases via SQLiteOpenHelper, and content providers via content resolvers to store and access application data permanently.
Flexible UI rendering in Magento 2 is possible due to the usage of UI components. By utilizing them, you configure every page of your eCommerce website. Find a brief description of basic Magento 2 UI components in document.
13th Sep, Drupal 7 advanced training by TCS DrupalMumbai
This document provides an overview and introduction to Drupal module development. It discusses Drupal hooks like hook_menu(), hook_permission(), hook_form(), and the Entity API. It also covers creating modules, forms, variables, blocks, and interacting with the database. The event is for a Drupal Global Training Day in Mumbai, India hosted by Drupal Mumbai and Tata Consultancy Services.
The document provides information about migrating content from Drupal 6 and 7 websites to Drupal 8. It includes:
- Statistics on the number of websites on each source platform
- An overview of the migration process using the Migrate Upgrade module to generate templates, export them, edit them, reimport and execute migrations.
- Tips for common migration challenges like mapping fields and handling chicken-and-egg dependencies.
A simple Drupal 7 to Drupal 8 Migration.
With its new prominent features, Drupal 8 will set the standards in terms of offering numerous ways to customise website content, display data on mobile devices and build API’s.
Due to the modern OOP (Object Oriented Programming) approach, it gives us a simpler migration process from its predecessor, with in-place content editing tools, along with a broad array of new themes.
04 programmation mobile - android - (db, receivers, services...)TECOS
The document discusses content providers, databases, broadcast receivers, services, and notifications in Android mobile app development. Content providers manage access to structured app data and allow sharing data between processes. SQLite is used for databases, with methods like query, insert, update. Broadcast receivers listen for system/app events, services run background tasks, and notifications display messages outside the app UI.
03 programmation mobile - android - (stockage, multithreads, web services)TECOS
1) Android provides internal and external storage for files. Internal storage is private to each app while external storage can be accessed by other apps and is not wiped when uninstalling an app.
2) There are three main ways to store data: preferences files, regular files, and databases. Preferences files store key-value pairs and persist after reboot.
3) To access the web, an app needs the INTERNET permission and can use HttpURLConnection to make GET/POST requests and read the response stream.
Android App Development - 04 Views and layoutsDiego Grancini
The document discusses views and layouts in Android. It covers the View and ViewGroup classes used to create graphical interfaces. Layouts can be defined in XML files and include common layouts like LinearLayout, RelativeLayout, and ScrollView. It also discusses how to create custom views by extending the View class and implementing common callback methods like onDraw(), onMeasure(), and event handlers. Optimizing custom views to minimize calls to methods like invalidate() and requestLayout() is also covered.
This document provides an overview of different methods for persisting data in Android applications, including state information, preferences, files, SQLite databases, and content providers. It describes how to store and retrieve activity state information temporarily using bundles. It also explains how to use shared preferences, files, SQLite databases via SQLiteOpenHelper, and content providers via content resolvers to store and access application data permanently.
Flexible UI rendering in Magento 2 is possible due to the usage of UI components. By utilizing them, you configure every page of your eCommerce website. Find a brief description of basic Magento 2 UI components in document.
Action View is the component of Rails that handles rendering views and templates. It works with Action Controller to separate the logic of a request from the rendering of the response. Views are written using templates that can be written in ERB or Builder formats. Partials and layouts allow breaking templates into reusable pieces. Action View provides helpers for forms, dates, numbers, assets and more to make working with models and templates easier.
- Perspectives in Eclipse workbench are visual containers that group related views and editors to accomplish a specific task.
- Creating a perspective involves defining an extension in plugin.xml and implementing the perspective class to control initial layout.
- Views display data from the domain model and are created by defining an extension point and implementing the view class.
- The entry point for an RCP application is a class that implements IApplication to control application execution and create the workbench.
Adam has authored CodeIgniter 1.7 Professional Development; the first advanced CodeIgniter book, gives an overview of what's new with CodeIgniter 2.0, how to upgrade your applications and a detailed overview of how to create drivers.
Adding custom ui controls to your application (1)Oro Inc.
This presentation discusses adding custom UI controls to an application. It covers frontend architecture using RequireJS and modular JavaScript. Practical examples are provided for adding a navigation history component and a WYSIWYG editor. Best practices are outlined such as extending base application components, separating MVC roles, and understanding component lifecycles. The presentation concludes with recommendations to read Backbone and Chaplin documentation.
Odoo ERP is one of the best Open Source ERP until this year. Within this slide we are explain some of what we can enhance on the Odoo to get our goal on business requirements
Information on an Appcelerator Alloy project demonstrating the use of a restApi sync adapter along with Model/Collection Databinding to a TableView
Complete Project here on Github: https://github.com/aaronksaunders/scs-backbonetest1
A quick introduction to same aspects of the Zend Framework, including installation and setup using Zend_Tool, ZF's MVC architecture, database models, controllers, view scripts, layouts and forms. Delivered at the April meeting of phpNE.
First steps to create a basic app with ZF: using action methods, databases, and forms. From February presentation at ZF-NYC meetup. More to follow in March meetup.
This slide describes the various components of an Odoo module. it discusses controllers, data, docs, translations, reports, security, static files and folders, unit tests, views, and wizards
Simple module Development in Joomla! 2.5Vishwash Gaur
The document provides an overview of developing a basic module and component in Joomla 2.5. It demonstrates creating a simple "Reviews" module to display customer feedback. It shows the required files and code for the module. It then enhances the module to dynamically retrieve review data from a database table. Key files for the module and changes needed are outlined. The document concludes by providing some additional Joomla resources for learning.
Features are very useful for building Drupal profiles (re-usable applications). They provide a way to capture and save in code the customizations that are done to a Drupal site/application. Here I will describe how I use them in B-Translator.
The document provides guidance on how to write a first WordPress plugin, including an overview of plugins and their capabilities, how to structure a plugin with PHP code and files, how to use hooks and filters to extend WordPress functionality, how to add administrative features like settings pages and widgets, and tips for best practices when developing WordPress plugins.
The document provides documentation on creating WHMCS addon modules. It covers getting started, configuration, activation/deactivation, content output, sidebars, multi-language support, hooks, upgrades, and resources. Creating modules allows extending WHMCS with custom admin pages and hooks. Modules are managed through the Addon Modules interface in the WHMCS admin area.
1. Angular Components:
Component Configuration, Building a Template, Using Constructors, Using External Templates, Angular Routing to Single Page Application (SPA)
2. Data Binding:
Introduction, Interpolation, Property Binding, Attribute Binding, Class Binding, Style Binding, Event Binding, Two-way Binding.
The document discusses the Model-View-Controller (MVC) design pattern as implemented in the Symfony framework. It describes how MVC separates an application into three layers - the model layer defines the business logic and interacts with the database, the view layer defines the user interface, and the controller layer handles requests and coordinates the model and view. It provides details on how Symfony implements MVC through directories, templates, actions, and other framework components to build applications according to this pattern.
This document provides tips and tricks for Odoo development. It discusses module structure, creating new tables and inheriting existing tables, creating menu items and CRUD for models, creating master-detail relationships between models, creating models from multiple models using queries, creating buttons that trigger actions, sending emails via API using email templates, and creating job schedules using automated actions.
How to Implement Micro Frontend Architecture using Angular FrameworkRapidValue
Micro-frontends are small applications mostly divided by subdomain or functionality working together to deliver a larger application. Sometimes your frontend app might be a small part of another big application or your app consists a lot of sections and features which are developed by different teams or your app is being released into production feature by feature with developed by separate teams. If you are in one of these situations then you need to think about Micro Frontends. For more information visit: https://www.rapidvaluesolutions.com/
The Android user interface (UI) is composed of interactive visual elements called views and view groups. Views are used to display things on screen and can be defined in code or XML layout files. Common views include text views, buttons, and image views. Layouts organize views in different visual structures and can also be defined in code or XML. Common layouts include linear, relative, grid, and list. Interaction events like clicks are handled using listeners. Menus, dialogs, notifications, and toasts are also key UI components.
Action View is the component of Rails that handles rendering views and templates. It works with Action Controller to separate the logic of a request from the rendering of the response. Views are written using templates that can be written in ERB or Builder formats. Partials and layouts allow breaking templates into reusable pieces. Action View provides helpers for forms, dates, numbers, assets and more to make working with models and templates easier.
- Perspectives in Eclipse workbench are visual containers that group related views and editors to accomplish a specific task.
- Creating a perspective involves defining an extension in plugin.xml and implementing the perspective class to control initial layout.
- Views display data from the domain model and are created by defining an extension point and implementing the view class.
- The entry point for an RCP application is a class that implements IApplication to control application execution and create the workbench.
Adam has authored CodeIgniter 1.7 Professional Development; the first advanced CodeIgniter book, gives an overview of what's new with CodeIgniter 2.0, how to upgrade your applications and a detailed overview of how to create drivers.
Adding custom ui controls to your application (1)Oro Inc.
This presentation discusses adding custom UI controls to an application. It covers frontend architecture using RequireJS and modular JavaScript. Practical examples are provided for adding a navigation history component and a WYSIWYG editor. Best practices are outlined such as extending base application components, separating MVC roles, and understanding component lifecycles. The presentation concludes with recommendations to read Backbone and Chaplin documentation.
Odoo ERP is one of the best Open Source ERP until this year. Within this slide we are explain some of what we can enhance on the Odoo to get our goal on business requirements
Information on an Appcelerator Alloy project demonstrating the use of a restApi sync adapter along with Model/Collection Databinding to a TableView
Complete Project here on Github: https://github.com/aaronksaunders/scs-backbonetest1
A quick introduction to same aspects of the Zend Framework, including installation and setup using Zend_Tool, ZF's MVC architecture, database models, controllers, view scripts, layouts and forms. Delivered at the April meeting of phpNE.
First steps to create a basic app with ZF: using action methods, databases, and forms. From February presentation at ZF-NYC meetup. More to follow in March meetup.
This slide describes the various components of an Odoo module. it discusses controllers, data, docs, translations, reports, security, static files and folders, unit tests, views, and wizards
Simple module Development in Joomla! 2.5Vishwash Gaur
The document provides an overview of developing a basic module and component in Joomla 2.5. It demonstrates creating a simple "Reviews" module to display customer feedback. It shows the required files and code for the module. It then enhances the module to dynamically retrieve review data from a database table. Key files for the module and changes needed are outlined. The document concludes by providing some additional Joomla resources for learning.
Features are very useful for building Drupal profiles (re-usable applications). They provide a way to capture and save in code the customizations that are done to a Drupal site/application. Here I will describe how I use them in B-Translator.
The document provides guidance on how to write a first WordPress plugin, including an overview of plugins and their capabilities, how to structure a plugin with PHP code and files, how to use hooks and filters to extend WordPress functionality, how to add administrative features like settings pages and widgets, and tips for best practices when developing WordPress plugins.
The document provides documentation on creating WHMCS addon modules. It covers getting started, configuration, activation/deactivation, content output, sidebars, multi-language support, hooks, upgrades, and resources. Creating modules allows extending WHMCS with custom admin pages and hooks. Modules are managed through the Addon Modules interface in the WHMCS admin area.
1. Angular Components:
Component Configuration, Building a Template, Using Constructors, Using External Templates, Angular Routing to Single Page Application (SPA)
2. Data Binding:
Introduction, Interpolation, Property Binding, Attribute Binding, Class Binding, Style Binding, Event Binding, Two-way Binding.
The document discusses the Model-View-Controller (MVC) design pattern as implemented in the Symfony framework. It describes how MVC separates an application into three layers - the model layer defines the business logic and interacts with the database, the view layer defines the user interface, and the controller layer handles requests and coordinates the model and view. It provides details on how Symfony implements MVC through directories, templates, actions, and other framework components to build applications according to this pattern.
This document provides tips and tricks for Odoo development. It discusses module structure, creating new tables and inheriting existing tables, creating menu items and CRUD for models, creating master-detail relationships between models, creating models from multiple models using queries, creating buttons that trigger actions, sending emails via API using email templates, and creating job schedules using automated actions.
How to Implement Micro Frontend Architecture using Angular FrameworkRapidValue
Micro-frontends are small applications mostly divided by subdomain or functionality working together to deliver a larger application. Sometimes your frontend app might be a small part of another big application or your app consists a lot of sections and features which are developed by different teams or your app is being released into production feature by feature with developed by separate teams. If you are in one of these situations then you need to think about Micro Frontends. For more information visit: https://www.rapidvaluesolutions.com/
The Android user interface (UI) is composed of interactive visual elements called views and view groups. Views are used to display things on screen and can be defined in code or XML layout files. Common views include text views, buttons, and image views. Layouts organize views in different visual structures and can also be defined in code or XML. Common layouts include linear, relative, grid, and list. Interaction events like clicks are handled using listeners. Menus, dialogs, notifications, and toasts are also key UI components.
artificial intelligence and data science contents.pptxGauravCar
What is artificial intelligence? Artificial intelligence is the ability of a computer or computer-controlled robot to perform tasks that are commonly associated with the intellectual processes characteristic of humans, such as the ability to reason.
› ...
Artificial intelligence (AI) | Definitio
Design and optimization of ion propulsion dronebjmsejournal
Electric propulsion technology is widely used in many kinds of vehicles in recent years, and aircrafts are no exception. Technically, UAVs are electrically propelled but tend to produce a significant amount of noise and vibrations. Ion propulsion technology for drones is a potential solution to this problem. Ion propulsion technology is proven to be feasible in the earth’s atmosphere. The study presented in this article shows the design of EHD thrusters and power supply for ion propulsion drones along with performance optimization of high-voltage power supply for endurance in earth’s atmosphere.
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...IJECEIAES
Medical image analysis has witnessed significant advancements with deep learning techniques. In the domain of brain tumor segmentation, the ability to
precisely delineate tumor boundaries from magnetic resonance imaging (MRI)
scans holds profound implications for diagnosis. This study presents an ensemble convolutional neural network (CNN) with transfer learning, integrating
the state-of-the-art Deeplabv3+ architecture with the ResNet18 backbone. The
model is rigorously trained and evaluated, exhibiting remarkable performance
metrics, including an impressive global accuracy of 99.286%, a high-class accuracy of 82.191%, a mean intersection over union (IoU) of 79.900%, a weighted
IoU of 98.620%, and a Boundary F1 (BF) score of 83.303%. Notably, a detailed comparative analysis with existing methods showcases the superiority of
our proposed model. These findings underscore the model’s competence in precise brain tumor localization, underscoring its potential to revolutionize medical
image analysis and enhance healthcare outcomes. This research paves the way
for future exploration and optimization of advanced CNN models in medical
imaging, emphasizing addressing false positives and resource efficiency.
Comparative analysis between traditional aquaponics and reconstructed aquapon...bijceesjournal
The aquaponic system of planting is a method that does not require soil usage. It is a method that only needs water, fish, lava rocks (a substitute for soil), and plants. Aquaponic systems are sustainable and environmentally friendly. Its use not only helps to plant in small spaces but also helps reduce artificial chemical use and minimizes excess water use, as aquaponics consumes 90% less water than soil-based gardening. The study applied a descriptive and experimental design to assess and compare conventional and reconstructed aquaponic methods for reproducing tomatoes. The researchers created an observation checklist to determine the significant factors of the study. The study aims to determine the significant difference between traditional aquaponics and reconstructed aquaponics systems propagating tomatoes in terms of height, weight, girth, and number of fruits. The reconstructed aquaponics system’s higher growth yield results in a much more nourished crop than the traditional aquaponics system. It is superior in its number of fruits, height, weight, and girth measurement. Moreover, the reconstructed aquaponics system is proven to eliminate all the hindrances present in the traditional aquaponics system, which are overcrowding of fish, algae growth, pest problems, contaminated water, and dead fish.
9. Module
Modules are useful in several scenarios. For a large-scale
application, we may divide it into several modules, each being
developed and maintained separately. Some commonly used
features, such as user management, comment management, may be
developed in terms of modules so that they can be reused easily
in future projects.
10. Module
A module is a self-contained software unit that consists of
models, views, controllers and other supporting components. In
many aspects, a module resembles to an application. The main
difference is that a module cannot be deployed alone and it must
reside inside of an application. Users can access the
controllers in a module like they do with normal application
controllers.
11. File Structure
forum/
ForumModule.php the module class file
components/ containing reusable user components
views/ containing view files for widgets
controllers/ containing controller class files
DefaultController.php the default controller class file
extensions/ containing third-party extensions
models/ containing model class files
views/ containing controller view and layout files
layouts/ containing layout view files
default/ containing view files for DefaultController
index.php the index view file
12. File Structure
forum/
ForumModule.php the module class file
components/ containing reusable user components
views/ containing view files for widgets
controllers/ containing controller class files
DefaultController.php the default controller class file
extensions/ containing third-party extensions
models/ containing model class files
views/ containing controller view and layout files
layouts/ containing layout view files
default/ containing view files for DefaultController
index.php the index view file
13. File Structure
forum/
ForumModule.php the module class file
components/ containing reusable user components
views/ containing view files for widgets
controllers/ containing controller class files
DefaultController.php the default controller class file
extensions/ containing third-party extensions
models/ containing model class files
views/ containing controller view and layout files
layouts/ containing layout view files
default/ containing view files for DefaultController
index.php the index view file
14. Generator in Gii
“use the module generator in Gii to create the basic
skeleton of a new module.”
19. Component
Yii applications are built upon components which are objects
written to a specification. A component is an instance of
CComponent or its derived class. Using a component mainly
involves accessing its properties and raising/handling its
events. The base class CComponent specifies how to define
properties and events.
21. Code
class Document extends CComponent{
private $_textWidth;
public function getTextWidth()
{
return $this->_textWidth;
}}
22. Usage
$document=new Document();
// we can write and read textWidth$document->textWidth=100;echo $document-
>textWidth;
// we can only read textHeightecho $document->textHeight;
// we can only write completed$document->completed=true;
23. Application Component
To use an application component, we first need to change the application configuration by adding a
new entry to its components property, like the following:
26. Extensions
Extending Yii is a common activity during development. For example, when you
write a new controller, you extend Yii by inheriting its CController class; when
you write a new widget, you are extending CWidget or an existing widget class. If
the extended code is designed to be reused by third-party developers, we call it
an extension.
27. Extensions
Using an extension usually involves the following three steps:
1. Download the extension from Yii's extension repository.
2. Unpack the extension under the extensions/xyz subdirectory of application
base directory, where xyz is the name of the extension.
3. Import, configure and use the extension.
Each extension has a name that uniquely identifies it among all extensions. Given
an extension named as xyz, we can always use the path alias ext.xyz to locate its
base directory which contains all files of xyz.
28. Zii Extensions
Before we start describing the usage of third-party extensions, we would like to introduce the Zii
extension library, which is a set of extensions developed by the Yii developer team and included in
every release.
When using a Zii extension, one must refer to the corresponding class using a path alias in the form
ofzii.path.to.ClassName. Here the root alias zii is predefined by Yii. It refers to the root directory
of the Zii library. For example, to use CGridView, we would use the following code in a view script
when referring to the extension:
30. Widget
Widgets are mainly used in views. Given a widget class XyzClass belonging to the xyz extension, we
can use it in a view as follows:
31. Usage
// widget that does not need body content
<?php $this->widget('ext.xyz.XyzClass', array(
'property1'=>'value1',
'property2'=>'value2')); ?>
32. Usage
// widget that can contain body content
<?php $this->beginWidget('ext.xyz.XyzClass', array(
'property1'=>'value1',
'property2'=>'value2')); ?>
...body content of the widget...
<?php $this->endWidget(); ?>